Hello forum,
I was wondering if it is possible to do a media query with couch?
I am about to make a nested menu site, and the layout of the page should have two parts of the menu in a desktop view, and all-in-one menu in a mobile view.
So I was wondering, if I it is possible to do something like this:
and for the lower menu
That would be great, if possible..
thanks in advance
I was wondering if it is possible to do a media query with couch?
I am about to make a nested menu site, and the layout of the page should have two parts of the menu in a desktop view, and all-in-one menu in a mobile view.
So I was wondering, if I it is possible to do something like this:
- Code: Select all
<cms:if min-width-is-desktop >
<cms:menu masterpage='this.php' exclude='lowermenu' />
<cms:else/>
<cms:menu masterpage='this.php' >
</cms:if>
and for the lower menu
- Code: Select all
<cms:if min-width-is-desktop >
<cms:menu masterpage='this.php' childof='lowermenu' />
<cms:else/>
<div style="display:none">
<cms:menu masterpage='this.php' childof='lowermenu' />
</div>
</cms:if>
That would be great, if possible..
thanks in advance