Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Well, I just started using dynamic_folders and I'm having trouble displaying the article folder.

To display the folder I am using <cms:show k_page_foldertitle /> but, oddly, it doesn't display the folder.

PS: I will want to display all the folders in a dropdown and I just wrote this:

Code: Select all
       <select class="category" onChange="window.location.href=this.value">
         <option disabled="disabled" selected="selected" style="display:none;">..categorie:</option>
         <option value="#">Toate</option>
           <cms:folders masterpage='article.php'>
         <option value="<cms:show k_folder_link />"><cms:show k_folder_title /></option>
         </cms:folders>
      </select>


Do you think this will work? Or is there another way of doing it with couch?
Hi,

For all practical purposes you can consider 'Dynamic' folders as *exactly* the same as those statically defined. Apart from the way the two are defined, there is no difference whatsoever in how we query and list them.

So, if you are sure your article is in a folder, <cms:show k_page_foldertitle /> should show the folder's title (assuming you are using the statement in the page_view). You can place a <cms:dump_all /> to see for yourself what variables are available to you.

The dropdown's code also seems fine to me.
KK wrote: Hi,

For all practical purposes you can consider 'Dynamic' folders as *exactly* the same as those statically defined. Apart from the way the two are defined, there is no difference whatsoever in how we query and list them.

So, if you are sure your article is in a folder, <cms:show k_page_foldertitle /> should show the folder's title (assuming you are using the statement in the page_view). You can place a <cms:dump_all /> to see for yourself what variables are available to you.

The dropdown's code also seems fine to me.


Well, thanks for the answer, there's one thing I forgot to do after placing the <cms:show k_page_foldertitle />, and that is logging in as a SuperAdmin. Now everything works. Thanks and sorry for the trouble :)
@KK , is there a way to show the parent folder(s) too when using Dynamic Folders?
is there a way to show the parent folder(s) too when using Dynamic Folders?

I think you should find the cms:parentfolders (http://www.couchcms.com/docs/tags-refer ... lders.html) and cms:is_ancestor (http://www.couchcms.com/docs/tags-refer ... estor.html) useful in displaying information about parents of a folder.

Hope it helps.
5 posts Page 1 of 1