Questions tagged [modx-revolution]

An open source content management framework based on PHP & MySQL. Modx does offer an Enterprise level distribution that also incorporates Apache SOLR.

ModX Revolution is the second generation in the ModX series of Content Management Platforms (CMP). In contrast to other Content Management Systems, ModX attempts to streamline the web development process by logically separating HTML, CSS, PHP into a variety of logical objects. The result is the ability to quickly development a wide range of web-sites from simple content providers to full-scale web-based applications.

604 questions
2
votes
3 answers

php PHPSESSID exists but session destroyed

I am trying to login an user for 2 weeks if user login with remember me check then i have set some variables in session and cookie set for 2 weeks. It is set correctly i have printed it and got the value session_cookie_lifetime = 1209600 and…
Awlad Liton
  • 9,366
  • 2
  • 27
  • 53
2
votes
5 answers

Output modifier on modx placeholder is not working

I have this code in a template [[+isShowMore:is=`1`:then=`show more`:else=`no`]] It is printing no. But it should show show more as placeholder isShowMore is set to 1 by this line of code in a snippet. $modx->setPlaceHolder('isShowMore', 1); Also…
chanchal118
  • 3,551
  • 2
  • 26
  • 52
2
votes
3 answers

New install of ModX Revo 2.2.10 - Get 'Unexpected token <:' on every manager page

I've just installed Revo 2.2.10. Whenever I open a new page in manager I get a pop up box saying Unexpected token <: Would anyone know what this means and what I can do to fix it? (Ive installed ModX in a subdirecty, but am not using FURLs yet if…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
3 answers

Anchor tags not working in CMS (ModX)

I am using the latest ModX Revolution CMS which has both a dynamically created menu and content. I have my menu set up as such: About Us And, in my content:

About us

But upon…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
3 answers

MODX empty dashboard

I'm using MODX the first time and it all worked since yesterday. I didn't change anything and the dashboard and the package manager worked without any problems but since yesterday I couldn't see the dashboard itself, just the top navigation menu in…
David
  • 560
  • 2
  • 10
  • 26
2
votes
1 answer

$modx->query doesn't seem to execute

As per the documentation here: http://rtfm.modx.com/display/xPDO20/xPDO.query Which shows the following as an example: $result = $modx->query("SELECT * FROM modx_users WHERE id=1"); if (!is_object($result)) { return 'No result!'; } I would…
ahren
  • 16,803
  • 5
  • 50
  • 70
2
votes
2 answers

My FormIt hook gets cached and it's screwing up every run after the 1st

I have the following snippet code hooked up to a FormIt email form: $tv = "taken" . (int)$hook->getValue('datetime'); $docID = $modx->resource->get('id'); //get the page id $page = $modx->getObject('modResource', $docID); $current =…
kotekzot
  • 1,518
  • 1
  • 14
  • 23
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
2 answers

access denied with mysql database

I want to install a CMS, first time I tried to install "Silver Stripe CMS" but the installation hangs at the database it shows me this error: I couldn't find a database server on 'localhost': Access denied for user 'root'@'localhost' (using…
tmedtcom
  • 169
  • 4
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
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 2
3
40 41