Questions tagged [modx-resources]

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.

51 questions
2
votes
1 answer

Get page Body contents in MODX

My MODX site needs to grab the first image from all pages for Open Graph Meta tags, which will be plugged into the Head chunk for all templates. The problem with this is that not all images are located in the content part of a page. Some are located…
MCSharp
  • 1,068
  • 1
  • 14
  • 37
1
vote
1 answer

Create article preview in ModX?

How can I create preview of my articles(which are in the resource "articles") using their [[*description]] and [[*introtext]] in the right sidebar on another resources page, called "services"(this page's (template) code:…
1
vote
2 answers

Xterm*selectToClipboard doesn't work when put in Xresources

I have a problem with my Xterm and I can't figure out what is wrong: I need to enable the option *selectToClipboard in my Xterm to be able to copy text in the terminal. To do so i firstly tried to "manually" start xterm with the option with the…
statox
  • 2,827
  • 1
  • 21
  • 41
1
vote
1 answer

Link to external URL from Modx Revolution Menu

I'm attempting to link to another site from the main navigation on my Modx Revolution 2.2.13-pl site. I tried to create a weblink resource, but it simply loads up a page with the URL in the content of the page, then redirects to the homepage as if…
Dakine83
  • 687
  • 2
  • 9
  • 23
1
vote
2 answers

How to add a form field to modx 2.2.14 manager pages

I'm trying to add the editiedon field to the modx manager pages so my users can edit the value using this bit of documentation as a start…
Sean Kimball
  • 4,506
  • 9
  • 42
  • 73
1
vote
2 answers

If getResources parent is not empty display chunk

I'm a noob in the modx world. I have a page with subpages and I using getResources to display the content of those in tabs on the parent page. What I would like to do is only display that chunk if the parent has subpages? So something like this, but…
1
vote
2 answers

MODx Revo setTvValue returns old data

$modx -> resource -> setTVValue(11, 1); print_r($modx -> resource -> getTVValue(11)); $modx -> resource -> setTVValue(11, 2); print_r($modx -> resource -> getTVValue(11)); I have a snippet that outputs 2 and 2, whereas it should output 1 and 2.…
YanAlex
  • 99
  • 1
  • 10
0
votes
2 answers

Cache clearing fails in MODX3.0.2

When I try to clear the cache from Manager or from a snippet on MODX3.0.2, MODX does not empty the folders under core/cache/resource/ and the cache won't be cleared. I traced the problem to xPDOFileCache.php: public function delete($key, $options=…
0
votes
1 answer

Why does the redirect to page 404 in MODX not work?

I have correctly configured the resource id in the "site" section in the system settings. But when I enter a mysite/ non-existentaddress in the browser, instead of a redirect to 404, a redirect to the main page occurs I tried to add in my htacceess…
Serj
  • 27
  • 4
0
votes
3 answers

Modx *id isnot =`` and isnot=`` not working

Hi can someone help me with the correct code for this statement because it is not working for me. [[*id:isnot=`250` and isnot=`252`:then=`[[$qc-wrap]]`]]
0
votes
1 answer

Export rendered html files as zip from modx

First of all my target is to write an Extras for modx to export website contents as epub file. I searched already if something like that exists but I did not find anything. Does anyone know extras like that? Or can anyone suggest me the best way to…
0
votes
1 answer

How to fetch articles on custom page in MODX CMS

I am new to the MODX CMS so I don't know more about this CMS. I tried to fetch articles in the custom template please see screenshot 01:- Screenshot 01 This is the shortcode of articles which I am using to fetch the articles on the custom pages…
Bhanu
  • 21
  • 5
0
votes
1 answer

Multiple Contexts: One ReadOnly, One FullControl

Multi-Context site has two (in reality more) contexts. We need to have a user (group) where every user can edit in one context and only VIEW the other context. The site is designed that there is no single root node in each context (because of…
TheHe
  • 2,933
  • 18
  • 22
0
votes
1 answer

Modx Revolution tree of resources (documents)

I have a trouble with resources tree (left side of admin panel) If I open some item for editing, tree is closing and I need open tree every time. It is observes this problem on some computer (not in all) and not every time (sometime tree does not…
DimoZZa
  • 26
  • 2
0
votes
2 answers

MODx Revolution Multidomain/Contexts same content

I have a MODx website. It has 3 different contexts. Each context point to an other domain. In one context (lets say it is C1), I have a resource (a folder) that has many child resources. I display the resources with a pdoresources-call (frontend).…
DragonStyle
  • 145
  • 11
1
2 3 4