Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-19 01:21:01

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

txp:if_category_list tag

I’ve just upgrade from r1036 to r1044 and the glx_if tags that I’m using have broken. I’m still trying to figure out what has changed that might do this. Any pointers gratefully accepted. :) If I could figure it out I might be able to hack the plug-in back to life.

Anyway this is by the by because I can work around it. It does prompt me to make a request though. What chance is there of getting a <code><txp:if_category_list></code> tag OR probably even better would be making category lists use the same page template that the request came from? It’s a bit of a pain at times that these lists only use the default template which might be coded as section-specific or have completely the wrong styling, when the page the request was made from is probably the ideal page template to use as it is already coded for the correct section. We can send a search to a different section and page and we have the <code><txp:if_search></code> tag. Maybe it’s time to bring category lists into the fold as well?

Last edited by thebombsite (2005-10-19 01:21:49)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#2 2005-10-19 03:08:17

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

Re: txp:if_category_list tag

<txp:if_category_list>

You mean, something that checks to see if there’s a ?c=blah item in the URL? <txp:if_category> already does that.

probably even better would be making category lists use the same page template that the request came from?

I don’t understand this. Can you give some examples?


Alex

Offline

#3 2005-10-19 11:57:02

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: txp:if_category_list tag

I’m talking about the lists you get when you click on the category that an article has been assigned to, assuming it’s been “linked”, so as to see all the articles in that category. As far as I’m aware <code><txp:if_category></code> has to have a category name specified so it only works for the specified category unless you’re going to teach me something new here. :)

So if someone is reading an article on my blog, and it’s in let us say the Textpattern category, and I have the category name set as a link, they can click on it and see all the articles in the Textpattern category. Problem is that they are taken to the default template to view that list which could be in a different section to the blog. It’s not such a big problem if I had my blog as the front-page but I don’t because it’s not the most important part of my site, contrary to some peoples beliefs about blogs, and there are many sites like this. A lot of people have the default “front-page” setup as a “splash-page” or in my case, simply a Home page which leads into the rest of the site. The blog, journal, commodities, photos or whatever can be in a different section entirely.

Actually now that we have comma-separated lists for <code><txp:if_category></code> I suppose that could be used but it’s going to be a hell of a long list and will require maintaining as you add new categories, something that could be forgotten about. It would be a heck of a lot simpler if the category list used the same template that the original article uses and remained “in-section”.

Last edited by thebombsite (2005-10-19 12:12:17)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2005-10-21 02:26:31

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

Re: txp:if_category_list tag

As far as I’m aware <txp:if_category> has to have a category name specified

Nope. <txp:if_category>category list<txp:else />not a category list</txp:if_category> works as expected.


Alex

Offline

#5 2005-10-21 02:36:26

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: txp:if_category_list tag

“As expected” is it? I wish we could find out about this stuff somewhere. As far as I knew, and no doubt more than a few others it had to be <code><txp:if_category name=“blahblah”></code> and maybe a few commas thrown in for those of us on SVN. I’ll shut up now then. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-10-21 02:59:54

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

Re: txp:if_category_list tag

I seem to recall posting about this around the time the tag was added, but forum search isn’t working well enough to find it.

I think you’ll find if_article_category works this way too.


Alex

Offline

Board footer

Powered by FluxBB