getResources is an extra (snippet) for MODX Revolution CMS. Its main goal is to list resources (pages) of a website. Questions about getResources extra - usage, properties, optimization, errors etc. - might have this tag.
Questions tagged [modx-getresources]
18 questions
1
vote
1 answer
MODX getResources displays child resources of unlisted resource
I have the following getResources code on a page:
[[!getResources?
&resources=`57,77`
&depth=`1`
&tpl=`customersListTPL`
&limit=`99`
&sortdir=`ASC`
…

MeltingDog
- 14,310
- 43
- 165
- 295
1
vote
1 answer
How can I display only resources from a specific year with getResources (Modx)?
I want to display only resources that are published in the year 2015.
I tried:
&where=`{"publishedon:":2015}`
But this is not working. Can anybody help me?

peace_love
- 6,229
- 11
- 69
- 157
1
vote
1 answer
Modx: how to use [[*published]]?
I am using getResources to display a list of resources, as such:
[[!getResources? &parents=`7` &showUnpublished=`1` &sortby=`{"menuindex":"ASC"}` &limit=`100` &includeTVs=`1` &processTVs=`1` &tpl=`listtemp` ]]
Note that I am using…

MeltingDog
- 14,310
- 43
- 165
- 295
0
votes
1 answer
Listing MODX Articles with at least one common tag
Is it possible to use the getResources snippet to find related articles that have at least one common tag with the active resource?
[[getResources?
&parents=`xxx, xxx`
&showHidden=`1`
&limit=`10`
…

Niko Suominen
- 97
- 9
0
votes
1 answer
Modx getresources cant reat template variable
I have this
[[getResources? &parents=`10` &limit=`0` &tpl=`videos_tpl` &sortby=`menuindex` &sortdir=`ASC`]]
and I created a chunk for tpl videos_tpl
[[+pagetitle]]
0
votes
1 answer
MODX Revo tvFilter with getResources and/or pdoResources
I have a checkbox-TV:
City 1||City 2||City 3||City 4
With getResources and pdpResources tvFilter wont't work. Only if I check
only on of the "Citys". If I check 2 or more nothing worked.
&tvFilters=`art.start-city==yes%,art.city==%City 2%`
Any…

DragonStyle
- 145
- 11
0
votes
1 answer
ModX getResources &tvFilters not working
I have output from getResourses that I need to sort out by template variable value, but filter is showing resources that have only one value.
For example, this code is showing resources that have only Manhattan TV value.
Template variable input type…

Daniar Ayzetulov
- 1
- 1
0
votes
2 answers
Way to have getResources not show unpublished IDs if given a list of IDs
I've got an SQL query that spits out a group of IDs. I feed these IDs to a getResources call as such:
[[getResources?
&parents=`4`
&resources=`' . $ids . '`
&limit=`0`
…

MeltingDog
- 14,310
- 43
- 165
- 295
0
votes
0 answers
Is there a way to apply a seperate template to different levels in Wayfinder?
I want to create a sub menu that uses divs and spans instead of uls, eg:
- Item
- Item
- Item
Sub-item Sub-item Sub-item
- Item

MeltingDog
- 14,310
- 43
- 165
- 295
0
votes
2 answers
How can I show template variables from articles with getResources?
I want to use "getResources" to show the articles from the "articles" extra on my homepage.
Here is the code of my homepage:
[[getResources? &parents=`52` &tpl=`sample.ArticlesLatestPostTpl` &showHidden=`1` &includeContent=`1` &includeTVs=`1`…

peace_love
- 6,229
- 11
- 69
- 157
0
votes
1 answer
getResources: Way to order Resources by &resources property?
I want to order resources in the order I have them in the $resources property eg:
2,6,3,8
But this seems to defualt to menu index.
Does anyone know a way to achieve this?
My getResources call:
[[!getResources?
…

MeltingDog
- 14,310
- 43
- 165
- 295
0
votes
2 answers
modx getResources tv
I have a page for a sports club based on ModXCMS 2.1.4.
For a list of sport classes I have appr. 30 Documents for the different.
Each of this has template variables like abteilung, Wochentag, Startzeit, etc.
The tv.Wochentag contains…
0
votes
1 answer
Date TV format appears differently in getResources template chunk
I am using the Date TV with a custom format: %b %e, %Y which appears as: May 6, 2015.
However, I am having issues getting this to appear correctly within a getResource chunk, eg: [[+tv.NewsDate]].
The date appears but doesnt follow the custom…

MeltingDog
- 14,310
- 43
- 165
- 295
0
votes
1 answer
How to sort Modx getResources in a specified order?
How can we sort a modx getResources call in the order specified in the 'resources' attribute?
I have:
[[!getResources?
&parents=`-1`
&resources=`[[*HomePageUpcomingEvents]]`
&tpl=`SecondaryUpdatesHomePageTpl`
&limit=`3`
…

Sean Kimball
- 4,506
- 9
- 42
- 73
0
votes
1 answer
MODX getResources filter
I need to filter my getResources so that the [[*longtitle]]s of filtered resources match [[*pagetitle]] of the resource where getResources snippet is used.
Can this be done?
Thanks

Filip Cicvarek
- 99
- 9