Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-09-01 10:50:44
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
problem with category links inside a section
when i am in section “contact”, the horizontal navigation bar at the top of my page points at:
http://localhost/txp/index.php?c=Thailand&s=Contact
While it should actually point at the link below, and this from anywhere in my site. What is the best way to get around this?
http://localhost/txp/index.php?c=Thailand
I need someone to protect me from all the measures they take in order to protect me
Offline
Re: problem with category links inside a section
Doable with zem_link: <txp:zem_link category="Thailand">Thailand</txp:zem_link>
Offline
#3 2006-09-01 12:49:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: problem with category links inside a section
What, exactly, are you using to generate the link?
Offline
#4 2006-09-01 13:05:44
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: problem with category links inside a section
txp:category name=“Thailand” link=“1” wraptag=“li”
I dont want to generate a complete category list so i create the individually like this
I need someone to protect me from all the measures they take in order to protect me
Offline
#5 2006-09-02 16:56:33
- slabanosa
- Member

- From: Silva Carbonaria
- Registered: 2004-06-01
- Posts: 57
Re: problem with category links inside a section
wet wrote:
Doable with zem_link:
<txp:zem_link category="Thailand">Thailand</txp:zem_link>
was trying just that and it doesn’t seem to work for categories edit: unless using zem_link_reborn which I wasn’t aware of, thanks wet
also a simple <txp:zem_link linkid="n">foo</txp:zem_link> for an article seems deprecated in 4.03 or at least I can’t make it work
Last edited by slabanosa (2006-09-03 12:37:33)
Offline
#6 2006-09-03 04:00:52
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: problem with category links inside a section
Please post a tag trace, stef25.
Offline
#7 2006-09-04 20:29:57
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: problem with category links inside a section
ok, here is the tag trace. apologies for the delay i was also moving installation and had to get that up and running first
does this make any sense?
bc..
<!— txp tag trace:
[SQL (0.001305): select name from `txp_lang` where lang=‘en-gb’ limit 1]
[SQL (0.003243): select name, data from `txp_lang` where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.001790): select name, code from `txp_plugin` where status=‘1’]
[SQL (0.001175): select * from `txp_section` where name = ‘Contact’ limit 1]
[SQL (0.000756): select host from `txp_log` where ip=‘127.0.0.1’ limit 1]
[SQL (0.000546): insert into `txp_log` set `time`=now(),page=’/txp/index.php?c=Thailand&s=Contact’,ip=‘127.0.0.1’,host=‘localhost’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000793): select user_html from `txp_page` where name=‘sd_contact’]
[Page: sd_contact]
<txp:css/>
<txp:image id=“13” />
[SQL (0.000709): select * from `txp_image` where id=‘13’ limit 1]
<txp:link_to_home>
</txp:link_to_home>
<txp:category name=“Laos” link=“1” wraptag=“li” />
<txp:category name=“Philippines” link=“1” wraptag=“li” />
<txp:category name=“Thailand” link=“1” wraptag=“li” />
<txp:category name=“Cambodia” link=“1” wraptag=“li” />
<txp:category name=“Vietnam” link=“1” wraptag=“li” />
<txp:category name=“Malaysia” link=“1” wraptag=“li” />
[ —- secondpass —- ]
—>
I need someone to protect me from all the measures they take in order to protect me
Offline
#8 2006-09-05 00:16:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: problem with category links inside a section
We need the whole trace.
Offline
#9 2006-09-05 14:12:11
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: problem with category links inside a section
mary, that is the whole tag trace. unless you mean the whole source? i could not figure out how to post it here (using code or bc.. doesnt work) so i posted a .txt here.
i created this by turning on debugging mode and then copy pasting the source
I need someone to protect me from all the measures they take in order to protect me
Offline
#10 2006-09-05 17:38:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: problem with category links inside a section
Okay, I was thrown off by the fact that you only have a couple Txp tags in that page.
Are you running svn code?
Offline
#11 2006-09-05 18:04:52
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: problem with category links inside a section
not 100% sure what svn means but im running the latest txp install, downloaded v recently. the behaviour i am seeing, should it not be happening? i thought it was a mistake in the way i set up my categories / sections
I need someone to protect me from all the measures they take in order to protect me
Offline
#12 2006-09-06 00:57:00
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: problem with category links inside a section
If you don’t know what that means, then no, you’re not. :) I thought you might have been ‘cuz it was behaviour I was aware existed in 4.0.3. Unfortunately, it looks like that is expected behaviour, and what’s more, it can’t be overridden. I’d recommend finding another way to make the links.
For example:
<a href="<txp:site_url /><txp:category name="Laos" />"><txp:category name="Laos" /></a>
It’s somewhat longer, but it will do the same job and link the way you want it to. :)
Last edited by Mary (2006-09-06 00:57:16)
Offline