Changeset 10053


Ignore:
Timestamp:
2005-06-13T13:29:32+12:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed the preferences button, for real this time I hope.

Location:
trunk/gsdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/gti.dm

    r10052 r10053  
    11# this file must be UTF-8 encoded
    2 
    3 package Global
    4 
    5 # The preferences button must go to the "homepref" page, since we are not in a collection
    6 # _imagepref_ {_gsimage_(_home:httppagehomepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
    7 
    82
    93package gti
     
    126# page content
    137#######################################################################
     8
     9_pagetitle_ {_textgti_}
     10
     11# The preferences button must go to the "homepref" page, since we are not in a collection
     12_imagepref_ {_gsimage_(_home:httppagehomepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
    1413
    1514_content_ {
  • trunk/gsdl/src/recpt/gtiaction.cpp

    r10051 r10053  
    126126              ostream& logout)
    127127{
    128   textout << outconvert << disp << ("_header_\n") << ("_content_\n") << ("_footer_\n");
     128  textout << outconvert << disp << ("_gti:header_\n") << ("_gti:content_\n") << ("_gti:footer_\n");
    129129  return true;
    130130}
     
    148148  logout << endl << "CGI arg p: " << args["p"] << endl;
    149149
    150   // Set the page content to be the content macro for the gti package
    151   disp.setmacro("content", displayclass::defaultpackage, "_gti:content_");
    152   disp.setmacro("pagetitle", displayclass::defaultpackage, "_gti:textgti_");
     150  // For some reason this must be done as well as setting the macro in gti.dm
     151  disp.setmacro("imagepref", displayclass::defaultpackage, "_gti:imagepref_");
    153152
    154153  // Define the page content for the GTI home page
Note: See TracChangeset for help on using the changeset viewer.