Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi!

I'm using a different styling for checkboxes and accomplished this via this method explained by cheesyproof: http://www.couchcms.com/forum/viewtopic.php?f=4&t=8779&p=17356&hilit=input+label#p17356.

Now, I'm working on a front end submisson for "blog"-entries, for which I'm using tags as well (like explained here: http://www.couchcms.com/forum/viewtopic.php?f=8&t=8952). But when I create the input field for the tags the individual tags are of course missing the "<span></span>" code in front of them, therefore no checkboxes are shown. Is there any way to modify the output of the input field (for data bound forms, which are bound to a relation)?

Or would a workaround be somehow possible? That I don't bind the input field to the related tags directly, but show an independent checkbox listing the tags (where I could add the required span for the styling) and then add those to the actual "related" tags when submitting the entry?
Hi Klaus,

We can feed explicit values (comma separated related page ids) to cms:db_persist_form e.g. as follows
Code: Select all
<cms:db_persist_form 
        tags='21, 43, 102'
        tags=frm_some_variable
        tags="<cms:show some_variable />"
/> 

The advanced tutorial uses the same method -
http://www.couchcms.com/docs/advanced-t ... -view.html

Hope it helps.
Thanks!... but I fear that I'm a bit lost here :(.

So, creating a new checkbox is no problem. But how do I feed the information from that checkbox_input to the tags? When I dump all variables within my regular "blog posts" the related tags variable is actually empty, although the tags work. So in what "format" does the checkbox-variable need to be saved?
I set up the whole thing exactly as you descriped in said thread.
but I fear that I'm a bit lost here :(
Totally understandable, Klaus :)

Please give me a day's time and I should get back with some sample code for you.

Thanks.
I made the same mistake like with the other form (http://www.couchcms.com/forum/viewtopic.php?f=4&t=9032) and added already "frm" to the input field... Works now as it should :D

Thanks for the help!
5 posts Page 1 of 1
cron