Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi!

I'm currently building a blog with couch and I have enabled dynamic folders and created below:

Video
- Travel
- Nature
Blog
- DIY
- Other

Let's say I create a new post and assign it to the travel folder, which is a child of Video. To display which folder the post is assigned to, I simply type
Code: Select all
<cms:show k_page_foldername />

So far so good..
But I also want to output the parent foldername, in this case "Video". Is there an easy solution to output this?

Thanks!
Perhaps, this -
Code: Select all
<cms:parentfolders folder=k_page_foldername skip_child='1'>
       <cms:show k_folder_title />
</cms:parentfolders>
Thanks for the quick reply Trendoman, I hope you are doing well!

I tried this, and it outputs nothing I'm afraid :roll:

I'm trying this from the documentation, also outputs nothing:
Code: Select all
<cms:parentfolders folder='travel' >
    <a href="<cms:show k_folder_link/>"><cms:show k_folder_title/></a>&nbsp;>
</cms:parentfolders>


Does this have to do that I fetch the data from another template? and use it within below?

Code: Select all
<cms:pages masterpage='blog.html' limit='5' orderby='publish_date' order='asc' >

  </cms:pages>
trendoman wrote: Perhaps, this -
Code: Select all
<cms:parentfolders folder=k_page_foldername skip_child='1'>
       <cms:show k_folder_title />
</cms:parentfolders>


Ahh! Solved it thanks to you :D

I had to specify the masterpage as such:
Code: Select all
<cms:parentfolders folder=k_page_foldername skip_child='1' masterpage='blog.html'>
    <a href="<cms:show k_folder_link/>"><cms:show k_folder_title/></a>&nbsp;>
</cms:parentfolders>


I assumed because above code is within this block I wouldn't need to specify:
Code: Select all
<cms:pages masterpage='blog.html' limit='5' orderby='publish_date' order='asc' > 


I clearly have a lot to learn 8-)

Thanks for the help and have a nice day
4 posts Page 1 of 1