Category Plugin XML Feed Names

Creating and modifying plugins.
Post Reply
TimBeam
Regular
Posts: 71
Joined: Fri Jun 22, 2007 3:24 pm
Contact:

Category Plugin XML Feed Names

Post by TimBeam »

Hello s9y users,

How can I change the feed names in the category plugin? I get the name "Blog title - category name". But because the blog is only one part of my site I would prefer "xyz - category name". How can I change "xyz" without changing the blog name? I do not want to change the blog name because it is an adequate name for the blog section.

Thanks for helping in advance!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Category Plugin XML Feed Names

Post by garvinhicking »

Hi!

You can edit the feed*.tpl template files to customize which kind of title is displayed in RSS feeds. I think you are talking about that, right?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TimBeam
Regular
Posts: 71
Joined: Fri Jun 22, 2007 3:24 pm
Contact:

Post by TimBeam »

1. Is it correct that it is sufficient to change only the feed*.tpl which I use e.G. feed_2.0.tpl?

2. Is it correct copying the tpl in my template folder?

3. 1. and 2. works but instead of {$metadata.title} I want to have "xyz - category name". Now it is "xyz - blog name - category". Some feeds have only the name "xyz - blogname". Is it a bug?

4. Is there any place holder for the category name which I can use instead of {$metadata.title}?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
TimBeam wrote:1. Is it correct that it is sufficient to change only the feed*.tpl which I use e.G. feed_2.0.tpl?
Sure, you only need to change those feed templates of the versions you're using.
2. Is it correct copying the tpl in my template folder?
Yes, that's the better way than modifying the file in the default-folder.
3. 1. and 2. works but instead of {$metadata.title} I want to have "xyz - category name". Now it is "xyz - blog name - category". Some feeds have only the name "xyz - blogname". Is it a bug?
You might need to use:

Code: Select all

<title>{$blogTitle} - {$category_info.category_name}</title>
You can use the variables that are documented here: http://www.s9y.org/102.html


HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
caversham
Posts: 1
Joined: Sat Mar 29, 2008 12:41 pm

Post by caversham »

Hi,
You might need to use:

Code:

<title>{$blogTitle} - {$category_info.category_name}</title>
For whatever reason my freshly installed s9y has already the category name in the title. Now my problem is that I want to change the template used by the categories plugin in another way (including a <description>) but I am unable to find the template that is used.

I already modified the feed_2.0.tpl in the default directory (which BTW does not have the category in the title), but it doesn't work. Copying that tpl file to the template's directory doesn't help either.

I performed a search in the whole s9y directory structure for {$category_info.category_name} but there is no file that contains this.

Very strange. Can you help?

Cheers,

Aaron
Post Reply