We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Hi,

    I have a template on my site for outputting search results, etc, and I recently had it set to return an image TV at a specific phpThumbOf size. I have updated the image size now but even after clearing modx cache and browser cache it still returns the same size image? For instance I have the following call on my homepage:

    [[!getPage@newsPaging? &elementClass=`modSnippet` &element=`getResources` &showHidden=`1` &tpl=`homeblog` &limit=`1` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &parents=`7` &depth=`2` &hideContainers=`1` &pageLimit=`1` ]]


    And the code in `homeblog` is as follows:

    <div id="post-[[+id]]" class="post-[[+id]] post hentry category-latest-news tag-tag3 tag-tag5 tag-tag7">
    <div class="post-top">
    <div class="post-date"><span class="day">[[+publishedon:strtotime:date=`%d`]]</span> <span class="month">[[+publishedon:strtotime:date=`%b`]]</span> <span class="year">[[+publishedon:strtotime:date=`%Y`]]</span></div>
    
    <h2><a title="Permanent Link to [[+pagetitle]]" href="[[~[[+id]]]]" rel="bookmark">[[+pagetitle]]</a></h2>
    </div>
    <div class="entry"><a href="[[~[[+id]]]]"><img class="alignleft" title="[[+tv.news_image_title]]" src="[[+tv.news_image:phpthumbof=`w=480&h=310&zc=1`]]" alt=""  /></a> [[+content:ellipsis=`350`]] <a class="more-link" href="[[~[[+id]]]]">Read the rest of this entry »</a></div>
    <div class="postmetadata">Tags: <a href="#" rel="tag">tag3</a>, <a href="#" rel="tag">tag5</a>, <a href="#" rel="tag">tag7</a> Posted in <a title="View all posts in Latest News" href="#" rel="category">Latest News</a> | <a title="Comment on Blog Post 5" href="single.html#comments">6 Comments »</a></div>
    </div>


    But it keeps outputting an image based on the old w & h of 200x100? Is there another way I have to update the change?
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 33238
      • 388 Posts
      Mate, sometime i had that problem, what I do is go to the cache images folder and delete the images or try caling the image "uncached" adding the "!" before the +
      [[!+tv.news_image:phpthumbof=`w=480&h=310&zc=1`]]

      Other option is change the image in the TV and check if is really reloading the image or still displaying the old one.
        --
        ysanmiguel.com
        • 7527
        • 437 Posts
        Hi, I tried it uncached and no change. Deleted the images in the cache file and again no change. I have now uploaded a new image and yet again no change. I cannot understand what is overriding my code?
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 7527
          • 437 Posts
          My homepage is http://www.pawsforwildlife.co.uk. The image returned when a search of 'bee' is made, is still only 250x157 and not the 480x310 I am calling in the template. I have been reading about the phpThumbOf call but there is not a lot of info available. Any help appreciated before I kill the whole idea...thank you DS
            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk