I want to add links to another site for each category.
When one or more entries of the same category are displayed this link (with some explainig text) should be displayed ahead the entries (like the related tags cloud).
When entries of different categories are displayed then the "category related link" should be displayed ahead an entry, if the previous entry is related to another category.
(I hope understand what I mean.)
I tried the relatedlinks plugin. But this deals with links related to entries. These I can use too for another purpose.
By the way: which wiki system (based on PHP) do you suggest?
Links Related To Category
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Links Related To Category
Hi!
For that you must use custom smarty syntax in your entries.tpl file.
You need to check the $category_info array for which category you currently have selected, and then add custom HTML to the file to link to other sites.
There is no plugin for this, because I wouldn't know how you would "connect" categories to other sites, and this is more a template thing than a plugin thing.
Regards,
GArvin
For that you must use custom smarty syntax in your entries.tpl file.
You need to check the $category_info array for which category you currently have selected, and then add custom HTML to the file to link to other sites.
There is no plugin for this, because I wouldn't know how you would "connect" categories to other sites, and this is more a template thing than a plugin thing.
Actually I can't recommend any. I dislike mediaWiki because of its "non-ease-of-use", and I can't recommend our coWiki because it's not developed any more.By the way: which wiki system (based on PHP) do you suggest?
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/
Till now I am not familiar with smarty syntax. Could you please help me with some code?
May be I should explain in more detail what I want.
My categories represent modules of an application. This application as an extra homepage http://www.TelMarkt.de/. When somebody clicks on a category a link to the site on this homepage should be displayed. E.g. clicking on category "Reiseplanung" the link text "To see all the functions of this module click here" will forward (in a new tab/window) to http://www.telmarkt.de/reiseplanung/reiseplanung.html
I think this could be an extension to the realted tags plugin. In the configuration you need the decision between category related and entry related and you need input for the text. And in entries.tpl it should be an addition if / then / else.
However, I am not in the position to give you tipps.
May be I should explain in more detail what I want.
My categories represent modules of an application. This application as an extra homepage http://www.TelMarkt.de/. When somebody clicks on a category a link to the site on this homepage should be displayed. E.g. clicking on category "Reiseplanung" the link text "To see all the functions of this module click here" will forward (in a new tab/window) to http://www.telmarkt.de/reiseplanung/reiseplanung.html
I think this could be an extension to the realted tags plugin. In the configuration you need the decision between category related and entry related and you need input for the text. And in entries.tpl it should be an addition if / then / else.
However, I am not in the position to give you tipps.
What do you think about phpWiki?Actually I can't recommend any. I dislike mediaWiki because of its "non-ease-of-use", and I can't recommend our coWiki because it's not developed any more.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Something like this in your index.tpl template at the desired place:
Alternativel you can display what you entered in the description of your category:

Regards,
Garvin
General Smarty documentation is availabe at http://smarty.php.net/.Lothar wrote:Till now I am not familiar with smarty syntax. Could you please help me with some code?
Something like this in your index.tpl template at the desired place:
Code: Select all
{if $category_info.categoryid == 1}
<div>Beschreibung von Kategorie 1</div>
{elseif $category_info.categoryid == 2}
<div>Beschreibung von Kategorie 2</div>
{elseif $category_info.categoryid == 3}
<div>Beschreibung von Kategorie 3</div>
Code: Select all
<div>{$category_info.category_description}</div>
Not really, it would be something completely different, both technically and semantically. I don't see how these two functions could be combined.I think this could be an extension to the realted tags plugin.
Sorry, never used/tried that oneWhat do you think about phpWiki?
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/
I am also looking for this. I would like to add some extra information about each category which will be displayed ontop of the articles in the category view. Maybe you call the plugin "extended categories" or something like that.
On my blog vfxboutique.com I have created categories for nearly every movie and company mentioned in the articles. So I really would like to show my readers some extra information about the company and a link to its website if they click on the category to see all related articles. A HTML Nugget displayed ontop of it can already be enough.
There is no way doing this hardcoded with smarty or something else because there are so many categories. This would only be an additional db entry for each category.
Please think about doing this as a plugin once more!
On my blog vfxboutique.com I have created categories for nearly every movie and company mentioned in the articles. So I really would like to show my readers some extra information about the company and a link to its website if they click on the category to see all related articles. A HTML Nugget displayed ontop of it can already be enough.
There is no way doing this hardcoded with smarty or something else because there are so many categories. This would only be an additional db entry for each category.
Please think about doing this as a plugin once more!
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi tinitron!
Sure. Did you read what I posted above? It contains a solution that does not require raw HTML in the templates, only using the category description.
Best regards,
Garvin
Sure. Did you read what I posted above? It contains a solution that does not require raw HTML in the templates, only using the category description.
Best 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/