Custom Comcode for Amazon


#3587 (In Topic #684)
Standard member
ooblek is in the usergroup ‘Well-settled’
This is more an Amazon question than a Custom Comcode question. The new Amazon ad code is complicated. In the past, there was just one number that fit into the {content} space. Now, there is a whole series of letters and numbers that change from one item to the next. I created a Custom Comcode for Amazon picture only, which is just a single number, and that worked fine. But I do not know what to replace with the {content} in this much more complicated code.

Here is an example of the entire code.

<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"

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

Online now: No Back to the top


Site director
Chris Graham is in the usergroup ‘Administrators’

A few alternative things come to mind:
  1. Just use the raw HTML and forget about a Comcode tag
  2. Use the whole bit in red as 'content' (a bit messy, but it should work)
  3. 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 Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • 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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.


Users online:

John Connor, amit.nigam, Vaiva, MVLipwig, Philip, gabriel58

Forum statistics:
  • 1,296 topics, 5,829 posts, 7,064 members
  • Our newest member is flour2door
Back to Top