Page 1 of 1
Blog title no longer displayed as browse title after upgrade
Posted: Mon Nov 09, 2015 7:37 pm
by Kaylen
I have upgraded to CMS 1.12.1 from 1.11.11 (following the correct upgrade steps) and now my blog title is no longer displayed in the browser title, instead it now says home.
I am using Calguys Blog Module 1.13.2 and SEOTools2
In the top of my tempate I have: {title assign='mytitle'}
In the detail template I have: {$mytitle=$entry->title}
And in SEOTools2 I use this: {$mytitle} | {sitename} for Page Titel.
This used to work, but now it does not.
Can anybody help me?
Thanks a lot in advance for any help.
p.s. it also says only 'home' in the breadcrum trail instead of the blog title and path, how can i fix that?
And the detail page uses a diffrent template then the one the page has where the {CGBlog} tag is on, where do I say where the actual blog uses which template?
Re: Blog title no longer displayed as browse title after upg
Posted: Mon Nov 09, 2015 8:58 pm
by rotezecke
Try:
{title assign='mytitle' scope=global}
and search this forum for smarty scope. there are quite a few threads by now, including workarounds for where things fail.
Re: Blog title no longer displayed as browse title after upg
Posted: Mon Nov 09, 2015 9:20 pm
by Rolf
Re: Blog title no longer displayed as browse title after upg
Posted: Tue Nov 10, 2015 10:12 am
by Kaylen
I tried the workarround that Galguy wrote in another post for the same sort of problem with products, but that did not work en in that workarround he said that the problem should be fixed in 1.12.1 so I ugraded to that version but the problem is still there.
I will try your suggestions, thank you.
Re: Blog title no longer displayed as browse title after upg
Posted: Tue Nov 10, 2015 10:18 am
by Kaylen
Ok I now added {title assign='mytitle' scope=global} to the top of my template, but unfortunately that did not solve the problem, it seems to have done nothing, the title is still displayed as "home"
Any more ideas? Thnx!
Re: Blog title no longer displayed as browse title after upg
Posted: Tue Nov 10, 2015 10:28 am
by Kaylen
I now also tried adding: {$mytitle=$entry->title scope=global} to the detail template in the blogmodule, but it still says "home" instead of the blogtitle in the brwoser so that did not work either :*
Re: Blog title no longer displayed as browse title after upg
Posted: Tue Nov 10, 2015 3:55 pm
by rotezecke
with reference to calguy's workaround, this worked for me:
in news detail template:
Code: Select all
{my_set var=cgblogtitle value="{$entry->title} | {title}"}
and in page template:
Code: Select all
{if $page_alias == 'news-blog'}{my_get var=cgblogtitle assign=cgblogtitle}{$cgblogtitle}{else}...{/if}
with cbblog being called in a page's default content block, and articles displayed "inline".
Re: Blog title no longer displayed as browse title after upg
Posted: Mon Nov 30, 2015 3:37 pm
by Kaylen
if I try that I het smarty error unknow variable my_get
Re: Blog title no longer displayed as browse title after upg
Posted: Mon Nov 30, 2015 3:48 pm
by Jo Morg
This is the context:
http://forum.cmsmadesimple.org/viewtopi ... 23#p323423
You need those UDT's for that to work at all
Re: Blog title no longer displayed as browse title after upg
Posted: Mon Nov 30, 2015 3:57 pm
by Kaylen
if I print this : { assign var='mytitle' value={$entry->title} | {title} scope=global} as HTML output it says: { assign var='mytitle' value=5 stappen om met stress om te gaan als hooggevoelig persoon | Home scope=global} on my website
so {$entry->title} is indeed the title of my artikel
and {title} = Home, which it displays in the browser.
But I want to display {$entry->title} in the browser, can someone please help me? It worked before the updates and I cannot seem to get it working again now...