Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-09-25 13:16:03

debeo
Member
Registered: 2012-09-24
Posts: 16

[Solved] Why is tag nesting advertise everywhere yet it aint working?

I read on many places txp supports tag within tag nesting although even simplest cases don’t work.

If i put only <txp:category /> on my page, it shows normally. And if I put it like this <txp:category_list parent=”<txp:category />” break=“li” wraptag=“ul” /> there’s no list.

Can it be simpler than this and it won’t work.

{Sticked the “Solved” label onto the title. – Uli}

Last edited by uli (2012-09-25 22:27:34)

Offline

#2 2012-09-25 13:19:21

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: [Solved] Why is tag nesting advertise everywhere yet it aint working?

Tags are parsed inside single quotes only:

<txp:category_list parent='<txp:category />' break="li" wraptag="ul" />

Offline

#3 2012-09-25 13:21:10

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [Solved] Why is tag nesting advertise everywhere yet it aint working?

RTFM :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2012-09-25 13:26:25

debeo
Member
Registered: 2012-09-24
Posts: 16

Re: [Solved] Why is tag nesting advertise everywhere yet it aint working?

Nm:)

Last edited by debeo (2012-09-25 13:32:58)

Offline

#5 2012-09-25 13:32:28

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: [Solved] Why is tag nesting advertise everywhere yet it aint working?

<txp:category_list parent='<txp:category title="1" />' break="li" wraptag="ul" /> is fine, and for more complex cases I follow Julian’s advice.

Offline

Board footer

Powered by FluxBB