Hi KK,
1. root: dependant on what has been clicked (see below)
2. top-level folders: see pictures below.
3. sub-folders: using a modal/pop-up to display its custom fields contents.
My concern is how to check what has been selected in the menu for "all projects" (OR aan de kust OR binnenland), to adjust the list-view accordingly. All the rest already works dynamically.
Thanks...
ps: license request/payment on its way...
MENU
REFERENTIES, AAN DE KUST and BINNENLAND are not clickable (only the next menu-items)
LISTVIEW
clicking Koksijde
clicking Nieuwpoort
clicking all projects (aan de kust)
code snippet
1. root: dependant on what has been clicked (see below)
2. top-level folders: see pictures below.
3. sub-folders: using a modal/pop-up to display its custom fields contents.
My concern is how to check what has been selected in the menu for "all projects" (OR aan de kust OR binnenland), to adjust the list-view accordingly. All the rest already works dynamically.
Thanks...
ps: license request/payment on its way...
MENU
REFERENTIES, AAN DE KUST and BINNENLAND are not clickable (only the next menu-items)
LISTVIEW
clicking Koksijde
clicking Nieuwpoort
clicking all projects (aan de kust)
code snippet
- Code: Select all
...<cms:if k_is_folder >...
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">Projecten <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Aan de kust</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="projecten.php">Alle projecten</a></li>
<cms:folders masterpage='nl/projecten.php' childof='aan-de-kust'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Binnenland</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="projecten.php">Alle projecten</a></li>
<cms:folders masterpage='nl/projecten.php' childof='binnenland'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
</ul>
</li>
<li class="active dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">Referenties <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Aan de kust</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="referenties.php">Alle projecten</a></li>
<cms:folders masterpage='nl/referenties.php' childof='aan-de-kust'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">binnenland</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="referenties.php">Alle projecten</a></li>
<cms:folders masterpage='nl/referenties.php' childof='binnenland'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
</ul>
</li>
<li><a href="nieuws.php">Nieuws</a></li>
<li><a href="contact.php">Contact</a></li>
...
<!-- START IF -->
<cms:set count='0' scope='global'/>
<cms:folders root="<cms:show k_folder_name />">
<cms:if "<cms:not count/>">
<div class="row residenties linkResidentie">
</cms:if>
<div class="col-md-3"><img src="<cms:show k_folder_image />" class="img-responsive" height="250px" width="250px">
<div class="oranjeBanner"><img src="img/oranjeBanner.jpg" class="img-responsive"><h1><cms:show k_folder_title/></h1></div></div>
<cms:set count="<cms:add count '1'/>" scope='global'/>
<cms:if count == '4'>
<cms:set count='0' scope='global'/>
</div>
</cms:if>
<cms:pages folder=k_folder_name>
<cms:if "<cms:not count/>">
<div class="row residenties linkResidentie">
</cms:if>
<div class="col-md-3"><img src="<cms:show afbeelding_residentie />" class="img-responsive" height="250px" width="250px"><div class="<cms:show k_page_name/>">
<img src="img/pijl.png"><a href="#"><cms:show k_page_title/></a></div></div>
<cms:set count="<cms:add count '1'/>" scope='global'/>
<cms:if count == '4'>
<cms:set count='0' scope='global'/>
</div>
</cms:if>
</cms:pages>
</cms:folders>
<cms:if count>
<cms:repeat count="<cms:sub '4' count/>">
<div class="spacer"> </div>
</cms:repeat>
</div>
</cms:if>
<!-- FINAL IF -->
...
<cms:else />
...
<li><a tabindex="-1" href="projecten.php">Alle projecten</a></li>
<cms:folders masterpage='nl/projecten.php' childof='aan-de-kust'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Binnenland</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="projecten.php">Alle projecten</a></li>
<cms:folders masterpage='nl/projecten.php' childof='binnenland'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
</ul>
</li>
<li class="active dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">Referenties <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Aan de kust</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="referenties.php">Alle projecten</a></li>
<cms:folders masterpage='nl/referenties.php' childof='aan-de-kust'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">binnenland</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="referenties.php">Alle projecten</a></li>
<cms:folders masterpage='nl/referenties.php' childof='binnenland'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
</li>
</ul>
</li>
<li><a href="nieuws.php">Nieuws</a></li>
<li><a href="contact.php">Contact</a></li>
...
<!-- START IF -->
<cms:set count='0' scope='global'/>
<cms:folders childof="aan-de-kust">
<cms:if "<cms:not count/>">
<div class="row residenties linkResidentie">
</cms:if>
<div class="col-md-3"><img src="<cms:show k_folder_image />" class="img-responsive" height="250px" width="250px">
<div class="oranjeBanner"><img src="img/oranjeBanner.jpg" class="img-responsive"><h1><cms:show k_folder_title/></h1></div></div>
<cms:set count="<cms:add count '1'/>" scope='global'/>
<cms:if count == '4'>
<cms:set count='0' scope='global'/>
</div>
</cms:if>
<cms:pages folder=k_folder_name>
<cms:if "<cms:not count/>">
<div class="row residenties linkResidentie">
</cms:if>
<div class="col-md-3"><img src="<cms:show afbeelding_residentie />" class="img-responsive" height="250px" width="250px"><div class="<cms:show k_page_name/>">
<img src="img/pijl.png"><a href="#"><cms:show k_page_title/></a></div></div>
<cms:set count="<cms:add count '1'/>" scope='global'/>
<cms:if count == '4'>
<cms:set count='0' scope='global'/>
</div>
</cms:if>
</cms:pages>
</cms:folders>
<cms:if count>
<cms:repeat count="<cms:sub '4' count/>">
<div class="spacer"> </div>
</cms:repeat>
</div>
</cms:if>
<!-- FINAL IF -->
...