You are here:   » Home » Documentation » Details » How-To » System Configuration » Object-Map

Object-Map

Author: 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 objMap these special documents are declared by a declarative key:

<!-- 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 -->
Print this Document   change language   Sitemap   Contact