Questions tagged [modx]

MODX (also known as MODX Revolution) is an open source CMS and web application framework written in PHP, using a MySQL or MSSQL database backend.

MODX is an open source CMS and web application framework written in PHP.

Content management is achieved with a simple document tree. Reusable, repeated HTML snippets are referred to as "chunks" and can be incorporated into templates. PHP code can be used similarly and is referred to as "snippets".

Download the latest MODX version

1039 questions
2
votes
3 answers

PHP files not executing when placed in a subdirectory

I'm trying to transfer a Wordpress website into a client's server. The existing website of the client is run in MODX (a php-based CMS). I have created a subdirectory in the root called "new" and put my Wordpress files in there so I can first install…
farjam
  • 2,089
  • 8
  • 40
  • 77
2
votes
1 answer

MODX Revo custom sort order for getCollection

I have an array with id's: $ids = array(240, 12, 400); And I want to get those objects in that order with $modx->getCollection('modResource'); How can I accomplish that? if I do like this: $res = $modx->getCollection('modResource', array( …
BennyLava
  • 179
  • 1
  • 2
  • 15
2
votes
4 answers

Running custom database queries in ModX Revo

I am trying to query the database within a snippet within ModX Revo: On Evo this worked fine…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
4 answers

ModX Revo: getResources not sorting by menu index

I want to order my resources by menu index and have the following code: [[!getResources? &parents=`50` &sortdir=`ASC` &sortby=`menuindex` &limit=`100` &includeTVs=`1` &processTVs=`1` &tpl=`temp` ]] But the sortby just isn't working. Would anyone…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
1 answer

Extjs - how can I add subtotal/summary for each Grid Grouping row?

Using an ExtJS 3.4 grid, how can I achieve the neat sub-total row under every Grouped section as in the following example: http://dev.sencha.com/playpen/gxt/totals/ I'm unable to upgrade as 3.4 is the version used by the CMS I use (MODX).
okyanet
  • 3,106
  • 1
  • 22
  • 16
2
votes
1 answer

Session Not Posting Immediately in ModX Evo

I am using Modx Evo 1.0.4 and attempting to retrieve values via an API and store them to a modx session variable. It's a user login. Once login credentials are sent the next page calls print_r($_SESSION); However, an empty array is printed. If I…
mcmonty
  • 83
  • 1
  • 9
1
vote
3 answers

jquery accordion jump and open to a specific section

i use jquery + jquerui in modx and the accordion. I wan't to have a horizontal menu on the top where I can jump (scroll) to the section (which opens). How would I achieve this. Right now my js looks like this: / Accordion …
Johannes
  • 337
  • 1
  • 4
  • 17
1
vote
5 answers

curl php download script works fine in browser but fails in cronjobs

I write curl php script which work is download csv file from one website after succesfully loged in. It works fine when i start it in my browser but it fails when i put it on cron jobs list. I seen memory exhausted error in my log once, so i guess…
electroid
  • 603
  • 8
  • 20
1
vote
1 answer

modx - display php errors

I am trying to upgrade modx from version 2.0 to 2.2 but I all I see is an empty homepage and no error messages. I receive nothing in the error logs, is there a way to turn on php errors (I already have display_errors set, and error_reporting to…
Mark Willis
  • 1,711
  • 1
  • 14
  • 23
1
vote
2 answers

PHP sort an array by lastname separated by whitespace in modx

I have a mysql table that looks like this: id author public image1 image2 image3 bio media1 media2 media3 media4 media5 media6 The Field "author" normaly has Firstname (Secondname) Lastname seperated by whitespaces. How can I sort the array after…
Johannes
  • 337
  • 1
  • 4
  • 17
1
vote
4 answers

modx create layout with chunk and call with template

I'm using modx revolution. I'd like to create a chunk called layout that calls other chucks example Head header nav body footer then in my template do something like //open layout tag[[$layout]] [[$layout]]//close layout tag. then inside of the the…
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
1
vote
1 answer

MODX Gallery: how to get the number of images in a folder?

I use MODx Revolution ver.2.20 with Gallery module ver.1.4.0. So, I need to get the number of images in a folder. I googled it, but I didn't find any working solution. How can I get it? Thanks. Ok, this is the solution. Snippet call…
Nixon
  • 83
  • 1
  • 9
1
vote
1 answer

how to upload images without reloading page in modx revolution

How to upload images in web context (frontend) without reloading the page in modx revolution? I am trying to use fileupload extra for uploading images but it is reloading the page. Can anyone help me, please?
Satya Teja
  • 616
  • 6
  • 18
1
vote
2 answers

ModX - main resources for different contexts

I started using ModX yesterday. Prepared my multilingual website using this tutorial: http://www.multilingual-modx.com/blog/2011/multilingual-websites-with-modx-and-babel.html. Everything works perfectly. I have two contexts: web (domain.com -…
DaveW
  • 297
  • 1
  • 5
  • 17
1
vote
3 answers

is it possible to redirect a link to a pdf file

is it possible to redirect a link to a pdf file? This is my site: www.mysite.com And I createad a redirect link that if I open www.mysite.com/documentation - an index.html file will open but for now this index.html file says it's under…
tintincutes
  • 5,618
  • 25
  • 67
  • 86