Title en description in News detail pages

Nederlandse ondersteuning voor CMS Made Simple

Moderators: velden, Rolf

Post Reply
Adheera
Forum Members
Forum Members
Posts: 170
Joined: Sat Dec 10, 2011 12:19 pm

Title en description in News detail pages

Post by Adheera »

Ik heb op https://www.kleurenpunctuur.nl (Blog Agenda en Therapeuten) op de news-detail template de volgende code toegevoegd :

{$canonical_url = $entry->canonical|lower scope=global}
{$page_description = $entry->summary|default:$entry->content|strip_tags:false|strip|truncate:300 scope=global}
{$page_modified = $entry->modified_date|date_format:'%e-%m-%Y' scope=global}
{$page_title = $entry->title|cms_escape:htmlall scope=global}

Daar werkt het perfect
Maar op https://www.mariam-massage.nl (Blog en nieuws) werkt dat niet

Iemand enig idee wat er mis gaat?
tristan
Dev Team Member
Dev Team Member
Posts: 320
Joined: Tue May 02, 2006 10:58 am
Location: The Netherlands

Re: Title en description in News detail pages

Post by tristan »

Ik vrees dat je wat meer informatie moet aanleveren of even op Slack moet komen voor wat directere hulp.
Adheera
Forum Members
Forum Members
Posts: 170
Joined: Sat Dec 10, 2011 12:19 pm

Re: Title en description in News detail pages

Post by Adheera »

Welke info wil je?
Ik heb alles ge-update
CGExtensions ook, die gaf wat problemen op CGSmartImage
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7754
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Title en description in News detail pages

Post by Rolf »

https://cmscanbesimple.org/blog/base-cm ... d-metatags

Zorg dat je de standaard {content} blok door Smarty laat bewerken, dat wordt nog wel eens vergeten:

Code: Select all

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

Code: Select all

{$content|strip}
Image
- + - + - + - + - + -
Latest CMSMS tutorial: FormBuilder WatchGuard
- + - + - + - + - + -
Did my post help you solving a problem at your (customers) website and it saved you many hours of work?
Great!! Buy me a cup of coffee in return as a small token of appreciation!
Adheera
Forum Members
Forum Members
Posts: 170
Joined: Sat Dec 10, 2011 12:19 pm

Re: Title en description in News detail pages

Post by Adheera »

Ik heb het gevonden
Op de pagina waar de details vertoond worden (instellingen -Nieuws Module  Standaard pagina voor detail vertoningen:)
<title>{sitename} - {$page_title}</title>
<meta name="description" content="{$page_title}">
Post Reply

Return to “Dutch - Nederlands”