Forum for discussing general topics related to Couch.
14 posts Page 2 of 2
Please try changing the following -
<cms:pages masterpage='categories.php' custom_field='author_id=k_member_id'>
- to this
<cms:pages masterpage='categories.php' custom_field="author_id=<cms:show k_member_id />">

Please notice that we are using double-quotes.

Does this help?
KK wrote: Does this help?

Yes, it worked! Thanks. But when i try to use it in a form dropdown it does not work. None of the cloned pages are given. The following code just produces a dropdown with one option 'None'.
Code: Select all
<cms:editable name="note_cat" label="Category" opt_values="None <cms:pages masterpage='categories.php' custom_field="author_id=<cms:show k_member_id />">| <cms:show k_page_title />=<cms:show k_page_name /> </cms:pages>" type='dropdown'/>

Is it that k_member_id is not accessible inside the template definition? I want the member to be able to select categories having author_id as his/her k_member_id through a databound form. How do I do this?

-Thanks in advance.

-------EDIT--------

Fixed by using a {display:none} form and setting its value using JS before submission.
I am looking forward to the new tutorial of more complex site structures. I keep lookin for this each day from now on.
* * * * * * I LOVE COUCH CMS - flexible and straight forward * * * * * *
KK wrote: In closing, I am in the process of creating a tutorial where we create a (somewhat) complex site using Couch's advanced features like relations, extended-users, DataBound Forms etc.
If you could wait for just a few days, i think you'll find it useful in creating the kind of functionality you described.


Just saw the new tutorial. It's ironic to note that that was the exact same thing I was trying to do back here. I had finished up everything and was about to buy a domain and licence when I ran into some issues with my server reaching db limit and me running out of money for a new server. I did the same thing and even implemented a sharing notes feature between members. And it was on CouchCMS v1.40.

You can check it out here: http://notes.pixelblenders.com/

The code can be found here : https://github.com/naveenshaji/sync-memories
14 posts Page 2 of 2