getFavouriteSpaces()
can anybosy help, how can we use it in a user macro.
This should do it.
## Developed by: Davin Studer ## Date created: 06/10/2013 ## @noparams #set( $labelManager = $action.LabelManager ) #set( $favRef = $labelManager.getLabel("my:favourite") ) #if($favRef) #set( $favorites = $labelManager.getCurrentContentForLabel( $favRef ) ) #if($favorites.size() > 0) <ul> #foreach( $favorite in $favorites ) #if ( $favorite.getType() == "spacedesc" || $favorite.getType() == "personalspacedesc" ) <li><a href="$favorite.UrlPath">$favorite.DisplayTitle</a></li> #end #end </ul> #end #end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.