Ignore:
Timestamp:
2006-01-27T17:15:18+13:00 (18 years ago)
Author:
jrm21
Message:

we now use the page title where the banner image used to be... this means
we can now remove all the images for "about" "titles a-z" etc that were
shown on the top right hand side.

File:
1 edited

Legend:

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

    r11144 r11152  
    882882    bool unknown = false;
    883883
    884     // test the _iconXXXpage_ macro to see if image macros are
    885     // defined for this type of classification - if not we'll
    886     // just display the text
     884    // test if we have macros defined for this classification's
     885    // metadata name - if not we'll just display the name
    887886    text_t tmp;
    888     text_t macroname="_icon" + title + "page_";
    889     disp.expandstring ("document", macroname, tmp);
     887    text_t macroname="_label" + title + "_";
     888    disp.expandstring ("Global", macroname, tmp);
    890889    if (tmp == macroname) unknown = true; // it wasn't expanded
    891890
    892891    if (unknown) {
    893892      disp.setmacro ("pagetitle", "document", title);
    894       disp.setmacro ("imagethispage", "document", "<h2>" + title + "</h2>");
     893      disp.setmacro ("imagethispage", "document", title);
    895894    } else {
    896       disp.setmacro ("pagetitle", "document", "_text" + title + "page_");
    897       disp.setmacro ("imagethispage", "document", "_icon" + title + "page_");
     895      disp.setmacro ("pagetitle", "document", macroname);
     896      disp.setmacro ("imagethispage", "document", macroname);
    898897    }
    899898
Note: See TracChangeset for help on using the changeset viewer.