stephenjbell

dotCMS - Find structure of loaded content

Jul 28th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ## Do things depending on the type of content that is loading (useful in detail pages)
  2.  
  3. #if($con.structure.velocityVarName == "calendarEvent")
  4. #set($title = $con.title)
  5. #elseif($con.structure.velocityVarName == "blog")
  6. #set($title = $con.title)
  7. #else
  8. #set($title = $HTMLPAGE_TITLE
  9. #end
Advertisement
Add Comment
Please, Sign In to add comment