fantastic - exactly what I wanted, thanks.

J

On 21 May 2008, at 02:22, Ruben Reusser wrote:

Josh:

<jsp:root version="1.2"
 xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld";
..>
Act Page: ${cmsfn:currentPage().handle}
Act Paragraph ${cmsfn:currentParagraph()}

will give you the handle of the current page (path) - you should be able to create your query from that.

see also http://jira.magnolia.info/browse/MAGNOLIA-1647

Ruben Reusser
[EMAIL PROTECTED]
http://www.headwire.com

joshua portway wrote:
Hi,
I'm sure the answer to this question is really simple, but I can't find it anywhere - I'm trying to use a <cms:query> tag to query the descendants of the current paragraph (nested paragraphs) from its paragraph template. How can I do this, since the query tag always seems to query from the repository root node, and doesn't seem to know about the context? I assume that if I could get the path to the current paragraph I could prepend this to the query string, but I don't actually know how to get hold of that either, without resorting to scriptlets, and that seems kind of hacky so I'm sure there must be a better way...

Josh



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to