I have been thinking for a while in the best solution to do it. I had a lot of good ideas, but I asked my self, why do it?. You can have a standard_text_html_header with the <dtml-var text_logo><dtml-var text_navbar>. But, here we go with one of my ideas (The easy way). Overwrite standard_html_header adding this: <dtml-if expr="id=='index_text_html'"> <dtml-var text_logo> <dtml-var nav_bar> <dtml-else> <dtml-var graphic_logo> <dtml-var graphic_navbar> </dtml-if> Voila!, But I do think is better de first solution. Antonio Carrasco www.udiberica.com acarrasco@udiberica.com "If you look heedfully Reality, you may see pixels". ----- Original Message ----- From: "Michael" <michael@exasource.com> To: <zope@zope.org> Sent: Monday, September 17, 2001 11:47 PM Subject: [Zope] Newbie Question
I am trying to add build a small site using Zope that will have the option of viewing a text only version as well. I have created a standard_html_header which also contains objects for the site logo and navigation information. These are the only graphics on the site. My question is, do I need to create a separate header for the text version, or is there a way that Zope can determine what page is calling the header and then insert the proper object?
ie: index_text_html is calling standard_html_header so "text_logo" and "text_navbar" gets called. Or, index_html is calling the standard_html_header so "graphic_logo" and "graphic_navbar" gets called.
I'm not real good at explaing things, I hope you can understand all of this;-)
Thanks,
Michael
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )