Customized title tag

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
paulhermans
Forum Members
Forum Members
Posts: 15
Joined: Fri Aug 03, 2018 11:55 am

Customized title tag

Post 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}
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Customized title tag

Post by Rolf »

You can read a full tutorial here at my blog:
https://cmscanbesimple.org/blog/base-cm ... d-metatags
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”