We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17667
    • 108 Posts
    I am testing the Articles add-on for some sites I have in development and love it. One thing I was wondering, I have duplicated sample.ArticleRowTpl and have it passing some custom image template variables. The tv's are not being processed, so I don't get the full image path. Is there a simple way to get the tv's to process before being passed?
      • 28215
      • 4,149 Posts
      luke, that will be an option in 1.0.1, which will be released later today.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 36930
        • 22 Posts
        Its great that Articles is now processing TVs (at least after I added the tv prefix to the article row chunk).

        One problem though. I am using an image TV with phpthumb in my row chunk. The uncached getPage call from Articles (combined with phpthumbof) is very noticeably slowing the page down.

        Everything I found says getPage must be called uncached (even though when I edit articlescontainer.class.php to call it cached, it speeds everything up drastically).

        Is there a way get the image TV to be cached even though getPage is not?

        • What tv prefix? The documentation doesn't seem to say anything about it.

          Ok, good ol' trial-and-error, use
           [[+tv.tvname]] 
          [ed. note: sottwell last edited this post 12 years, 4 months ago.]
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 3749
            • 24,544 Posts
            This might also work (though I haven't tried it in Articles):

            &tvPrefix=``
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
            • Question is, where would you do that? Articles is all automated, and I can't find where to set any options like &orderBy.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 36930
                • 22 Posts
                Yeah, you can't specify &tvPrefix=`` without going into Articles' code and manually inserting it into the getPage call.

                That was what was throwing me off initially, since I always specify &tvPrefix=`` when using getResources/Page.

                For my initial issue, page speed, it was all addressed with the 1.0.2 update. Not sure what was changed, but image TV's using phpthumbof don't slow down the main blog page any more.
                • Well, after examining the code, I determined that I could set these options in the default settings of the getArchives snippet. This does have the disadvantage of having these setting be the default for all uses of getArchives (which getPage is wrapping). I've submitted a feature request for Archives to add sortby and sortdir to the Advanced Settings tab.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • Adding a TV to to the latest articles Tpl does not work, I'm trying to get and Image to show and tried [[+tv.image]] and [[+image]] and the url is simply not generated... how can I solve this?
                      • 17667
                      • 108 Posts
                      Thijs, go to your articles container and click on the Advanced Settings tab. Make sure that Include TVs in Listing and Process TVs in Listing are set to yes.