68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support > Page Title on Category page
v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
(#1)
Old
gwdlv gwdlv is offline
Vegas Used Cars Online
gwdlv is on a distinguished road
 
Posts: 19
Join Date: Jan 2007
Default Page Title on Category page - 02-01-2007, 04:18 PM

I have made some changes to the titles of some of the areas of the site using this forum, but the one I can not figure out is a category page.

My site sells cars and when you click on a make like Ford (main category) it has the site title - Ford.
http://www.vegasusedcarsonline.com/categories/25.html

I would like the title to just be the category name.
Reply With Quote
(#2)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,813
Join Date: Mar 2006
Location: Belmont, NC
Default 02-02-2007, 10:11 AM

If you have the developer edition you can edit the category.php file and change this:
PHP Code:
foreach ($titlebread as $key => $value)
        {
            
$title.=' '. LANG_CAT_SEPERATOR .' '. $value;
        }
To:
PHP Code:
foreach ($titlebread as $key => $value)
        {
            
$title=$value;
        }


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#3)
Old
gwdlv gwdlv is offline
Vegas Used Cars Online
gwdlv is on a distinguished road
 
Posts: 19
Join Date: Jan 2007
Default That Worked - 02-02-2007, 12:54 PM

Thank you
I knew it was on that page, but I could not find it.

Would you know how I can add the phrase "Used Cars" after the "Title"? So if a person clicked on the Dodge category the title would read, "Dodge Used Cars".

I tried just adding the text and got a parse error...I am not a PHP Programmer...thanks for the help.


Adem
Vegas Used Cars Online
Reply With Quote
(#4)
Old
Lhotch Lhotch is offline
Moderator
Lhotch has a spectacular aura about
 
Posts: 1,466
Join Date: Mar 2006
Default 02-02-2007, 12:57 PM

You would have to add the text in the template file.
Reply With Quote
(#5)
Old
gwdlv gwdlv is offline
Vegas Used Cars Online
gwdlv is on a distinguished road
 
Posts: 19
Join Date: Jan 2007
Default Which Template File? - 02-02-2007, 01:01 PM

Can you tell me which one?


Adem
Vegas Used Cars Online
Reply With Quote
(#6)
Old
Lhotch Lhotch is offline
Moderator
Lhotch has a spectacular aura about
 
Posts: 1,466
Join Date: Mar 2006
Default 02-02-2007, 01:09 PM

Quote:
Originally Posted by gwdlv View Post
Can you tell me which one?
A little trick you can use to see whats going on between the scripts and the templates is to place the following at the very top of the layout.tpl.php file....

{debug}

this will cause a window to popup showing you the templates in use and variables being passed from the scripts to the templates.

Do the above and then navigate to the page where you want the additional text to appear. Make note of the template in use. When done looking at variables etc remove the {debug} from the layout.tpl.php file.
Reply With Quote
(#7)
Old
gwdlv gwdlv is offline
Vegas Used Cars Online
gwdlv is on a distinguished road
 
Posts: 19
Join Date: Jan 2007
Default I will give it a try - 02-02-2007, 01:11 PM

As I mentioned before I am not a PHP programmer, so I appreciate allthe help.
I will try this.


Adem
Vegas Used Cars Online
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrafields to be displayed on the search results and category listings page objelland v3.1 Questions & Support 1 01-13-2007 08:50 AM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 01:15 PM
I need to remove category listings from home page marketingsolutions v3.1 Modifications 1 09-26-2006 12:07 PM
Removing browse category table from main page. gabs v3.0 Questions & Support 1 06-24-2006 12:37 PM
Adding Subcats to category page (Browse) garysr Template Design Questions 2 06-08-2006 12:50 PM



Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com