Hello again, I recently set a question about nested properties. Unfortunately, we didn't come to a proper solution. I was told to use ZClasses, and I read a lot of documentation about it. But I found out that this isn't the thing I was searching for. So, now I'll try it again, very concrete this time: In my root folder, I have a property enterpriseName (string) = "myEnterprise". Furthermore I have an arbitrary DTML document, and I want to include my global property enterpriseName in the title property of this document so that the title of the document is "myEnterprise" at the end. The sense of that is that when I change the value of enterpriseName automatically all titles are updated. It is not possible to include this enterpriseName into standard_html_header or similar, because there will be many documents, and only some of them need the enterpriseName in their titles, others want to add an own text to the enterpriseName resulting in e. g. "This is the Homepage of XYZ, who is working at myEnterprise". I generally just want to insert one property into another... Please, please help me, I'm despairing in the meantime... Lars
hi afaik its not possible to nest properties. what about dtml method mytitle in the root folder consisting of <dtml-var enterprisename> - <dtml-var title> or something like this? this will acquire title from the current document and enterprisename from the rootfolder provided theres not another enterprisename in the acquisition path. hth peter. On Fri, 29 Sep 2000, Lars Heber wrote: :Hello again, : :I recently set a question about nested properties. : :Unfortunately, we didn't come to a proper solution. : :I was told to use ZClasses, and I read a lot of documentation about it. :But I found out that this isn't the thing I was searching for. : :So, now I'll try it again, very concrete this time: : :In my root folder, I have a property enterpriseName (string) = :"myEnterprise". : :Furthermore I have an arbitrary DTML document, and I want to include my :global property enterpriseName in the title property of this document so :that the title of the document is "myEnterprise" at the end. : :The sense of that is that when I change the value of enterpriseName :automatically all titles are updated. : :It is not possible to include this enterpriseName into :standard_html_header or similar, because there will be many documents, :and only some of them need the enterpriseName in their titles, others :want to add an own text to the enterpriseName resulting in e. g. "This :is the Homepage of XYZ, who is working at myEnterprise". : :I generally just want to insert one property into another... : :Please, please help me, I'm despairing in the meantime... : :Lars : : :_______________________________________________ :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 ) : -- _________________________________________________ peter sabaini, mailto: sabaini@niil.at -------------------------------------------------
Peter Sabaini schrieb:
hi
afaik its not possible to nest properties.
what about dtml method mytitle in the root folder consisting of
<dtml-var enterprisename> - <dtml-var title>
or something like this? this will acquire title from the current document and enterprisename from the rootfolder provided theres not another enterprisename in the acquisition path.
hth peter.
Thanks for your help, but calling this mytitle method had to take place in standard_html_header which however is the same for all the documents and thus not dynamically able to decide whether and where the enterpriseName shall be displayed. But now, I've got an idea. I'll try to pass (or not) parameters to standard_html_header and in s_h_h build the title. Anyway, any further ideas would be greatly appreciated! Lars
On Fri, 29 Sep 2000, Lars Heber wrote:
:In my root folder, I have a property enterpriseName (string) = :"myEnterprise". : :Furthermore I have an arbitrary DTML document, and I want to include my :global property enterpriseName in the title property of this document so :that the title of the document is "myEnterprise" at the end. : :The sense of that is that when I change the value of enterpriseName :automatically all titles are updated. : :It is not possible to include this enterpriseName into :standard_html_header or similar, because there will be many documents, :and only some of them need the enterpriseName in their titles, others :want to add an own text to the enterpriseName resulting in e. g. "This :is the Homepage of XYZ, who is working at myEnterprise". : :I generally just want to insert one property into another... : :Please, please help me, I'm despairing in the meantime... : :Lars
Hi Lars ! Lars Heber wrote:
I was told to use ZClasses, and I read a lot of documentation about it. But I found out that this isn't the thing I was searching for.
Why not use ZClasses ? Look at the ZDP-Tools, and your problems of displaying the header differently depending upon the meta_type is really easy.
So, now I'll try it again, very concrete this time:
In my root folder, I have a property enterpriseName (string) = "myEnterprise".
Furthermore I have an arbitrary DTML document, and I want to include my global property enterpriseName in the title property of this document so that the title of the document is "myEnterprise" at the end.
The sense of that is that when I change the value of enterpriseName automatically all titles are updated.
It is not possible to include this enterpriseName into standard_html_header or similar, because there will be many documents, and only some of them need the enterpriseName in their titles, others want to add an own text to the enterpriseName resulting in e. g. "This is the Homepage of XYZ, who is working at myEnterprise".
If you have meta_type "Employee", then the "Header" would include "This is the Homepage of <dtml-var title>, who is working at <dtml-var myEnterprise>. If you have another meta_type like "Project", then the Header method could be "<dtml-var title> <dtml-var my_enterprise>.
I generally just want to insert one property into another...
Just have a look at how it is done in the ZDP-Tools.
Please, please help me, I'm despairing in the meantime...
It's really just a problem of displaying headers differently depending on meta_type. Regards, Maik Röder -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.com
participants (3)
-
Lars Heber -
Maik Roeder -
Peter Sabaini