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

2000-09-30 Thread Maik Roeder

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

___
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] Property problem - still the same...

2000-09-29 Thread Peter Sabaini


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  -  [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 )
:

-- 

_
peter sabaini, mailto: [EMAIL PROTECTED]
-


___
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 )