Page 1 of 1

Customized title tag

Posted: Thu Aug 16, 2018 7:50 am
by paulhermans
Hi guys, on this page you see "Customized title tag" that is not working in version 2.2.8.

Code: Select all

{content block="custom_title" assign="custom_title" oneline="true" label="Custom Title Text"}

{if $custom_title}
<title>{$custom_title} - {sitename}</title>
{else}
<title>{title} - {sitename}</title>
{/if}
When I change this first line to this, it works, but how should I add the oneline and label attribute?

Code: Select all

{$custom_title="{content block=custom_title}" scope=global}

Re: Customized title tag

Posted: Thu Aug 16, 2018 7:55 am
by Rolf
You can read a full tutorial here at my blog:
https://cmscanbesimple.org/blog/base-cm ... d-metatags