Changeset 9867


Ignore:
Timestamp:
2005-05-13T15:36:32+12:00 (19 years ago)
Author:
kjdon
Message:

modified the textheader macro for document package - it previously called Global:header, and this used _pagetitle_ which is defined in teh document package, but it seems that if you use _Global:header_ instead of _header_ then you don't get package specific macros, so it was displaying GSDL Error instead of the title.

File:
1 edited

Legend:

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

    r8444 r9867  
    237237##
    238238## We can get around this by re-defining the textheader macro to output
    239 ## What we want (instead of the normal version in document.dm). We force
    240 ## it to use the "Global" version of the header macro instead of the "document"
    241 ## version, which gets overridden to nothing. This also adds in the normal
    242 ## links and navigation buttons as found on the about and search pages.
     239## what we want (instead of the normal version in document.dm). We copy the
     240## Global version of _header_ (from style.dm) and add it as the content of
     241## _textheader_. Note that we can't just use
     242## _textheader_ [c=garish] {_Global:header_}
     243## as any package specific macros (eg _pagetitle_) will no longer be used.
     244
    243245_textheader_ [c=garish] {
    244 <!-- start of custom document:textheader -->
    245246_cgihead_
    246 _Global:header_
    247 <!-- end of custom document:textheader -->
    248 }
     247_htmlhead_(background="_httpiconchalk_")_startspacer__pagebanner_
     248}
     249
     250
    249251
    250252
Note: See TracChangeset for help on using the changeset viewer.