Locale: Uk flag. v192206992 United Kingdom

How do I create a Search widget that searches within the Books category?

To restrict search results to a specific Amazon.co.uk category, add the following parameter to the widget template:

1. SearchIndex='INDEX_VALUE'
Replace INDEX_VALUE with a specific Amazon.co.uk category. For instance, SearchIndex='Books' returns results from the Books category only. If you want to allow your users to pick a search category from a drop-down, add SearchIndex='DropDown' to the widget template.

To learn more about SearchIndex and get the complete list of available SearchIndex values, click here

Example: The Widget Source code below creates a Search widget that allows the user to search within the 'Photography' category:



<script>
var amzn_wdgt={widget:'Search'};
amzn_wdgt.tag='widgetsamazon-20';
amzn_wdgt.columns='1';
amzn_wdgt.rows='1';
amzn_wdgt.defaultSearchTerm='10 mp 5x zoom';
amzn_wdgt.searchIndex='Photo';
amzn_wdgt.width='256';
amzn_wdgt.showImage='True';
amzn_wdgt.showPrice='True';
amzn_wdgt.showRating='True';
amzn_wdgt.design='2';
amzn_wdgt.colorTheme='Default';
amzn_wdgt.headerTextColor='#FFFFFF';
amzn_wdgt.outerBackgroundColor='#000000';
</script>
<script src='http://wms.assoc-amazon.com/20070822/US/js/AmazonWidgets.js'>
</script>

What do you think?

Do you have a suggestion or comment about the Associates Central website? Let us know.