[Zope] Property problem - still the same...

Lars Heber lheber@debis.com
Fri, 29 Sep 2000 13:08:37 +0200


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