Page related velocity utility in Polopoly CMS

If we have the page policy model inside velocity template we can very easily get a lot of page attributes:
  1. If you are in a the article context we can get the parent page (seciton name) using the following:
    $content.sectionName
    
  2. If you are in a the article context we can get the parent page ID (seciton ID) using the following:
    $content.parentId
    

Comments