Forums / Setup & design / Topmenu.. can't seem to find why certain output is given.
Lourens Thalen
Wednesday 06 August 2008 4:36:48 am
Hi,
I've got this piece of code in my template: {menu name=TopMenu}
It generates this code:
<h3 class="hide">Top menu</h3> <ul> <li ><div class="spacing"><a href="/index.php/sanelco/Home">Home</a></div></li> <li ><div class="spacing"><a href="/index.php/sanelco/Over-Sanelco">Over Sanelco</a></div></li> <li ><div class="spacing"><a href="/index.php/sanelco/Producten">Producten</a></div></li> <li ><div class="spacing"><a href="/index.php/sanelco/Levering">Levering</a></div></li> <li class="last "><div class="spacing"><a href="/index.php/sanelco/Help">Help</a></div></li> </ul> <div class="break"></div> </div> </div> <hr class="hide" />
I just cannot find the template where this is generated!! Do you have a clue?thanks for your time..
André R.
Wednesday 06 August 2008 4:55:38 am
You'll easily find out if you enable [TemplateSettings]ShowUsedTemplates and [DebugSettings]DebugOutput in site.ini.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Wednesday 06 August 2008 5:45:51 am
This the debug output: Usage count Requested template Template Template loaded Edit Override 1 pagelayout.tpl sanelco_pagelayout.tpl extension/ezodf/design/plain_site/override/templates/sanelco_pagelayout.tpl Edit template Override template 1 setup/debug_toolbar.tpl <No override> design/standard/templates/setup/debug_toolbar.tpl Edit template Override template Number of times templates used: 2 Number of unique templates used: 2
So I still don't have a clue where the menu is generated..
Mark Marsiglio
Wednesday 06 August 2008 5:50:36 am
Since template compile and template cache are enabled on your system, you will need to clear the cache to see the full list of templates used. Only the templates used to render the page are shown, and when the page is loaded from cache, most of the templates are not rendered again since they have already been cached. The first load after clearing the cache will show the menu template location.
http://www.thinkcreative.com Turning Ideas Into Strategic Solutions
Wednesday 06 August 2008 5:53:39 am
Thanks a lot! I think I found it! :)
Nice glasses btw ;)