Hi,
In layout you can do a If defined on content placeholders. Im quite sure I we seen that done on navigations as well - is that possible, if yes how?
/Regin Madsen
Developer forum
E-mail notifications
If Defined on navigation
Regin Madsen
Posted on 20/12/2011 21:49:37
Replies
Søren Mejlby
Posted on 21/12/2011 08:34:00
Regin Madsen
Posted on 05/01/2012 11:08:05
Yep, thought so - but doesn't work on the solution Im working on :-(
Il go on to support....
Il go on to support....
Nicolai Høeg Pedersen
Posted on 05/01/2012 11:55:36
You might want to check that your XSLT does not return anything at all when no items are present.
Start your xsl:template with a test like this:
Start your xsl:template with a test like this:
<xsl:if test="count(//Page) > 0">
Regin Madsen
Posted on 05/01/2012 12:52:54
Nicolai -> yes that could be a solution, and when you write it that way I guess its the same as "If defined" on navigation doesnt work?
/Regin
/Regin
Nicolai Høeg Pedersen
Posted on 05/01/2012 14:16:42
If defined on navigation works fine... We use it i.e. at dynamicweb.dk
Regin Madsen
Posted on 05/01/2012 14:30:28
Is it because the page must not have subpages - not even if theyre hidden in the menu? I have copy/pasted Sørens code more or less as it seems right, and changed the ID
<!--@If Defined(DwNavigation(leftNavigation))--> <ul > <li class="parent"><a href="#"><!--@DwPageName_1--></a> <ul title="Menu left" class="dwnavigation sidebar-menu" id="leftNavigation" settings="startlevel:2;endlevel:4;template:Leftmenu.xslt;expandmode:path;"> </ul> </li> </ul> <!--@EndIf(DwNavigation(leftNavigation))-->
Nicolai Høeg Pedersen
Posted on 05/01/2012 15:40:43
It looks right... The devil is in the detail.
Post a URL or mail me - I'll have a look.
Post a URL or mail me - I'll have a look.
Regin Madsen
Posted on 13/01/2012 08:31:17
Hi Nicolai,
I did post you a mail a few days ago, have you had the time to look at it...
I did post you a mail a few days ago, have you had the time to look at it...
You must be logged in to post in the forum