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!
Category Plugin XML Feed Names
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Category Plugin XML Feed Names
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
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/
# 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/
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}?
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:
Hi!
You can use the variables that are documented here: http://www.s9y.org/102.html
HTH,
Garvin
Sure, you only need to change those feed templates of the versions you're using.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?
Yes, that's the better way than modifying the file in the default-folder.2. Is it correct copying the tpl in my template folder?
You might need to use: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?
Code: Select all
<title>{$blogTitle} - {$category_info.category_name}</title>
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/
# 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/
Hi,
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
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.You might need to use:
Code:
<title>{$blogTitle} - {$category_info.category_name}</title>
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