[asa2_feed]¶
The shortcode [asa2_feed] can be uses to embed an Amazon RSS feed.
All supported options are documented on this page.
Basic usage¶
[asa2_feed]top_10_dvd_us[/asa2_feed]
Options¶
ajax¶
If you deactivate AJAX globally in the options, you can decide to load single products via AJAX by using the ajax
option.
[asa2_feed limit="3" ajax="1"]top_10_dvd_us[/asa2_feed]
associate_id_set¶
Defines which Associate ID set to use. The Associate ID of a product’s country code will be used if it was found in the set.
Note
Option tracking_id
is dominant, meaning that if you set tracking_id
, this ID will be used and associate_id_set
will be ignored.
[asa2_feed associate_id_set="my-i18n-ids"]top_10_dvds[/asa2_feed]
disabled¶
If you want to hide a feed temporarily but not to delete the whole shortcode, you can use option disabled
. If it is set to 1, the shortcode will not be rendered.
[asa2_feed disabled="1"]top_10_dvd_us[/asa2_feed]
limit¶
With option limit
you can limit the feed items.
Let’s say you want to display the top 3 items of a feed, use it like this:
[asa2_feed limit="3"]top_10_dvd_us[/asa2_feed]
mobile_tpl¶
With option mobile_tpl
you can define a template which will be used on mobile devices (Smartphones). Note that option Mobile templates has to be activated before this will work.
[asa2 tpl="my_desktop_template" mobile_tpl="my_template_for_smartphones"]ASIN[/asa2]
no_cache¶
The no_cache
option will prevent the product from being loaded from cache. This is useful if you want to test template updates in the frontend. In production you should not use it.
[asa2_feed no_cache="1" limit="3"]top_10_dvd_us[/asa2_feed]
offset¶
You can combine option limit
with offset
to define a starting point for the limited items.
Let’s say you want to display item 4, 5, and 6 of the list, use it like this:
[asa2_feed limit="3" offset="3"]top_10_dvd_us[/asa2_feed]
tpl¶
If you want to define a template by its name, use the tpl
option.
[asa2_feed tpl="my_awsome_template"]top_10_dvd_us[/asa2_feed]
tplid¶
If you want to define a template by its ID, use the tplid
option. You can find the ID in the first column of the template table. Using the template ID allows you to change the template’s name afterwards.
[asa2_feed tplid="16"]top_10_dvd_us[/asa2_feed]
tracking_id¶
Use option tracking_id
to embed a custom tracking ID in the textlink.
[asa2_feed tracking_id="my-other-id"]top_10_dvd_us[/asa2_feed]
Custom Values¶
Additionally to the shortcode options, you can also define custom values to use as placeholders in templates.
It is very easy. Just define a unique shortcode option with a value and use the exact same option name as placeholder in a template.
[asa2 my_custom_text="Banana!"]B0094J2BZ0[/asa2]
# use placeholder {{ my_custom_text }} in your template