Blog title no longer displayed as browse title after upgrade

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Blog title no longer displayed as browse title after upgrade

Post 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?
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: Blog title no longer displayed as browse title after upg

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

Re: Blog title no longer displayed as browse title after upg

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Blog title no longer displayed as browse title after upg

Post 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.
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Blog title no longer displayed as browse title after upg

Post 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!
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Blog title no longer displayed as browse title after upg

Post 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 :*
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: Blog title no longer displayed as browse title after upg

Post 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".
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Blog title no longer displayed as browse title after upg

Post by Kaylen »

if I try that I het smarty error unknow variable my_get
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: Blog title no longer displayed as browse title after upg

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Blog title no longer displayed as browse title after upg

Post 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...
Post Reply

Return to “Modules/Add-Ons”