Fake Crumb Title

link to dynamic page with fake crumbtitle:

  1. <a href="page.dot?crumbTitle=$UtilMethods.encodeURL("Men's Football")">link</a>  
  2.   
  3. ##change pagetitle to fake crumbtrail:  
  4. #set($pageTitle = $request.getParameter("crumbTitle"))  
  5. #if($request.getParameter("pageTitle"))  
  6.     #set($pageTitle = $request.getParameter("pageTitle"))  
  7. #end  
  8. <h1>#if($crumbTitle)$crumbTitle #else $!{pageTitle} #end</h1>  
  9.   
  10. ## Crumbtrail uses either crumbTitle (if crumbTitle is passed in URL), contentletTitle(if inode is passed in URL) or pageTitle  
comments powered by Disqus