First of all, a big compliment for creating a great system with a fantastic documentation. As a front-end developer, I found CouchCMS a couple of days ago and I am impressed with the intuitive way you can dynamicallly implement any design. Reminds me a bit of ProcessWire (https://processwire.com/)...
I followed the official tutorial and encountered a problem when trying to dynamically set the links for the different category folders of the blog, in which the post entries are placed. For example in blog.php, which displays a single post entry I use the following:
This will correctly set the category folder (<cms:show my_category />), but it won't show the correct link (<cms:link masterpage='blog.php' folder=k_folder_link />). The link will always redirect to blog.php, instead of using the correct category prefix (e.g., blog.php?f=5).
I have the same problem in the view-list, in this case blog_list.html.
Would appreciate your advise how to set the links correctly.
I followed the official tutorial and encountered a problem when trying to dynamically set the links for the different category folders of the blog, in which the post entries are placed. For example in blog.php, which displays a single post entry I use the following:
- Code: Select all
<div class="post">
<!-- Post Title -->
<h3 class="title"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h3>
<!-- Post Title -->
<cms:if k_page_foldertitle >
<cms:set my_category=k_page_foldertitle />
<cms:else />
<cms:set my_category='Uncategorized' />
</cms:if>
<p class="sub">
<a href="<cms:link masterpage='blog.php' folder=k_folder_link />"><cms:show my_category /></a> • <cms:date k_page_date format='jS M, y' />
</p>
<div class="hr dotted clearfix"> </div>
<!-- Post Title -->
<img class="thumb" src="<cms:show blog_image />" alt=""/>
<!-- Post Content -->
<cms:show blog_content />
<!-- Post Links -->
<p class="clearfix">
<a href="<cms:link masterpage='blog.php' />" class="button float" ><< Back to Blog</a>
</p>
</div>
<div class="hr clearfix"> </div>
This will correctly set the category folder (<cms:show my_category />), but it won't show the correct link (<cms:link masterpage='blog.php' folder=k_folder_link />). The link will always redirect to blog.php, instead of using the correct category prefix (e.g., blog.php?f=5).
I have the same problem in the view-list, in this case blog_list.html.
Would appreciate your advise how to set the links correctly.