Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
3 posts Page 1 of 1
This is soo simple, but I will post it here anyways.

To achieve such effect:
Capture.PNG (10.08 KiB) Viewed 1148 times

create some dummy.php templates in some distant folder (snippets would be okay).
Code: Select all
<?php require_once '../couch/cms.php'; ?>
<cms:template title='----------------' executable='0' order='15'  />
<?php COUCH::invoke(); ?>

The trick is to manage proper order of all templates. Trivial stuff.
Make sure, the path to cms.php is properly reflected in the first line, if you moved template out of eyes.
Also put a message, to remove default text, that 'no editables defined'.

full code looks like this now:
Code: Select all
<?php require_once '../couch/cms.php'; ?>
<cms:template title='----------------' executable='0' order='999'   >
    <cms:editable label=''                                                  name='msg1'
                  >This is just a dummy separator template for styling purposes.
<?php COUCH::invoke(); ?>
A bit updated, with special symbol treated as solid line.

Is probably obsolete for CouchCMS > 1.4.7 :)

Code: Select all
<?php require_once( '/couch/cms.php' ); ?>

<cms:template title='───────group────────' order='10' /> 

<?php COUCH::invoke(); ?>

download (13).png
download (13).png (7.63 KiB) Viewed 954 times
3 posts Page 1 of 1

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