2 Replies Latest reply: Jun 21, 2014 6:16 PM by cretam RSS

    News items with different list templates

    cretam Community Member

      Hi,

      I have created a web app for my news rotator on this site http://www.dandmrural.com.au and I would like to know how I can create a link on the CRT Retailer of the Year article directly to the pdf rather than the rest of the article {tag_itemurl_withhost} on some items so they don't have to do 2 clicks to open the pdf and on other items it goes to the rest of the story (like the McLellan item).

      My list template code is

      <div id="content-">

      <img alt="" class="&rdquo;image&rdquo;" src="{tag_image_value}?Action=thumbnail&amp;Width=300&amp;Height=300" &algorithm="fill_proportional&quot;" /><br />

      <h3> {tag_name_nolink}</h3>

      <p>{tag_intro} <a href="{tag_itemurl_withhost}">Read more</a></p>

      </div>

       

      I thought I could use an alternate list template with the following code but I am not sure how I tell each item which template to use:

      <div id="content-">

      <img alt="" class="&rdquo;image&rdquo;" src="{tag_image_value}?Action=thumbnail&amp;Width=300&amp;Height=300" &algorithm="fill_proportional&quot;" /><br />

      <h3> {tag_name_nolink}</h3>

      <p>{tag_intro} <a href="{tag_url_pdfs}">Read more</a></p>

      </div>

       

      Any help would be greatly appreciated.

      Cheers,

      Tammy