We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47485
    • 5 Posts
    Hey guys, i am having trouble modifying the latestPostWidget on my Startpage.
    I want it to have an image, but it wount show it.

    <li class="media">
          <a class="pull-left" href="[[~[[+id]]]]">
            [[*tv.news-img]]
          </a>
          <div class="media-body">
            <a href="[[~[[+id]]]]"><h4 class="media-heading">[[+pagetitle]][[+publishedon:notempty=`<small> — [[+publishedon:strtotime:date=`%b %d, %Y`]]</small>`]]</h4></a>
            [[+introtext]]<a href="[[~[[+id]]]]"> >></a>
          </div>
    </li>
    


    This is what my latestPostTml looks like.
    I added a template variable, called it "news-img" it has an input of img and output as well, it as also accessible when writing a blog post from the "blogPost" Tempalte.

    basically everything is set up like in the tutorial.

    Thank you!
    Philipp


      • 42802
      • 96 Posts
      Sebastian Zahn | ingroove.uy Reply #2, 12 years, 4 months ago
      Hi, shouldn´t be [[+tv.news-img]] ?
        • 47485
        • 5 Posts


        Thank you !

        Thats true, and i had to set: displayTVS = `1 ` in the call for the snippet
          • 42802
          • 96 Posts
          Sebastian Zahn | ingroove.uy Reply #4, 12 years, 4 months ago
          If it´s GetResources call:

          &includeTVs=`1`
          &processTVs=`1`


          Quote from: phil_1990 at May 08, 2014, 08:31 AM


          Thank you !

          Thats true, and i had to set: displayTVS = `1 ` in the call for the snippet