Hi
Having an issue with the folder listing mechanism.
I made a menu with the use of the folder tag and the right folder items are showing up when selected.
But each item doesn't show up once, but at least 5 times,...
Don't have a clue where to start looking for this..
Also you will see that I made use of the custom 'tag' solution that I found on the forum.
Worked fine, but it seems to be combined with the folder listing.
Thanks!
Some code snippets:
From the menuheader
From the listpage
Having an issue with the folder listing mechanism.
I made a menu with the use of the folder tag and the right folder items are showing up when selected.
But each item doesn't show up once, but at least 5 times,...
Don't have a clue where to start looking for this..
Also you will see that I made use of the custom 'tag' solution that I found on the forum.
Worked fine, but it seems to be combined with the folder listing.
Thanks!
Some code snippets:
From the menuheader
- Code: Select all
<cms:folders masterpage='blog.php' childof='locatie' hierarchical='1' extended_info='1'>
<cms:if k_level_start >
<UL class="dropdown-menu" role="menu"></cms:if>
<cms:if k_element_start >
<LI class="dropdown-submenu">
<a tabindex="-1" href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
</cms:if>
<cms:if k_element_end ></LI></cms:if>
<cms:if k_level_end ></UL></cms:if>
</cms:folders>
From the listpage
- Code: Select all
<div class="container">
<div class="row">
<div class="col-md-8 page-content">
<cms:set my_tag="<cms:gpc 'tag' />" />
<cms:if my_tag >
<cms:set my_query="tags=<cms:show my_tag />" />
</cms:if>
<h1 class="filter">Gefilterd op: <cms:show k_folder_name /></h1>
<h1 class="filter"><cms:show my_tag /></h1>
<cms:pages masterpage='blog.php' custom_field=my_query>
<cms:if k_is_folder >
<cms:pages folder=k_folder_name include_subfolders='1' >
<a href="<cms:show k_page_link />">
<div class="row list-item">
<div class="col-md-4">
<h1 class="list"><cms:show k_page_title /></h1>
<h4 class="date"><cms:date k_page_date format='%d %B %Y' locale='dutch' charset='ISO-8859-1' /></h4>
<p><cms:excerpt count='90' truncate_chars='1'><cms:show content /></cms:excerpt></p>
</div>
<div class="col-md-8">
<img class="list-image" src="<cms:show image />" alt="<cms:show image_description />">
<cms:if video gt '1' >
<iframe class="list-image" src="//player.vimeo.com/video/<cms:show video />" width="100%" height="265" frameborder="0" webkitallowfullscreen
mozallowfullscreen allowfullscreen></iframe>
</cms:if>
</div>
</div>
</a>
<cms:each tags sep=',' >
<a class="tag" href="<cms:link k_template_name />?tag=<cms:show item />" ><cms:show item /></a>
</cms:each>
<div class="buffer"></div>
</cms:pages>
</cms:if>
</cms:pages>
</div>
<cms:embed 'sidebar.html' />
</div>
</div>