Page 2 of 2
Re: A Content block for the description meta tag
Posted: Tue Nov 09, 2010 10:39 am
by Peciura
Code: Select all
It seems that I did everything as shown, but still does not working for me.
There should be set
Code: Select all
$config['process_whole_template'] = false;
ion your "/config.php"
and
at the top of your template.
Template processing is explained here
http://forum.cmsmadesimple.org/index.ph ... #msg203281
Re: A Content block for the description meta tag
Posted: Tue Nov 09, 2010 11:17 am
by Marijus
Everything was done as follows.
But when I add
Code: Select all
{assign var='pagedescription' value="$entry->summary"}
to the news module detail template I got errror:
Catchable fatal error: Object of class stdClass could not be converted to string in ...../public_html/tmp/templates_c/News^%%8C^8CF^8CF5F68A%%module_db_tpl%3ANews%3Bdetaildetalus.php on line 62
Re: A Content block for the description meta tag
Posted: Tue Nov 09, 2010 2:01 pm
by Peciura
Try
Code: Select all
{assign var='pagedescription' value=$entry->summary}
Re: A Content block for the description meta tag
Posted: Tue Nov 09, 2010 7:31 pm
by Marijus
Peciura wrote:
Try
Code: Select all
{assign var='pagedescription' value=$entry->summary}
Thanks that helps me.
And I changed a little code for news module detail template:
Code: Select all
{assign var='pagedescription' value=$entry->summary}
{if empty($pagedescription)}
{assign var='pagedescription' value=$entry->content}
{/if}
In case that summary field is empty.
Re: A Content block for the description meta tag
Posted: Fri Nov 19, 2010 10:03 am
by Marijus
If in config file ['process_whole_template'] set to true then new description not working.