#* pull in the linklist data *# #set ($l = $BLOJSOM_PLUGIN_LINKLIST) #* (optionally) set a source list and pull categories, listings, and/or my info *# #set($sourceList = ["simple"])

Simple blogroll

#foreach ($listing in $l.getListingsFromSource($sourceList)) #set ($url = $listing.get("url")) * $listing.get("name")
#end

#* categories and listings may also be sorted (as of v1.0, only alphabetically in ascending order) note use below of the multiToString(Object, separator) which outputs a nice rel="friend colleague" list *# #set($sourceList = ["xfnfoaf"])

XFN blogroll

#foreach ($listing in $l.getListingsFromSourceSort($sourceList,"name")) #set ($url = $listing.get("url")) * $listing.get("name")
#end

#* categories and listings may also be filtered on a field=value condition *# #set($sourceList = ["withcats"])

Blogroll with categories

#foreach ($cat in $l.getCategoriesFromSourceSort($sourceList,"name"))

$cat.get("label") blogroll
$cat.get("description")
#foreach ($listing in $l.getListingsFromSourceFilterSort($sourceList,"cat",$cat.get("name"),"name")) #set ($url = $listing.get("url")) #set ($title = $listing.get("label")) * $listing.get("name")
#end

#end #* you can also pull all categories or listings across all of your sources (as of v1.0, duplicates are always shown) *#

All blogroll categories

#foreach ($cat in $l.getAllCategories()) * $cat.get("name")
#end

All listings

#foreach ($listing in $l.getAllListings()) * $listing.get("name")
#end

#* another example showing filtering *#

Filtered blogroll category list

java related
#foreach ($cat in $l.getAllCategoriesFilterSort("code","java","name")) * $cat.get("name") - $cat.get("label")
#end

#* My Info can have any fields you want to use to create an extended profile *# #set($my = $l.getMyInfo())

My Info (profile)


firstname: $my.get("firstname")
lastname: $my.get("lastname")
nickname: $my.get("nickname")