Recent Posts
None | 30 sec ago
None | 44 sec ago
None | 56 sec ago
None | 1 min ago
Java | 1 min ago
None | 1 min ago
PHP | 1 min ago
None | 2 min ago
None | 2 min ago
Java | 2 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By cfalzone on the 10th of Nov 2009 06:34:52 PM Download | Raw | Embed | Report
  1. #pullContent("+structureInode:12345" "0" "text1")
  2. #set($firstLetter = "")
  3. #set($first = true)
  4. #foreach($content in $list)
  5.   #if($content.title.substring(0, 2).equals($firstLetter)
  6.     #if($first)
  7.       #set($first = false)
  8.     #else
  9.       <p><a href="#top">Back to top</a></p>
  10.     #end
  11.     <h4><a name="${content.title.substring(0, 2)}" id="${content.title.substring(0, 2)}"></a>${content.title.substring(0, 2)}</h4>
  12.     #set($firstLetter = $content.title.substring(0, 2))
  13.   #end
  14.  
  15.   <!-- Do what you need for the listing -->
  16.  
  17. #end
  18. <p><a href="#top">Back to top</a></p>
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: