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

I made a blogpage for a client of my with Couch. Where he can Add the basic stuff title, content, image, date etc. But how can I give the client to add custom tags and categories in the same admin page where he adds the blog content etc. In the tutorial I see only a example that I can add the catergories as a folder like and the blog can have only one category. But the client can't add a caterogy just like he use to do it with Wordpress. See attachment.

Attachments

Thanks, I saw the topic. But could not see it visually working, I will try it out I come back to it.
Hey @Trendoman and KK,

Works great,
But :) is it possible to put the cloned page of the tags inside the blog post section so it's two in one.

For example see attachment. :)

Attachments

Hey, it is possible to have that in that kind of design, but perhaps following approach can be used? viewtopic.php?p=16293#p16293
I can't get it to work :(

Maybe somebody has the time to help me with this as starting point https://www.couchcms.com/forum/viewtopic.php?f=8&t=8952&p=18166#p18166
I give it up, have tried it but it did not work. Get an error message in the admin panel.

ERROR: relation field 'tag_news' not defined in related template 'Tags.php'

These are the couch code in the index.php where I have the blog list.
Code: Select all
<cms:template title='Blog' clonable='1' order='1'>
    <cms:editable name='news_content' type='richtext' />
     
    <cms:editable name='news_image'
        label='News Image'
        desc='Upload your image here'
        type='image'
    />
   
    <cms:editable
        type='reverse_relation'
        name='news_tag'
        masterpage='Tags.php'
        field='tag_news'
        label='Tags'
    />
   
</cms:template>

and these are the couch code in Tags.php

Code: Select all
<cms:template title='Tags' clonable='1' dynamic_folders='1' order='2'>

<cms:editable
    type='relation'
    name='tag_news'
    masterpage='index.php'
    has='one'
    no_gui='1'
    label='-'
/>

</cms:template>

Hope some one can help me with the details :)
Does your template's name start with capital letter - masterpage='Tags.php'?

Also, the error suggests that field 'tag_news' is not appearing in template. Please temporarily turn the gui on - no_gui='0' - and visit both template and one of its pages as super-admin in the frontend. Relation editable will show up in backend and error must be gone afterwards.
Thanks,

That worked :)

Really appreciate the help and fast response.
9 posts Page 1 of 1