I've implemented Couch on a website in the past couple of days and it was a smooth ride. If I couldn't find answers to my questions in the Documentation, which itself is really concise, I found them in the Forums.
One answer I haven't been able to find though. It concerns page-specific META description values. I have a template and it's not at all a problem to get specific description for each of the pages of the template. However, I'd like to enable my client to enter specific description for the list-of-pages page itself. Or in Couch language, for the k_is_home page
Basically, I'd like this page to have a specific description: http://www.dentalpavelic.hr/usluge/
It's subpages (children) were easy to add specific description to: http://www.dentalpavelic.hr/usluge/implantati.html
I simply added a "description" editable field in the template and call it for each page with this line, placed in header.inc:
Currently I'm showing specific description for pages and global description for page lists and the homepage:
But like I said before, I'd like for all of the pages of the website to have specific META description tags if at all possible.
Can this be done somehow with custom fields, via globals.php...? I tried several things, experimented a bit, but with no success. Any help would be greatly appreciated!
One answer I haven't been able to find though. It concerns page-specific META description values. I have a template and it's not at all a problem to get specific description for each of the pages of the template. However, I'd like to enable my client to enter specific description for the list-of-pages page itself. Or in Couch language, for the k_is_home page

Basically, I'd like this page to have a specific description: http://www.dentalpavelic.hr/usluge/
It's subpages (children) were easy to add specific description to: http://www.dentalpavelic.hr/usluge/implantati.html
I simply added a "description" editable field in the template and call it for each page with this line, placed in header.inc:
- Code: Select all
<meta name="page_description" content="<cms:show page_description />">
Currently I'm showing specific description for pages and global description for page lists and the homepage:
- Code: Select all
<cms:if k_is_page>
<meta name="description" content="<cms:show page_description />">
<cms:else />
<meta name="description" content="Here goes a global description of the website.">
</cms:if>
But like I said before, I'd like for all of the pages of the website to have specific META description tags if at all possible.
Can this be done somehow with custom fields, via globals.php...? I tried several things, experimented a bit, but with no success. Any help would be greatly appreciated!