Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Following the portfolio-tutorial, the documentation mentions a limitation near the end when it comes to dynamically updating and storing information relating virtual folders (http://www.couchcms.com/docs/tutorials/ ... folio.html):

Ideally we'd want to provide the user with a richtext editor for entering the description of each folder and a single line text field for its blurb. However, Couch (currently) has no provision for adding any custom information to folders.
To get around this limitation, we'll use a method that should prove useful in several other scenarios too and hence is worth taking a look.

We'll create a separate new template containing the desired editable regions. For each folder (category) that we define for portfolio.php, we'll then create a matching cloned page out of this new template. In these cloned pages we'll store information about each folder.
Finally, while listing the folders, we'll fetch back the data from each associated page and display it.
This technique does entail the maintenance of a separate set of pages that need to be kept synchronized with the original objects, however, it will get the job done quite well.


The tutorial mentions that this is only a temporary solution.

Has there been some progress on a more user-friendly solution to dynamically provide and display custom folder information?
Yes. This capability was just recently added. See viewtopic.php?f=5&t=8581 and http://www.couchcms.com/docs/extended-e ... /post2.htm.
Adding to what @tim mentioned, if the additional information for folders happens to be just some text description and an image (as in the tutorial), we don't need 'extended-folders' for that - that is supported directly. Edit any folder in the admin-panel and you'll see these regions.

On the front-end, the values from these regions can be had as
'k_folder_desc' and 'k_folder_image' (from within cms:folders and folder-view) and
'k_page_folderdesc' and 'k_page_folderimage' (from within cms:pages and page-view).
@KK in the admin panel of 1.4 I cannot find an option to set the virtual folder description / image.

Is this feature only available in 1.4.5?
@JD, those fields are available in older versions too.

I think the reason why you are not seeing them is because you are using 'static' folders - please see the link given below and convert those to 'dynamic' and you'll get a 'Manage Folders' button in the admin-panel.

http://www.couchcms.com/docs/miscellane ... lders.html
That works. Thanks :)
6 posts Page 1 of 1