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

I have just started using Couch -and so far - brilliant!
But.. I'm having trouble with certain linking.

I have a list of folders and another list of dates in the sidebar - these work perfectly, but I want to make the individual cloned pages more intuitive, but dispaying the month and category - with a link back to those filtered views.

For example - I have the code:

<p>I belong to: <a href="<cms:show k_folder_link />"><cms:show my_category /></a></p>

Within my news story.
This links to itself, even though surely it should link to its parent folder view?

What am I doing wrong??

Thanks in advance!
Andy
Hello and welcome, Andy :)
I am glad you liked Couch.

As for the problem you mentioned, please use 'k_page_folderlink' instead of 'k_folder_link' and it should work.

It is often difficult to keep track of which variable is available in which view - to help with this, we have the cms:dump and cms:dump_all tags.
If you were to put <cms:dump /> somewhere near the statement 'I belong to..', you'll see a list of all the variables available for use at that point. The 'k_page_folderlink' variable should be there in the list.

Hope this helps.
That's a great help. Thank you! I will try it tomorrow!
3 posts Page 1 of 1