[Zope] dtml-with and PARENTS[0]
OK, I have a standard_html_header for my site that uses the following dtml-with "PARENTS[0]" titledtml-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 ___ Zope maillist - [EMAIL PROTECTED] 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 )
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] THwith 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 [EMAIL PROTECTED] http://www.funcom.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] dtml-with and PARENTS[0]
- Original Message - From: "Geir Bfkholt" [EMAIL PROTECTED] To: "Tim Hicks" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] 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] THwith 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 [EMAIL PROTECTED] http://www.funcom.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] 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.. -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Re: Re[2]: [Zope] dtml-with and PARENTS[0]
- Original Message - From: "Geir Bfkholt" [EMAIL PROTECTED] To: "Tim Hicks" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] http://www.funcom.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Re[2]: [Zope] dtml-with and PARENTS[0]
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. ___ Zope maillist - [EMAIL PROTECTED] 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 )