listing descendants:field

2 views
Skip to first unread message

Dante

unread,
Dec 15, 2008, 4:06:52 PM12/15/08
to BoltWire
Sorry if this has been asked already, but is there a way to list out
all of a page's descendants and certain data values associated with
them?

Something to the effect of:
[(search sort=title group=x.* fmt="[[{+p:field}|+]]")]
Only I saw that this wouldn't work due to the process order...

I tried looking at the "page ancestors and page descendants" solution
to see if that could be helpful, but the link wasn't working.

Thanks in advance,
Dante

The Editor

unread,
Dec 15, 2008, 4:32:17 PM12/15/08
to bolt...@googlegroups.com

You are close. Use template instead of fmt to overcome the processing
order. Also you may want to try something like this instead (not
tested):

[(search sort=title group=x.* template="[[{+p|+]]: {{+p}:field}")]

Cheers,
Dan

Dante

unread,
Dec 15, 2008, 5:30:02 PM12/15/08
to BoltWire
Great! Thanks Dan!

Here's the tested version in case anyone else needs it:
[(search sort=title group=x.* template="[[{+p}|+]]: {{+p}::field}")]

Thanks again!
Dante

The Editor

unread,
Dec 15, 2008, 5:59:06 PM12/15/08
to bolt...@googlegroups.com
Glad to help.

{page:field} gives data variables hidden but connected to a page

{page::field} gives info variables drawn from the actual page content

Cheers,
Dan
Reply all
Reply to author
Forward
0 new messages