Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello, everyone!

I'm coding a gallery, which is pretty simple with " gallery='1' "
It always stays in 'home' view. I enumerate images with 'cms:pages' tag.
I would also like to manage SEO strings, such as titile, desc, keywords from within AdminPanel, on the same template page.

In the future, my plan is to make 5-6 galleries as 'dynamic folders'. In this case, i suppose, it will be easier to assign 'seo editables' to each folder and use them.

What should I read in docs to create those 'seo editables' if I have only one gallery? I do not code a 'page view', only 'home view'.

Thank you!
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hi :)

I think you should use a 'global' template to persist values for the home-view - please see http://docs.couchcms.com/tutorials/port ... bal-values

For values attached to each folder-view, I think, you should use 'extended-folders' (described here - viewtopic.php?f=5&t=8581).

Hope it helps.
KK wrote: Hi :)
Hope it helps.


Yes, it helps a lot. :)

I will try different approaches and update this post.

My first experiment: 1st template for the gallery, 2nd template for SEO with dynamically created pages in admin.
If in SEO template we find a page with the same title, then we show our values.

Code: Select all
<cms:set curr_template_title=k_template_title />

<cms:pages masterpage='non-exec/seo.php'>
   <cms:if k_page_title==curr_template_title>
<title><cms:show seo_title /></title>
<meta name="description"   content="<cms:show seo_desc />" />
<meta name="keywords"       content="<cms:show seo_keywords />" />
   </cms:if >
</cms:pages>
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Today I swam into the folowing approach:
http://www.couchcms.com/forum/viewtopic.php?f=8&t=8559

It looks very promising, unfortunately not very dumb-client-oriented :roll: I liked it but will stick with something else for now.

Next, my plan was to evaluate a separate template with fixed editable regions for SEO, but as everything is fixed, I will pass and, instead, check out extended folders.

PS There is an understanding, that a gallery would require some additional text in future. That's why i'm looking for a future-proof way of coding the gallery.

PPS As a dirty-quick solution I also can use the description variable of a folder. Just put html there like this
Code: Select all
<title>Some titile</title>
<meta name="description"   content="What it is about" />
<meta name="keywords"       content="i, dont, mess, with, messi" />

and show it like this
Code: Select all
<html>
<head>
<cms:show k_folder_desc />
...
</head>
<body>
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
4 posts Page 1 of 1