We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • These are both enabled, but I can not get a TV to show up... tried it with and without the tv prefix?

    Its the latestArticles Tpl that does not show my tv's
      • 40590
      • 9 Posts
      I'm having the exact same problem...Thijs, did you come up with a reason and/or solution?
        • 30912
        • 463 Posts
        Have you specified the TV names in the list for processing TV's?
        have you enabled the TV on the Articles Template Access?

        These are the first two things i check when a TV isnt showing up.

        Then i check the article tpl to ensure the tv name is set correctly e.g; BlogPerson is the tv name

        <div class="blogContainer">
          <div class="person"><img src="[[+tv.BlogPerson:phpthumbof=`w=75&h=75`]]" width="75" height="75" alt="[[+publishedby:userinfo=`fullname`]]" /></div> <div class="blogContTitle"><a href="[[~[[+id]]]]"> [[+pagetitle]]</a></div>
          <p class="blogContIntro">[[%articles.posted_by]] <a 
        href="blog/author/[[+createdby:userinfo=`username`]]">[[+createdby:userinfo=`fullname`]]</a> |  [[+publishedon:strtotime:date=`%b %d, %Y`]]  </p>
        <div class="clear"></div>
          <div class="blogIntro" id="blog">
            <p>[[+introtext:default=`[[+content:ellipsis=`400`]]`]]</p>
          </div>
          
         [[+tv.articlestags:notempty=`<p class="blogTags"> [[%articles.tags]]: [[!tolinks? &items=`[[+tv.articlestags]]` &target=`[[*id]]` &useTagsFurl=`1`]] </p>`]]
        <div class="clear"></div>
        
          
         <a href="[[~[[+id]]]]" class="blogReadmore">[[%articles.read_more]]</a>
        <br/>
        
        </div>

          • 37099
          • 338 Posts
          Quote from: thijsvandamme at Jul 19, 2013, 10:52 PM
          These are both enabled, but I can not get a TV to show up... tried it with and without the tv prefix?

          Its the latestArticles Tpl that does not show my tv's

          This is still a bug.

          It can be solved by putting:

                      &includeTVs=`'.$this->xpdo->getOption('archivesIncludeTVs',$settings,0).'`
                      &includeTVsList=`'.$this->xpdo->getOption('includeTVsList',$settings,'').'`
                      &processTVs=`'.$this->xpdo->getOption('archivesProcessTVs',$settings,0).'`
                      &processTVsList=`'.$this->xpdo->getOption('processTVsList',$settings,'').'`
          


          In
          public function getLatestPostsCall
          at line 444ish in file:

          core/components/articles/model/articlesinarticlescontainer.class.php

          How can we get this updated?

          Thanks
          Mike







            • 42046
            • 436 Posts
            How can we get this updated?


            A pull request on Github.

            https://github.com/modxcms/Articles
              • 40122
              • 330 Posts
              Still no fix for this?

              I ended up using getResources instead (note: you must use showHidden=`1`)