Getting the ID of the Page to Which a Field Belongs
Hi,
I have a situation where I am in a macro on a certain template in which I am looping through a field which has multiple IDs which belong to other pages in the CMS which are related to the current page. These IDs, though, are IDs which belong to a file field IN these other pages. What I need is not the IDs that I am looping through, but the IDs of the pages to which the file field belongs. Is this possible?
Getting the ID of the Page to Which a Field Belongs
Hi,
I have a situation where I am in a macro on a certain template in which I am looping through a field which has multiple IDs which belong to other pages in the CMS which are related to the current page. These IDs, though, are IDs which belong to a file field IN these other pages. What I need is not the IDs that I am looping through, but the IDs of the pages to which the file field belongs. Is this possible?
Hard to explain.
Thanks,
Garrett
When inside a field in the code, how do I get the ID of the page to which the field belongs?
//Garrett
Hi Garrett,
I have a hard time figuring out exactly what you need - but any property is a child of a page/document, so to get that page's ID, you can do:
(If you're inside a loop or a template that matches the property)
Could you show a chunk of the XML? And maybe some of the XSLT too, to get an idea what you're doing?
/Chriztian
is working on a reply...