Anybody get a news item's title to appear as the page title yet with 1.4?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Anybody get a news item's title to appear as the page title yet with 1.4?

Post by anthony »

I saw in the changelog that it should now be possible to get a news item's title to be the page title on your detail pages.  I was just wondering if anybody was able to get this working yet and if so, had an example.

Thanks!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Anybody get a news item's title to appear as the page title yet with 1.4?

Post by calguy1000 »

Read the blog at http://calguy1000.com
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: Anybody get a news item's title to appear as the page title yet with 1.4?

Post by anthony »

Nice, did you have to do anything special to get it working?

I'm trying to add it to my news items, and have this in my template but it is not working.  Any help would be appreciated.

Code: Select all

<title>{$entry->title}</title>
kendo451

Re: Anybody get a news item's title to appear as the page title yet with 1.4?

Post by kendo451 »

Calguy, your blog doesn't have any articles explaining how to put New Item in the title on the detail page.
dmgd
Forum Members
Forum Members
Posts: 115
Joined: Tue Jun 06, 2006 1:10 pm
Location: TX

Re: Anybody get a news item's title to appear as the page title yet with 1.4?

Post by dmgd »

Use advanced google search and search the site.
Mark
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Anybody get a news item's title to appear as the page title yet with 1.4?

Post by Dr.CSS »

kendo451

Re: Anybody get a news item's title to appear as the page title yet with 1.4?

Post by kendo451 »

Here's the answer:

Do this in the head tag.

{content assign="content"} {* This will cause the news module to insert it's stuff in the content tag - which also makes all the News SMARTY objects available. *}

{$entry->title}

Now mark this post as solved.
Post Reply

Return to “Modules/Add-Ons”