Support » Plugin: Amazon Link » type: Multi (template)

  • ttremain

    (@ttremain)


    I trying to make a template that can handle just a simple image and text, but for 1 to 3 items. image here shows 2 items

    It took me a while, but I discovered the template needs to be a Template Type “multi”.

    From the looks of other multi templates, some JS will be needed. I’m not finding any documentation or even references to this at all.

    Any recommendations?

Viewing 2 replies - 1 through 2 (of 2 total)
  • ttremain

    (@ttremain)

    I’d go ahead and delete this if I could.

    I created a multi template like this:

    <script type="text/javascript">
    amzn_assoc_placement = "adunit0";
    amzn_assoc_search_bar = "false";
    amzn_assoc_tracking_id = "%TAG%";
    amzn_assoc_ad_mode = "manual";
    amzn_assoc_ad_type = "smart";
    amzn_assoc_marketplace = "amazon";
    amzn_assoc_region = "US";
    amzn_assoc_title = "My Amazon Picks";
    amzn_assoc_linkid = "80e86bf226e6889b5bea4e1ed65d556d";
    amzn_assoc_asins = "%ASINS%";
    </script>
    <script src="//z-%REGION%.amazon-adsystem.com/widgets/onejs?MarketPlace=%MPLACE%"></script>
    

    Then blocked out a couple things the client doesn’t want, using CSS.

    Plugin Author paulstuttard

    (@paulstuttard)

    You can put multiple ASIN’s in a shortcode and the plugin will automatically create two instances of the template.

    [amazon asin=0123456789,9876543210&template=image]

    I also did an extra plugin that allowed you to embed one template inside another one, so you could do a container template then inside expand several smaller templates. This was to create a ‘slider/carousel’ affect.

    Based on jcarousel. So the container template was something like:

    Name: Slider
    Type: Multi
    Content:

    <div class="slider_container">
     <div>%TEXT%</div>
     <div class="jcarousel">
      <ul>
       %T_SLIDER_ITEM%
      </ul>
     </div>
     <a href="#" class="jcarousel-control-prev">
       ‹
      </a>
      <a href="#" class="jcarousel-control-next">
       ›
      </a>
    </div>
    

    Then it contains the Slider Item:

    Name: Slider Item
    Type: Product
    Content:

    <li class="al_found%FOUND%">
      <div class="slider_img">
        %LINK_OPEN%<img alt="%TITLE%" title="%TITLE%" src="%THUMB%" class="slider_img">%LINK_CLOSE%
      </div>
      <div style="font-size:80%">
       <b>%ARTIST%</b></br>
       %TITLE%</bR>
       %RATING_LINK%</br>
       %LINK_OPEN%<img src="%BUY_BUTTON%">%LINK_CLOSE%
      </div>
    </li>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘type: Multi (template)’ is closed to new replies.