OK, I have a standard_html_header for my site that uses the following <dtml-with "PARENTS[0]"> <title><dtml-var head_title></title> <META NAME="keywords" CONTENT="<dtml-var meta_keywords>"> <META NAME="description" CONTENT="<dtml-var meta_description>"> <META NAME="author" CONTENT="<dtml-var meta_author>"> <META NAME="copyright" CONTENT="<dtml-var meta_copyright>"> <dtml-var head_javascript> <snipped rest of document> <dtml-var id> </dtml-with> In this way, the properties of the ZClass (into which the standard_html_header is placed) are used for the for the meta author/copyright/keywords/description/javascript. All of those that I just mentioned work perfectly well, with the correct property being inserted, however, <dtml-var id> results in the id of the parent folder of standard_html_header being inserted, instead of the id of the zclass. Could anyone point out how I can get hold of the zclass id? thanks very much tim
on Thursday, August 31, 2000 Tim Hicks wrote : TH> OK, I have a standard_html_header for my site that uses the following [snip] TH>....with the correct property being TH> inserted, however, <dtml-var id> results in the id of the parent TH> folder of standard_html_header being inserted, instead of the id of TH> the zclass. Could anyone point out how I can get hold of the zclass TH> id? first of all : make sure your standard_html_header is a method, not a document.... -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
----- Original Message ----- From: "Geir Bfkholt" <geirh@funcom.com> To: "Tim Hicks" <tim.hicks@iname.com> Cc: <zope@zope.org> Sent: Thursday, August 31, 2000 2:30 PM Subject: Re: [Zope] <dtml-with> and PARENTS[0]
on Thursday, August 31, 2000 Tim Hicks wrote : TH> OK, I have a standard_html_header for my site that uses the following [snip] TH>....with the correct property being TH> inserted, however, <dtml-var id> results in the id of the parent TH> folder of standard_html_header being inserted, instead of the id of TH> the zclass. Could anyone point out how I can get hold of the zclass TH> id?
first of all : make sure your standard_html_header is a method, not a document....
Yup, definitely a method. Out of interest, if it were a document, why would all of the <dtml-var's> work except id? tim
-- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
on Thursday, August 31, 2000 Tim Hicks wrote : .... TH> Yup, definitely a method. Out of interest, if it were a document, why TH> would all of the <dtml-var's> work except id? acquisition, i guess.. satandard_html_header would not usually have those properties itself.. if it was a document, and had those other properties, the ones from the header would be used.. Seems rather strange that id from standard_html_header is used if it is a method.. puzzling.. cannot think of a reason.. -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
----- Original Message ----- From: "Geir Bfkholt" <geirh@funcom.com> To: "Tim Hicks" <tim.hicks@iname.com> Cc: <zope@zope.org> Sent: Thursday, August 31, 2000 2:56 PM Subject: Re[2]: [Zope] <dtml-with> and PARENTS[0]
on Thursday, August 31, 2000 Tim Hicks wrote :
.... TH> Yup, definitely a method. Out of interest, if it were a document, why TH> would all of the <dtml-var's> work except id?
acquisition, i guess.. satandard_html_header would not usually have those properties itself..
if it was a document, and had those other properties, the ones from the header would be used..
Seems rather strange that id from standard_html_header is used if it is a method.. puzzling..
cannot think of a reason..
DOH! There was me thinking that I had to use PARENTS[0] in order to get hold of the zclas that had standard_html_header inserted into it... when I don't! Taken out all the PARENTS[0]'s and it is behaving like it should do. Now it's working, I think I actually understand how it works as well! Sorry about that, I think I made things more complicated than they are. tim
-- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
Geir BXkholt wrote: ...
acquisition, i guess.. satandard_html_header would not
Now that is one 'hell' of a typo! ;^)= -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password.
participants (3)
-
Bill Anderson -
Geir B�kholt -
Tim Hicks