Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
15 posts Page 2 of 2
This is cool! Thanks KK, this is very useful ;)
I love this addon, though I'd like to report an issue with PHP 7.2.3: it throws A LOT of errors like this:

Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in <path-to-project>\couch\addons\bootstrap-grid\bootstrap-grid.php on line 41
Thanks @Kulverstukas.
This issue has already been fixed - please get the version of Couch available from GitHub
https://github.com/CouchCMS/CouchCMS
@KK recently pushed an update to type 'row' which lets rows collapse -

2018-11-28-003.png
collapsed='1'
2018-11-28-003.png (9.55 KiB) Viewed 225 times


2018-11-28-002.png
collapsed='0'
2018-11-28-002.png (13.92 KiB) Viewed 225 times


It only needs adding the collapsed parameter to the row's definition (the value could be either '0' or '1' to set the initial state) e.g.

Code: Select all
<cms:editable name='row' type='row' order='1' label='Advanced' collapsed='1' >
   <cms:editable label='Origin' name='car_origin' type='text' class="col-xs-4"/>
   <cms:editable label='Drivetrain' name='car_drivetrain' type='text' class="col-xs-4"/>
   <cms:editable label='Cylinders' name='car_cylinders' type='text' class="col-xs-4" />
</cms:editable>


It is useful for rows nested inside already collapsible 'group' (to have two levels of collapsible content) but these could be used as standalone regions also as a (visually) lighter alternative to 'group'.

I tested this update and personally find it pretty neat - a quick solution to wrap some editables in a row to have them collapsed, while I am working on other fields. A piece of advice here is to add classes (col-*) at the last possible step, after all juggling with editables completed. It will keep the fields stacked, but easy to move around without breaking layout.

To use this cool feature, update your CouchCMS to the latest build - CouchCMS Version 2.2.beta (20181125). https://github.com/CouchCMS/CouchCMS/archive/master.zip
active topics, google
Free support is never free.. Donate!
awesome !!!!!
15 posts Page 2 of 2

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 3 guests