related content custom tag
<!--- 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. |
<cfparam name="attributes.rendertype" default="none" type="string" /><!--- render options: unordered, ordered, none --->
<cfparam name="attributes.alternateHTML" default="#attributes.webskin# template unavailable." type="string" /><!--- alternative HTML if webskin is missing --->
<cfparam name="attributes.r_html" default="" type="string" /><!--- Empty will render the html inline --->