Object-MapAuthor: D. Nordmann, 2003/07/23 Addressing special documents of the tree (imprint, contact) directly via object-maps.
If special documents in the tree (imprint, contact) often are addressed directly, it will be rather inflexible to declare anytime the complete path of the object ID. For this purpose the concept object-map was developped. In the central DTML method <!-- BO objMap -->
<dtml-return "{
'impressum':content.e43.e145,
'kontakt':content.e47,
}">
<!-- EO objMap -->
These objects can be addressed directly via the key then. So it is rather simple to generate e.g. a navigation in these documents: <!-- BO bodyTop_Functions -->
<dtml-in "['impressum','kontakt']">
<dtml-with "_['objMap'][_['sequence-item']]">
<a href="<dtml-var "getHref2IndexHtml(REQUEST)">">
<dtml-var "getTitlealt(REQUEST)">
</a>
</dtml-with>
</dtml-in>
<!-- EO bodyTop_Functions -->
|
Home |
Sitemap |
Printversion |
Top |
Imprint |
pressinfo
© 2001-2008 Hoffmann+Liebenberg GmbH, SNTL Publishing GmbH & Co KG
|
ZMS is a partner project of medvalue.net