Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1:
Display category names in page title tag

 

 


mrdon
User

Jan 16, 2006, 6:10 PM

Post #1 of 3 (1660 views)
Shortcut
Display category names in page title tag Can't Post

Is there a way to display cat & sub cat names in the page title tag?

For example, currently if the category toyota is selected the page title is "toyota" because of the $cat_name_he$ tag.

The categories are setup like this:

Cars
Foreign
Toyota

So I would like to have the title tag read: "cars foreign toyota"

Is this possible?

Thanks,
Brandon


MikeB
Staff / Moderator


Jan 17, 2006, 5:10 PM

Post #2 of 3 (1640 views)
Shortcut
Re: [mrdon] Display category names in page title tag [In reply to] Can't Post

Hi Brandon,

Thanks for the post! Smile

Depending on how your site is set up this is something you should be able to do.

Basically, the way to do this is using the breadcrumb that Article Manager uses. You'll notice on your index page, category index pages and search results that there is a breadcrumb path to the category that article is in. For example an article in your Toyota category would have something like this right above the article title:

Cars : Foreign : Toyota

In this case, both "Cars" and "Foreign" would be links to the category index pages for these categories. To get the <title> tag set up the way you've mentioned we'll be customizing the category breadcrumb to remove the link so you'll just be losing this link functionality (so, while people will be able to see the category an article is in, they'll just want to click on the category list to get to those categories).

If this sounds like it should work for you then you'll want to open up /artman/templates/category_breadcrumb.html. You'll want to replace the code that is in this file with this:


Code
<!-- templatecell : breadcrumb_link --> 
$cat_name$
<!-- /templatecell : breadcrumb_link -->

<!-- templatecell : breadcrumb_divider -->
:
<!-- /templatecell : breadcrumb_divider -->

<!-- templatecell : breadcrumb_link_selected -->
$cat_name$
<!-- /templatecell : breadcrumb_link_selected -->


Next you'll just want to make a quick change to a couple of your template files. In /artman/templates/index/default.html you'll want to replace this:

<title>$cat_name_he$</title>

With this:

<title>$cat_breadcrumb_he$</title>

In /artman/templates/article/default.html you'll want to replace this line of code:

<title>$art_name_he$</title>

With this:

<title>$cat_breadcrumb_he$ : $art_name$</title>

Give this a try and let me know how it works for you.

If you have any other questions or comments about this, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


mrdon
User

Jan 18, 2006, 9:38 AM

Post #3 of 3 (1628 views)
Shortcut
Re: [MikeB] Display category names in page title tag [In reply to] Can't Post

That worked perfect...Thanks Mike!

I love this script!

Brandon

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4