kinglozzer

So $Up.Up.Name would do what you were expecting

Conan

Ah, I guess I will have to override the default controller then 🙂 Thanks 😄

dorsetdigital

OK. So that's the scope you're starting from... so up from there is the page

Conan

no, it's a method in a BaseElement block (DataObject)

Conan

Template scope quiz, anyone? 🙂

  1. // PAGE
  2. <% loop $Relation %>
  3. $Name
  4. <% loop $ChildRelation %>
  5. $Up.Name <--- works, points to the parent.
  6. $Name
  7. <% end_loop %>
  8. <% end_loop %>
  9.  
  10. <% loop $Relation %>
  11. $Name
  12. <% loop $Top.getCustomItems($ID) %>
  13. $Up.Name <--- does not point to parent object, but rather the $Top object, why?
  14. $Name
  15. <% end_loop %>
  16. <% end_loop %>
firesphere

And if you are using version-specific features, I'd suggest updating those queries to a newer version 🙂