Inserting another [HASIMAGE] for the second or third image for each news
Last Post 07/28/2013 10:28 AM by Joseph Craig. 6 Replies.
Author Messages
pouya karimi
Nuke Newbie
Nuke Newbie
Posts:9


--
07/20/2013 4:05 AM
    Dear Mr.Craig,

    I want to insert two or three images to my article or my news
    would you please see this web site:
    oldenburg.de
    the news in the middle of the page has three images
    I want to have 2 or three images for a news in my website
    I have this code in my news section

    [HASIMAGE][IMAGETHUMB:230:120][/HASIMAGE]

    and I want to insert another [HASIMAGE] for the second or third image.
    Would you please tell me which token should I use in order to insert the other related images to my news
    my web site is: richt.ir
    I want to have three images for my news in the middle or at the bottom of the page.
    thank you for your attention

    Regards,
    Pouya
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    07/20/2013 8:24 AM
    I assume that you are referring to Ventrian's News Articles module.

    From the list of tokens at http://support.ventrian.com/entries...le-Tokens, you have these tokens:
      
     [HASIMAGE][/HASIMAGE] 
     [HASIMAGES][/HASIMAGES] 
     [HASMULTIPLEIMAGES][/HASMULTIPLEIMAGES] - image count > 1 
     [HASNOIMAGE][/HASNOIMAGE] 
     [HASNOIMAGES][/HASNOIMAGES] 
     [IMAGE] 
     [IMAGE:ZZZ] (Where ZZZ is the position in list of images) 
     [IMAGECOUNT] 
     [IMAGELINK] 
     [IMAGES] -- loads images templates 
     [IMAGETHUMB:XXX:YYY] (Where XXX is the maximum width and YYY is the maximum height) 
     [IMAGETHUMBRANDOM:XXX:YYY] (Where XXX is the maximum width and YYY is the maximum height) 
     [IMAGETHUMB:XXX:YYY:ZZZ] (Where XXX is the maximum width and YYY is the maximum height and ZZZ is the position in list of images) 
     [IMAGETHUMBLINK:XXX] is the actual URL of the link to the thumbnail image. 
      


    So, use the tokens that allow you to specifiy the number of images.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    pouya karimi
    Nuke Newbie
    Nuke Newbie
    Posts:9


    --
    07/21/2013 3:25 AM
    Dear Mr.Craig,
    I tried
    [HASMULTIPLEIMAGES][IMAGETHUMB:230:120][/HASMULTIPLEIMAGES]
    and I also tried

    [HASIMAGES][IMAGETHUMB:230:120][/HASIMAGES]

    and this one:

    [HASIMAGES][IMAGETHUMB:230:120][/HASIMAGES]
    and I see the same one image that I had before.

    Which token allows me to specifiy the number of images? I want to show three images for each news.
    Thank you for your attention
    Pouya
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    07/21/2013 10:53 AM
    I would probably do something like this:

    
     [HASIMAGES]
    
     [IMAGE:1]
     [IMAGE:2]
     [IMAGE:3]
    
    [/HASIMAGES] 
    ] 
     [IMAGE:ZZZ]
    
    
    



    Then, if it doesn't work, look at the page source to see what is actually in the generated HTML.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    pouya karimi
    Nuke Newbie
    Nuke Newbie
    Posts:9


    --
    07/28/2013 2:43 AM
    Dear Mr.Craig,
    I tried
    [HASIMAGES]





    [/HASIMAGES]

    But It just shows without any images.
    I tried it with [HASMULTIPLEIMAGES] * * *[/HASMULTIPLEIMAGES]
    but it shows just the first Image three times.
    and doesn't show the second or third images.
    pouya karimi
    Nuke Newbie
    Nuke Newbie
    Posts:9


    --
    07/28/2013 2:45 AM
    I wrote my reply, as you see in my question , It shows 3 images too (but the same image three times)
     [HASIMAGES]
    
     [IMAGE:1]
     [IMAGE:2]
     [IMAGE:3]
    
    [/HASIMAGES]
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    07/28/2013 10:28 AM
    Probably the best thing to do is get in touch with Ventrian's support forum at ventrian.com.

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---