Example - Top 10 Marketplace Items
This list is a bit different to some of the simpler list examples. Once the list is made, it is sorted according to marketplace rating, in reverse, and then just the top 10 shown as an ordered list.
[% MY_C5_PROFILE LIST_MARKETPLACE_ITEMS 100 SORT_BY MARKETPLACE_RATING END_SORT_BY REVERSE LIMIT 10 APPLY_EACH SAVE m1 MARKETPLACE_NAME WRAP '
' '' . ( m1 RECALL MARKETPLACE_RATING AS_RATING ) . '
' . ( m1 RECALL MARKETPLACE_ICON_LINK ) SUBSTITUTE_LINKS_LOCAL END_APPLY_EACH HTML_OL %]
I have used an HTML block below. This sort of Magic Data processing is best kept away from regular content blocks because the TinyMCE editor will do nasty things to the html embedded in the magic data.
Just for fun, the block containing the list is AJAX loaded using a Blocks by Ajax template. For a finished product I would add a bit more formatting and styling. For now, the list is left as-is to keep such complexity out of the example.
Last updated: over a year ago