How to display the path to the last pictures in:

[[!pdoResources? &sortby=`id` &class=`galItem` &limit=`1` &tpl=`tpl` ]] 

tpl template

 <div class="grid_4 box-2"> <a href="[[+image_absolute]]" class="magnifier"><img src="[[+thumbnail]]" alt="[[+name]]" [[+image_attributes]] style="width:370px;height:250px;"></a> <div class="inside"> <div class="text-3"><a href="[[~61]]">[[+name]]</a></div> <div>[[+description:ellipsis=`100`]]</div> </div> </div> 

Can you please tell me what am I doing wrong?

  • What is the "path to the last pictures"? You have limit=1 , therefore one picture is displayed. Add a question (edit) what result you want to achieve, what is obtained at the moment. - Alexander Igorevich
  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky
  • Question - need to display the latest images from the component "Gallery"? - Vasis

1 answer 1

In the pdoResources call, you do not specify &includeTVs , which should include the names of additional fields that need to be output (in your cases this is a thumbnail,image_absolute,name,image_attributes ). Also the default value of &tvPrefix is tv. . Accordingly, in the chunk tpl required to display the value of the aux. fields with this prefix. Something like this: [[+tv.image_absolute]] [[+tv.thumbnail]]...