I'm trying to follow the approach shown in the introductory tutorial and building a page. The page is for a department and I've got a url like /department/12345, which Structr kindly automatically uses to look up the department node with the id 12345.
Then in the page I can use ${current.title}
, or ${current.description}
, but I'm not sure how to get at info about an entity that exists as an incoming/outgoing relationship. For instance, let's say I have a parent department that's named "parentDepartment" in the remote attributes section of the schema.
How do I display the parentDepartment's name on the page? I tried ${current.parentDepartment.name}, but that doesn't seem to be correct. I'd also like to know how and where to include the same sort of information for childDepartments, where there's potentially more than one child.