Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-23 07:02:51

timmy
Member
From: Sa, Tx, US
Registered: 2005-12-08
Posts: 11
Website

<txp:category title="1"> not working in 4.0.3??

I changed the title of a category from the default (nycpics) to NYC Photos.

I’m using <code><txp:category title=“1” /></code> in a page and nothing is showing up.

However, if I use the same tag, same context, but simply change the value to <code>title=“0”</code>, it returns “nycpics”, so I know my syntax and usage is correct.

What gives?

tb

Last edited by timmy (2006-03-23 07:05:25)

Offline

#2 2006-03-23 10:22:32

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

Re: <txp:category title="1"> not working in 4.0.3??

Does the name of the category match “nycpics” exactly?


Alex

Offline

#3 2006-03-23 18:37:30

timmy
Member
From: Sa, Tx, US
Registered: 2005-12-08
Posts: 11
Website

Re: <txp:category title="1"> not working in 4.0.3??

Yes, the name of the category is “<code>nycpics</code>”. I know this because the correct pictures in the category are displayed using the <code><txp:image_index /></code> and <code><txp:image_display /></code> tags when I call it up using <code>/photos/?c=nycpics</code>.

Any ideas?

Offline

#4 2006-03-23 18:47:02

timmy
Member
From: Sa, Tx, US
Registered: 2005-12-08
Posts: 11
Website

Re: <txp:category title="1"> not working in 4.0.3??

Additionally, I just created a clean category “<code>test</code>.” I immediately changed the <b>title</b> to “<code>This is a Test</code>.”

When I called up <code>/photos/?c=test</code> this with the <code><txp:category title=“1”/></code> tag on the page, it didn’t work as expected.

Nothing returns.

tb

Offline

#5 2006-03-23 19:10:05

timmy
Member
From: Sa, Tx, US
Registered: 2005-12-08
Posts: 11
Website

Re: <txp:category title="1"> not working in 4.0.3??

Okay, after doing a little research on both this problem and abother question I had, I found that, apparently, this is a common problem and has even been documented in the “help” for bos_image_display.

Supposedly, this plugin fixes the problem with a custom tag.

tb

Offline

#6 2006-03-23 20:48:40

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: <txp:category title="1"> not working in 4.0.3??

Is it an image category? As far as I know <txp:category /> is for article categories…

Offline

#7 2006-03-24 02:34:56

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: <txp:category title="1"> not working in 4.0.3??

That’s correct, Els. There is no ?c=category_name url equivalent for links, images and files. <txp:image_index /> and <txp:image_display /> are special cases.

Offline

Board footer

Powered by FluxBB