I'm trying to add Couch to my existing site. I've used includes and passed variables for the HTML title. I'd like to continue doing this but I'm having what is likely a very simple issue, just not figuring it out. Basically, what I'd like to do on a blog template is have a stock HTML title or the listing and the post title as the HTML title on a post page. I thought the following would work:
<cms:if k_is_page>
<cms:php>
$pageTitle = "<cms:show k_page_title /> <br />";
echo($pageTitle);
</cms:php>
<cms:else />
<cms:php>
$pageTitle="Stock title";
</cms:php>
</cms:if>
Then have the HTML title echo $pageTitle. It's not working. I can't echo $pageTitle anywhere except in the HEAD tag. I'm sorry in advance for such a simple question, but Something isn't making sense.
Thanks
<cms:if k_is_page>
<cms:php>
$pageTitle = "<cms:show k_page_title /> <br />";
echo($pageTitle);
</cms:php>
<cms:else />
<cms:php>
$pageTitle="Stock title";
</cms:php>
</cms:if>
Then have the HTML title echo $pageTitle. It's not working. I can't echo $pageTitle anywhere except in the HEAD tag. I'm sorry in advance for such a simple question, but Something isn't making sense.
Thanks