What's wrong with this code?
Hello, When: <dtml-unless renderedheader> <dtml-call "REQUEST.set('renderedheader',1)"> blah blah </dtml-unless> Is put in the standard_html_header object it behaves correctly: I want my standard header and footer objects to render when pages containing them are published. I don't want my standard header and footer objects to render when When that same code is put in the standard_html_footer object it never is published. If I preview just the standard_html_header it works. If I preview just the standard_html_footer it works. If I create a simple page like: <dtml-var standard_html_header> <p>This is some text.</p> <dtml-var standard_html_footer> The footer doesn't get published. I'm sure it's something obvious, but I've spent a few hours going through everything I can find and haven't got anywhere. thanks, Luke
+----[ Luke Tymowski ]--------------------------------------------- | Hello, | | When: | <dtml-unless renderedheader> | <dtml-call "REQUEST.set('renderedheader',1)"> | blah blah | </dtml-unless> ...snip... | If I create a simple page like: | <dtml-var standard_html_header> | <p>This is some text.</p> | <dtml-var standard_html_footer> | | The footer doesn't get published. I'll go the obvious answer straight up... Because 'renderedHeader' is already set? You want to change it to renderedFooter in the footer... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
On Mon, 3 Jul 2000, Andrew Kenneth Milton wrote:
Because 'renderedHeader' is already set? You want to change it to renderedFooter in the footer...
Actually (you've doubtless already figured this out) you'll need to make it a counter incramented in the header and decramented in the footer so that you render only the footer matching the header that was rendered. --RDM
participants (3)
-
Andrew Kenneth Milton -
Luke Tymowski -
R. David Murray