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

    I just swith to fastField because I had an issue with getresourcefield (revo 227, babel, 2 cx (web=fr + en))


    Fastfield is ok returning some content from a tv BUT
        <div class="row">                
          <div class="span4"> 
    		[[#[[!BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]].tv.footCol1]]                 
              <a class="btn" href="#">View details »</a>
    
          </div>                
          <div class="span4">
    	  [[#[[!BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]].tv.footCol2]]
    
              <a class="btn" href="#">View details »</a>
    
          </div>                
          <div class="span4">
    		 [[#[[!BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]].tv.footCol3]]
              <a class="btn" href="#">View details »</a>
    
          </div>            
        </div>



    and here's the previous try with getresourcefiled
    (that returns just nothing)
    <div class="row">                
          <div class="span4"> 
    			[[getResourceField? 
    			&id=`[[!BabelTranslation? &contextKey=` [[*context_key]]` &resourceId=`27`]]`
    			&processTV=`1`
    			&field=`footCol1`
    			&isTV=`1`]]                  
              <a class="btn" href="#">View details »</a>
            </p>                
          </div>  ...


    Might in relationship with the imbrication call of babeltranslation..but...
    Any clue to make this works with getrssoucefield ?

    thank you
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Because of the parsing order, you need to call getResourceField uncached as well, if the ID comes from an uncached snippet. I'm not sure if BabelTranslation should be called uncached or not.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.