We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20911
    • 84 Posts
    Hey all, am gonna show you how to display an image in the main article list.

    1. Go to Elements -> Manage Elements -> Template Variables, Create new Template Variable.

    2. Template Variable Name: lets name it to "Image",
    Widget -> Image,
    Input type as image,
    the ID named as image.
    Select Align: Left, Right or whatever you want it to be.

    3. The Chunk Template: ( Name it to BlogTemplate ) This line shows the image: <div class="image">[+title+]<a href="[~[+id+]~]">[+image+]</a></div>
    <b><h2><a href="[~[+id+]~]" title="[+introtext+]">[+title+]</a>
    </h2></b><div class="image">[+title+]<a href="[~[+id+]~]">[+image+]</a></div>
    <p>Created By: <strong>[+author+]</strong></p>
    <p>Created On: [+date+].<br /></p>
    <p>Summary: [+introtext+]</p>
    
    <a href="[~[+id+]~]" title="[+introtext+]">Read More</a></h2>


    4. Snippet Code:
    [!Ditto? &parents=`26` &summarize=`2` &total=`20` &tpl=`BlogTemplate`!]

    &parents=`26` -> Is The Parent Folder of the Sub articles.

    Now we are done, enjoy your Blog cool
      Mysql 5.1.52
      Apache 2.2.17
      PHP 5.2.12
      Linux
      • 26931
      • 2,314 Posts
      Hey Nameless, thanks for the how-to! smiley
        • 20911
        • 84 Posts
        no problem wink
          Mysql 5.1.52
          Apache 2.2.17
          PHP 5.2.12
          Linux