Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
<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
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
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
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