stephenjbell

dotCMS - Get title of current folder

Mar 30th, 2011
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ## DotCMS - Gets the title of the folder that the current page is in
  2.  
  3. #set ($myFolderUrl = $VTLSERVLET_URI.substring(0,$VTLSERVLET_URI.lastIndexOf("/")))
  4. #set($myFolder= $folderAPI.findCurrentFolder("${myFolderUrl}/",$host))
  5. $myFolder.title
Advertisement
Add Comment
Please, Sign In to add comment