Looping over the values of a Key Value field


It can be hard to understand what is in a key value field.  The below code will loop over the values and spit out the keys and the values.


#if ($UtilMethods.isSet($content.metaData))
		<table class="metadata">
		  #foreach($key in $content.metaData.entrySet())
			  #if($key.key != "map")

Have you created code you'd like to share with the dotCMS community?

Share your code Become a Contributor