Skip to content

Instantly share code, notes, and snippets.

@bradrice
Created March 19, 2014 13:32
Show Gist options
  • Save bradrice/9641688 to your computer and use it in GitHub Desktop.
Save bradrice/9641688 to your computer and use it in GitHub Desktop.
Pull list of categories from widget code
#foreach($inode in $carouselCategory)
#if($velocityCount == 1)
#set($catlist = "categories:$categories.getCategoryByInode($inode).getCategoryVelocityVarName()")
#else
#set($catlist = "$catlist categories:$categories.getCategoryByInode($inode).getCategoryVelocityVarName()")
#end
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment