Developer forum

Forum » Templates » Left Menu...

Reply

I have a XML menu on the Left side that only shows the 3rd level...

 

how can I use a tag to check if the menu will have content?

 

so instead of having the left section of the menu empty, I will be able to "stretch" the content to the entire area.

 

something like:

 

 

< apply this CSS >

 

<!--@If Defined(DwLeftMenu)-->

 

  < apply this CSS >

 

<!--@EndIf(DwLeftMenu)-->

 

(this inside .css file)

 

 

is there anyway to do such thing?


Replies

 
Reply

Works perfectly :)

 

...but in the template :(

 

<!--@If Defined(DwLeftMenu)-->
    <div id="leftMenu"><!--@DwLeftMenu--></div>
    <div id="subContent" style="width: 710px;"><!--@DwContent-->
      <!-- end #subContent --></div>
<!--@EndIf(DwLeftMenu)-->

<!--@If Not Defined(DwLeftMenu)-->
    <div id="subContent" style="width: 100%;"><!--@DwContent-->
      <!-- end #subContent --></div>
<!--@EndIf(DwLeftMenu)-->

 

 

 

You must be logged in to post in the forum