Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-20 01:24:16

richoid
Member
Registered: 2006-04-25
Posts: 11

Problem with Category links

I have a problem with category links. I’ve created buttons, formatted like this:
<code>
<a href=“index.php?c=Marketing”><img src=“imgs/navs/marketing.gif” width=“91” height=“22” /></a>
</code>
These links (all of them) simply result in the same view as my “home” page. Articles have been written and categories applied. Categories match tags (case sensitive), etc… but all live articles appear, not just those with matching categories.

Site is here: http://www.marcomwriters.com

Thanks!

Last edited by zem (2006-07-01 04:37:29)

Offline

#2 2006-06-20 08:44:11

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

Re: Problem with Category links

For your links try /?=Marketing rather than index.php?c=Marketing. Also, you may need to add an article tag between a conditional <txp:if_category></txp:if_category>, so that you get an article list based on the category. Check out the tags in the wiki here

Offline

#3 2006-07-01 03:55:11

richoid
Member
Registered: 2006-04-25
Posts: 11

Re: Problem with Category links

Still confused…

Should’nt the tag: http://marcomwriters.com/index.php?c=Grammar
only list the articles in the Grammar category, in the default template?

Yet mine doesn’t do this. It shows all articles, regardless of category, just like the home page.

I even installed cbs_category_list… and looked at how it links… same deal, so it should work.

Changing a link to http://marcomwriters.com/index.php/?=Grammar had the same problem, with the addition of not finding any of the header graphic images, for some reason.

Not sure where the <if_category> tags mentioned in the answer should go… do I need a custom template just for category listings? Doesn’t make sense to me. If I can link by section, I should be able to link to categories… isn’t that the whole point of categories?

what am I missing, here?

Last edited by richoid (2006-07-01 03:56:25)

Offline

#4 2006-07-01 04:37:03

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Problem with Category links

Please read the FAQ: 1, 2, 3.


Alex

Offline

#5 2006-07-01 04:59:13

richoid
Member
Registered: 2006-04-25
Posts: 11

Re: Problem with Category links

Holy moly, I looked everywhere for that info. Thanks.

Offline

Board footer

Powered by FluxBB