tags webskin relatedcontent
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.
<!--- 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. |