Picture preview
  • In the article

    Calls for Traffic Safety After Last Week's Fatal Collision

    you can find at the offical demo

    http://campsite-demo.sourcefabric.org/

    there is a picture preview that does not exist in the Lead_and_SMS field. How can I do that ? How campsite understand to preview such an image ?

    Regards,
    George
  • 3 Comments sorted by
  • Dear George,

    First you need to attach an image to the article using the image "Attach"
    link. Campsite will ask you to assign it a number.

    Next you can embed an image in the text (see the circled icon in the image
    attachment) or you can display article images through the template language:

    {{ if $campsite->article->has_image(200) }}
    <a href="{{ uri options="template article.tpl" }}"><img src="http://{{
    $campsite->publication->site }}/get_img.php?{{ urlparameters options="image
    200" }}"/></a>
    {{ /if }}


    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Wed, Sep 22, 2010 at 7:48 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > In the article
    >
    > *Calls for Traffic Safety After Last Week's Fatal Collision*
    >
    > you can find at the offical demo
    >
    > *http://campsite-demo.sourcefabric.org/*
    >
    > there is a picture preview that does not exist in the *Lead_and_SMS*field. How can I do that ? How campsite understand to preview such an image
    > ?
    >
    > Regards,
    > George
    >
    >

  • Hi,

    Thank you for your reply.

    Ok with the template language I did not tried yet, but I will.

    Can I accomplish the same result without using code ? I am not sure If understand this well.

    Anyway, I can embed images in my body with the icon campsiteimage.campsiteimage_desc button as usual, but the only options I can see in the pop up dialog are : alt, caption, alignment etc. I can not see any circled icon !

    After playing a little, with image numbers, I ended up in the conclusion that this trick is done only with the template code. Is that true ?

    Regards,
  • "I can not see any circled icon !"

    Sorry, I forgot to attach the screenshot in which I circled the icon to use.

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Thu, Sep 23, 2010 at 9:08 AM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    > Thank you for your reply.
    >
    > Ok with the template language I did tried but I will. Can I accomplish the
    > same result without using code ? I am not sure If understand this well.
    >
    > Anyway, I can embed images in my body with the icon
    > campsiteimage.campsiteimage_ desc button as usual, but the only options I
    > can see in the pop up dialog are : alt, caption, alignment etc.
    >
    > I can not see any circled icon !
    >
    > Regards,
    >
    >