Sunday, March 11, 2007

on-demand links on schedule page

An interim solution implemented, which will work only for single file items. Probably, multi-file items will need a rethinking along the lines of my previous post. Current implementation uses a single extra filename field in the remote database. And the logic to automatically add this is
if ( ($CATEGORYNAME=="Special") OR ($CATEGORYNAME=="Discourse")  )
{
if (Strncmp($NEXT_FILENAME,$FILENAME,7))
$DOWNLOAD_FILENAME=$FILENAME;

if (strcasecmp(trim($NEXT_DESCRIPTION),trim($DESCRIPTION)) )
$DOWNLOAD_FILENAME=$FILENAME;

}
with
 $DOWNLOAD_FILENAME="";
if the condition fails.

No comments:

Post a Comment