Dashboard > FarCry 4.0 Developers Guide > ... > Custom Tag Libraries > tags webskin > tags webskin relatedcontent
FarCry 4.0 Developers Guide
tags webskin relatedcontent
Added by Geoff Bowers , last edited by Geoff Bowers on Mar 19, 2008  (view change)
Labels: 
(None)

related content custom tag

relatedcontent requires v4.0.7 or greater.

Displays related content by rendering a content item's nominated arrayProperty values with a webskin.

Sample Usage
<!--- import tag libraries --->
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />

<skin:relatedcontent 
	objectid="#stobj.objectid#" 
	arrayProperty="aRelatedPosts" 
	typename="farBlogPost"
	filter="farBlogPost"
	webskin="displayTeaserStandard" 
	rendertype="unordered" />
Attributes Description Type Default
objectid Objectid of content item. UUID required
typename Content typename of parent ie. for the objectid you passed in; including this improves performance string Empty string. Will look up typename as required
arrayProperty Property name for the array of related content to display. string required
webskin Webskin to render related content view. string required
filter Content typename to filter by for mixed type arrays string Empty string.
rendertype Render options: unordered, ordered, none string none
alternateHTML Alternative HTML if webskin is missing. string Empty string.
r_html Return variable for HTML output. If missing tag will render output inline. string Empty string.

Powered by a free Atlassian Confluence Open Source Project License granted to FarCry CMS. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators