Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
In the admin panel of one of my sites, I need to change one of the columns that displays for a clonable template. Currently it displays the first column for k_page_title and I want to switch it to and/or add a column of one of the editable regions. I read through the custom admin panel tutorial here: http://www.couchcms.com/docs/concepts/databound-forms.html but I am a bit lost.
Can I provide any more details?
Hi,

The docs page on DataBound Form (http://www.couchcms.com/docs/concepts/d ... forms.html) has a link at the very bottom - 'Download source code'.

Extract the contents of the zip and you'll find the 'code/couchified/snippets/' folder within it contain two sample custom-admin snippets -
default_edit.html
default_list.html

You wish to customize only the listing page, so use the second one.

Place it in the snippets folder of your Couch installation and then add the following to addons/kfunctions.php file (change 'your-template.php' to your template's name) -
Code: Select all
$FUNCS->register_admin_listview( 'your-template.php', 'default_list.html' );

The particular template specified above should now use the snippet 'default_list.html' to show its listing. You can now customize the snippet to suit your need.

Hope it helps.
3 posts Page 1 of 1
cron