[TYPO3-english] Thinking mistake? (advanced) mapping in templavoila

Jigal van Hemert jigal at xs4all.nl
Thu Nov 26 23:35:44 CET 2009


Hi Paul,

Paul Rijke wrote:
> <div id="sidebar"> => mapped to filed field_sidebar with element type
> content elemens
> 
>                 <div class="nav"> => (currently not cause of error) mapped
> to lib.subMenu
> 
>                 </div>
> 
> </div>

The first mapping of the sidebar will replace the contents of that div 
by the content elements you put in that container.
This directly shows the problem with the subMenu: if the contents of the 
sidebar div are replaced by something else, what can be done with the 
submenu? The div with class "nav" isn't there anymore!

You can do something like:

<div id="sidebar">
   <div id="sidebar-content"> mapped to field_sidebar </div>
   <div id="submenu"> mapped to lib.subMenu </div>
</div>

Regards, Jigal.


More information about the TYPO3-english mailing list