|Yes -- that's what I needed. I guess I overlooked the DocumentContents relevance.
From:Katherine Don [mailto:firstname.lastname@example.org]
Sent:Sun 8/24/2003 7:23 PM
To:Gregory S. Williamson
Subject:Re: [greenstone-devel] Format of Documents and Macros
heres what I think you need in your collect.cfg file
format DocumentImages false
format DocumentContents false
format DocumentButtons "the buttons you want"
format DocumentHeading '_If_("[Subject]" eq "X", <img src="x-img">)_If_("[subject]" eq "Y", <img src="y-img">)'
and format the doc heading the way you want it with html tags etc
Note that you can only use DocumentHeading if DocumentImages is false.
hope this works
"Gregory S. Williamson" wrote:
> I've been fiddling with the output of documents to try to mimic some features our designers have in our current version. I've been confusing the bejabbers out of myself and can't seem to find what I am after in documentation.
> We've got a collection icon that shows at the top of the page for everything except the actual generation of a document. This is fine. I've got the nav bars and so on more-or-less where I want them.
> What I'd like to do display a different image at the top of the screen when I am displaying a document, based on the [Subject] metadata tag. I can get the following
> <home> <help> <references>
> <-------nav bar with buttons-------------->
> Title is
> here and
> <No High-
> | The image I want as a banner |
> | |
> | |
> (followed by the actual HTML that was imported into Greenstone)
> What I want is either to:
> (a) change the iconcollection on the fly and display it on document pages
> (b) put my banner image at the top of the browser with the controls below it and the document itself below those.
> I seem to have wandered through various permutations of changes to the document.dm and html.dm macors with no real luck ...
> Any hints, ideas (or "You can't do that"s) are welcome (RTFM guidance would be more useful if specific sections could be pointed at)
> Greg Williamson
> greenstone-devel mailing list