Skip to content

Instantly share code, notes, and snippets.

@hampusn
Last active February 4, 2017 09:19
Show Gist options
  • Save hampusn/2e7c51768b97ccab38b0123d831bd2d6 to your computer and use it in GitHub Desktop.
Save hampusn/2e7c51768b97ccab38b0123d831bd2d6 to your computer and use it in GitHub Desktop.
sv-fb-predefined-search-portlet-velocity-example
#set( $propertyUtil = $sitevisionUtils.propertyUtil )
#set( $currentPage = $sitevisionUtils.portletContextUtil.currentPage )
#set( $metadataValue = $propertyUtil.getString($currentPage, 'META', '') )
#if( "$!metadataValue" != "" )
+metadata.META:"$metadataValue"
#end
@hampusn
Copy link
Author

hampusn commented Feb 3, 2017

Byt ut "META" mot identifieraren för ditt metadatafält.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment