Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-14 00:40:27

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Hand Crafting category links 4.5.2?

OK – since updating to txp 4.5.2 I have had a problem with some previously working category links, the now give 404 page.

This is the tag code in use:

<txp:site_url />section?c=<txp:image_info type="category" />

I have added <txp:site_url />section?c=<txp:image_info type="category" />&context=image and this gives a 200 result, but it doesn’t display the category images as it used to do.

I’ve also tried the messy url – but this gives 404.

s=section&c=category

Did something change?

Ah – ok, I just added <txp:category_list type="image" this_section="1" categories="category" /> and this link gives a 200 result but just displays the section page, so it looks like its some thing else in the code….

Last edited by tye (2012-11-14 00:43:40)

Offline

#2 2012-11-14 07:01:05

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Hand Crafting category links 4.5.2?

OK fixed it, I had some if_category conditionals in there and it seems you now have to specify what type of category its looking for

<txp:if_category type="image">

That combined with adding &context=image to my links fixed it :)

Offline

Board footer

Powered by FluxBB