Ignore:
Timestamp:
2003-07-12T04:29:59+12:00 (21 years ago)
Author:
sjboddie
Message:

Added 3 functions to change the way that collections are displayed
on the main site. Refer to the comments in the code for a further explanation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.cpp

    r4290 r4905  
    7373  encodings.erase(encodings.begin(), encodings.end());
    7474
     75  HomePageType = "images";
     76  HomePageCols = 3;
     77 
    7578  // these default page parameters can always be overriden
    7679  // in the configuration file
     
    268271      }
    269272    }
    270    
     273
     274    else if (key == "SiteFormat") {
     275       if (cfgline[0] == "HomePageType") {
     276      configinfo.HomePageType = cfgline[1];
     277       } else if (cfgline[0] == "HomePageCols") {
     278      configinfo.HomePageCols = cfgline[1].getint();
     279       }
     280    }
     281       
    271282    else if (key == "cgiarg") {
    272283      // get shortname
Note: See TracChangeset for help on using the changeset viewer.