Basically, Resources represent pages in MODX Revolution CMS. There are 4 types of Resources: Static Resources, Documents, Weblinks and Symlinks. This tag can be used in questions regarding troubles with Resources in MODX Revolution.
Questions tagged [modx-resources]
51 questions
0
votes
1 answer
MODX revolution: get second level children
I've got url: somesite.com/mypage?clinic=21&spec=myspecialisation
In my structure I have clinic -> parent -> final resource to sort out
I have this:
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`10,15,12`
…

Timur Gafforov
- 771
- 3
- 10
- 28
0
votes
1 answer
Modx redirect user to a specific page after manager login
I've found this plugin code:
event->name == 'OnManagerLogin') {
$path = $modx->getOption('base_url',null,MODX_BASE_URL);
$modx->sendRedirect($path.'manager/?a=69');
}
but I cannot manage to make it work with MODX…
0
votes
1 answer
IDX condition in a getresource tpl
I use getresource like this:
[[!getResources? &tpl=`coffrets_id` &parents=`1115`]]
inside coffrets_id tpl I'd like to be able to do something like this:
[[+idx:is=`1`:then=`show only first getressrouce result`:else=``]]
[[+idx:is=`2`:then=`show…

sutrah
- 3
- 1
- 2
0
votes
1 answer
How do I create a reusable mailto link in ModX?
I want to create a link to an email address like somebody.
I tried to use a weblink resource (which gets an id of 20) with mailto:person1@provider.nl as link value and render this in my content with the tag…

Esger
- 1,310
- 12
- 18
0
votes
1 answer
Modx revo 2.4.2 Get resource level
I'm using getResource and I would like to retrieve resource's level to create conditions. I found an old script but it does not work anymore with modx 2.4.2:

Sylvain Le Bihan
- 163
- 1
- 2
- 13
0
votes
0 answers
Problems in fileupload using FormIt in Modx Revolution version 2.5.1
when I submit a form using FormIt this error comes:
Parse error: syntax error, unexpected '$ext_array' (T_VARIABLE) in /public_html/sitename/core/cache/includes/elements/modsnippet/39.include.cache.php on line 6
The code I use:

Arun Cyber
- 11
- 1
- 8
0
votes
1 answer
Media Browser show the directory but it doesn't show content in MODX
I have been encountering the following issue and I´m going a bit crazy. I hope you can help me:
In the backoffice, I can see the media folders but when I click on it, it doesn´t show me the content (files)
The strange thing is that this is only…

vaifer91
- 25
- 4
0
votes
1 answer
Modx plugin resource return
I need to return to user whole resource in his own template via plugin, which handles on OnPageNotFound event. It can be diifferent pages, depends on link. I will parse it and get resource needed.
How can i do it?

user2639674
- 13
- 2
0
votes
0 answers
languageContext in front of [[+uri]] to fix the link
I use pdoTools, pdoNeighbors and babel for a multi-language Website on MODX Revo.
In pdoNeighbors I define Chunks.
[[pdoNeighbors?
&sortby=`menuindex`
&sortdir=`DESC`
&resources=`-23`
&tplPrev=`tplLinkZurueckEn`
…

AndyWizz
- 113
- 8
0
votes
1 answer
Is it possible to add some arrows to ms2gallery and use it as carousel?
I have project on modx and there is used ms2gallery to show images. And customer want to add some arrows(prev, next) to use this ms2gallery as carousel or slider. Is it possible to build-in this functional into ms2gallery? If not could you advice…

Maximus Dredoff
- 306
- 3
- 17
0
votes
1 answer
ModX gives me empty page of my document
I have Document- "news", where are a lot of articles(children documents), if I click on some article, ModX gives me empty page with the current alias name in url. Error Log shows me
[2015-09-02 17:06:38] (ERROR @ /index.php) Could not retrieve data…

Maximus Dredoff
- 306
- 3
- 17
0
votes
3 answers
get image TV on homepage modx revolution
I have a lot of sub pages and latest 3 I am showing at homepage, I could display only title but image can't(every sub page has TV named 'image_prew' and I am trying to get value of this TV for image), here is my code:

aiddev
- 1,409
- 2
- 24
- 56
0
votes
1 answer
MODx : Container resource vs. resource's parent
What are the use of container resource and the use of resource's parent?
Are they relevant to each other?

Jogue Wasin
- 67
- 1
- 4
0
votes
2 answers
Modx Redirector plugin limited resource list
Redirector plugin created by Shaun McCormick is a little outdated and I noticed that a bug appeared where not all resources showed up.

Jack
- 3,271
- 11
- 48
- 57
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