Support Forums

Display Keywords in Categories as Titles on Pages

This is a discussion on Display Keywords in Categories as Titles on Pages within the Technical Support forums, part of the Technical Support Forums category; Hi, Can someone let me know how I would display my keywords that are setup within the Category admin page ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 01-29-2009, 10:00 AM   #1
Customer
 
Join Date: Aug 2008
Posts: 80
Rep Power: 16
nagrap2 is on a distinguished road
Default Display Keywords in Categories as Titles on Pages

Hi,

Can someone let me know how I would display my keywords that are setup within the Category admin page as the title on my Category pages?
__________________
Many Thanks,

Nagrap2

Developer Version 4.1
nagrap2 is offline  
Old 01-29-2009, 10:05 AM   #2
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,527
Rep Power: 89
seymourjames is a jewel in the rough
Default

You can test if it is a category page in layout,.tpl and if it is I think you can use {$sitekeywords} for the page title. This should work. I don't have access to my code base at the moment or I would give you the exact code to do it.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Old 01-29-2009, 10:39 AM   #3
Customer
 
Join Date: Aug 2008
Posts: 80
Rep Power: 16
nagrap2 is on a distinguished road
Default

Seymourjames,

Ok great !! One question, do you know how I would firstly check the page is a category page? If you can give me an indication i will see if I can get the exact code myself.
__________________
Many Thanks,

Nagrap2

Developer Version 4.1
nagrap2 is offline  
Old 01-29-2009, 10:46 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

you start by adding {debug} to the layout.tpl template which causes the smarty debug console to appear which shows all of you page variables.

As you navigate around the site you will see that the $body variable changes based on the page. Write down the names of the body templates where you want to have your unique site keywords displayed.

Now you can use smarty logic around the title you want to alter and check the value of the body variable....

{if $body=="mytemplate"}
display this value
{else}
display the default template content
{/if}
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 01-29-2009, 11:08 AM   #5
Customer
 
Join Date: Aug 2008
Posts: 80
Rep Power: 16
nagrap2 is on a distinguished road
Default

That's awesome !! Thanks Larry and Seymourjames !!!
__________________
Many Thanks,

Nagrap2

Developer Version 4.1
nagrap2 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Categories display 2 cols hel68c Modules / Plugins / Modifications 5 04-08-2011 07:48 PM
Display Categories nagrap2 Technical Support 8 01-14-2009 06:43 PM
How to display pages.php hel68c Technical Support 9 09-05-2008 03:57 PM
How to display sub-categories vertically? michael Technical Support 3 08-21-2007 04:50 PM


All times are GMT -4. The time now is 03:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0