Custom Comcode for Amazon
Posted
#3587
(In Topic #684)
Standard member

Here is an example of the entire code.
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"
src="//ws-na.amazon-
adsystem.com/widgets/qServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&ref=
as_ss_li_til&ad_type=
product_link&tracking_id=yguaca20&marketplace=amazon®ion=US&placement=0736956387&asins=0736956387&linkId=
7ed9bc560488e3b54e23ba30d83075e0&show_border=true&link_opens_in_new_window=true"></iframe>
The part I made red is what changes from item to item. How can I make this work? That is, where does the {content} go? Thanks.
Last edit: by ooblek
Posted

Site director

A few alternative things come to mind:
- Just use the raw HTML and forget about a Comcode tag
- Use the whole bit in red as 'content' (a bit messy, but it should work)
- Use parameters. You can use any number of parameters for the Comcode tag, not just the middle bit ('content'). E.g. {placement}, {asins}, {linkId}. Then reference like [amazon placement="..." asins="..." linkid="..."][/amazon]
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.