Support Forums

put category extra field in title

This is a discussion on put category extra field in title within the Technical Support forums, part of the Technical Support Forums category; Hi, I've been researching the threads on changing page titles and have not been able to figure out how to ...


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 11-08-2008, 04:10 PM   #1
Customer
 
Join Date: Sep 2008
Posts: 43
Rep Power: 8
skyblue is on a distinguished road
Default put category extra field in title

Hi,

I've been researching the threads on changing page titles and have not been able to figure out how to put a category extra field in the title of the viewlistings page. (using designer v4.0.9)

I have created a parent extra field called "location" which has two child fields "US" and "International". (US contains states and international contains countries). This is working fine and displays in the viewlistings.

Can anyone assist in what code is needed to put the state (or country) name into the title?

Thanks in advance
skyblue is offline  
Old 11-08-2008, 04:22 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,248
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

the extra fields ra estore in database tables that are normally not queried unless viewing the ad itself so that is the only time you are going top have access to the data in those fields without modifying the scripts where and making calls to thos tables where you want them.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-08-2008, 04:59 PM   #3
Customer
 
Join Date: Sep 2008
Posts: 43
Rep Power: 8
skyblue is on a distinguished road
Default

Larry,

Understood, the ad detail page is where I want to put the state (or country) in the page title.
skyblue is offline  
Old 11-08-2008, 05:02 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,248
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

place {debug} at the top of your layout.tpl file and it will cause a debug window to pup up with all youy variables in it. Then you can chose which to use.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-08-2008, 06:17 PM   #5
Customer
 
Join Date: Sep 2008
Posts: 43
Rep Power: 8
skyblue is on a distinguished road
Default

Thanks Larry, I tried the {debug} and it does not pop-up for the ad detail page. It does for all other pages... Am I doing something wrong?
skyblue is offline  
Old 11-08-2008, 07:26 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,248
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by skyblue
Thanks Larry, I tried the {debug} and it does not pop-up for the ad detail page. It does for all other pages... Am I doing something wrong?
Do you have the SEO mod installed as well? If so that can interfere with debug output.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-08-2008, 08:15 PM   #7
Customer
 
Join Date: Sep 2008
Posts: 43
Rep Power: 8
skyblue is on a distinguished road
Default

Yes, I do.
skyblue is offline  
Old 11-09-2008, 01:54 AM   #8
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,045
Rep Power: 30
bowers01 is on a distinguished road
Default

Cant you just use this in the layout.tpl
Code:
{if $body==viewlisting.tpl'}
<title>{$sitetitle} {$state}</title>
{else}
{$sitetitle}
{/if}
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 11-09-2008, 03:55 AM   #9
Customer
 
Join Date: Sep 2008
Posts: 43
Rep Power: 8
skyblue is on a distinguished road
Default

Thanks for the suggestion Nick,

Unfortunately that hasn't worked since I'm not using the state field from the user registration. Instead I have created an extra field titled "extrastate" that is specific to the ad's location. It shows up just fine in the viewlisting page however when I try to call it into the title it's blank.
skyblue is offline  
Old 11-09-2008, 04:53 AM   #10
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,045
Rep Power: 30
bowers01 is on a distinguished road
Default

Well in that case i guess you will have to add to the viewlisting.php unlesss larry knows something with the seo module.
I am unsure of the code needed to add in but Larry might be able to help you.
Sorry i couldnt be of more help.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ad Title From Extra Fields Upon Save/Edit bgordon Modules / Plugins / Modifications 5 07-24-2008 03:23 PM
Category Title Tags anna245 Technical Support 6 06-30-2008 10:44 AM
Listings: Title Field Length go3matix Technical Support 1 05-06-2008 05:15 AM


All times are GMT -4. The time now is 05:49 PM.


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