Modx getResource: Choosing which resource loads first? -


i trying use getresource pull few resources single page, these resources link through detailed information page of specified resource.

[[getresources? &tpl=`profile-ditto` &limit=`all` &parents=`18` &sortby=`publishedon` &hidecontainers=`1` &includecontent=`1` &includetvs=`1` &processtvs=`1`]] 

this pulls content , sorts correct order, need load specific resource depending on link clicked on.

list of modx resources

this resource list pulling, page loading them people (18) , each of children have more detailed pages need load individually depending on link people click on page. possible load resource getresource call?

so after investigating getresource little more on there information page link getresource figured out available getresource wouldn't solve problem.

i decided write custom snippet uses id of resource , loads resource when clicked while still using getresource save time on adding content.

            <div class="one-fifth column people-height">              <div class="people-info">                  <div class="table">                      <a href="[[~[[+id]]]]?id=[[+id]]"><img class="scale-with-grid" src="[[+tv.people-img]]" alt="[[*pagetitle]]"/></a>                     <p><strong>[[+pagetitle]]</strong></p><p>[[+introtext]]</p>                  </div>              </div>          </div> 

i added ?id=[[+id]] anchor tag url had resources id in it, created snippet loaded correct resource match id in url. believe easiest way load specific resources getresource call on modx revo @ current time of posting. find place store snippet people looking similar able there hands on it.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -