Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Accessing Related Document Information from Macros

$
0
0
Hey guys, So I have a Page Type that has multiple related documents. Im struggling right now trying to get information out of these related documents within the webpart transformation. For instance I have a staff member who has as related document a page type called Office. Office has fields like: City = Vancouver and Country = Canada. Question 1 : When I try to access Office from the transformation through {% Office %} I get "Vancouver". But this is not enough. How can I output Office.City and Office.Country? For some reason that does not work. Question 2: How would I go about looping through all available offices if they have more than one? How do I deal with related documents within a for or foreach loop? Thanks in advance, -C

Viewing all articles
Browse latest Browse all 8832

Trending Articles