Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-27 06:46:52

Finnish
Member
From: Russia, Vladivostok
Registered: 2005-11-02
Posts: 13

comma-separated category list + highlighted current article's category

Let’s imagine i have these categories: <a href=”#”>category1</a>, <a href=”#”>category2</a>, <a href=”#”>category3</a>, <a href=”#”>category4</a>, <a href=”#”>funstuff1</a>, <a href=”#”>funstuff2</a>, <a href=”#”>someotherstuff1</a>, <a href=”#”>someotherstuff2</a>, <a href=”#”>someotherstuff3</a>
Also imagine i have an article assigned to categories category3 and funstuff2.

What i want to get is comma separated list of all categories with each being link to this category’s articles (just like any other category list) on my homepage.

Like this: <a href=”#”>category1</a>, <a href=”#”>category2</a>, <a href=”#”>category3</a>, <a href=”#”>category4</a>, <a href=”#”>funstuff1</a>, <a href=”#”>funstuff2</a>, <a href=”#”>someotherstuff1</a>, <a href=”#”>someotherstuff2</a>, <a href=”#”>someotherstuff3</a>

But when someone is reading single article (the one we imagined above) i wanna some elements in this list be &laquo;span&raquo;ned like this:
<a href=”#”>category1</a>, <a href=”#”>category2</a>, &laquo;span class=“current”&raquo;<a href=”#”>category3</a>&laquo;/span&raquo;, <a href=”#”>category4</a>, <a href=”#”>funstuff1</a>, &laquo;span class=“current”&raquo;<a href=”#”>funstuff2</a>&laquo;/span&raquo;, <a href=”#”>someotherstuff1</a>, <a href=”#”>someotherstuff2</a>, <a href=”#”>someotherstuff3</a>

with each element still being a link to its own category.

Possible? Maybe somep lugin i’m not aware of?

Last edited by Finnish (2006-03-27 06:47:23)


have a nice day :)

Offline

Board footer

Powered by FluxBB