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
1 answer

How to create Dynamic Menu in Modx

I want to create a e-commerce in Modx CMS. I have create dynamically everything in Modx, but i am not able to create dynamic menu. How can i do this?
2
votes
2 answers

Apache spawning zombie processes when php is called

I have a site which has been built in modx and when its hit with load uses up all cpu processing power and top is showing a lot of defunct php zombie processes consuming this. Here's the system specs... PHP 5.2.14 php running as suPHP Mysql …
DMA
  • 21
  • 1
  • 4
2
votes
2 answers

Mod x Page not updating

I've created a snippet and included it on my template and when I make changes to the file it does not show. If I view the snippet it looks like it has changed This is my snippet (really simple): echo date(); This is my update: echo rand(0,…
Billy Jamieson
  • 33
  • 1
  • 1
  • 7
2
votes
1 answer

Create a Bootstrap menu with WayFinder

Trying to create a Bootstrap menu with WayFinder. How to finish it?
2
votes
1 answer

MODX Manager appears as a blank page after login

I've got a site thats been up for over a year. Today, however, I tried to login to the dashboard today and was presented with a blank screen. The login form appeared fine, but just redirected to a blank page. I've cleaned the cache manually and…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
1 answer

Strip_tags() expects parameter 1 to be string, array given

hopefully this is a quick and easy fix. I'm using Solr to search on my MODX site and am having some troubles with the PHP... I'm quite a noob when it comes to this stuff. Anyways, the error I'm getting is: PHP warning: strip_tags() expects parameter…
Matthew Meredith
  • 75
  • 1
  • 2
  • 10
2
votes
2 answers

How can I group my entries by TV with getResources (ModX)?

I have a getResources call, the result looks more or less like this: 01.01.2016 - new year's lunch (meetings) 11.12.2015 - writing class (classes) 01.12.2015 - trip to London (trips) 23.11.2015 - french class (classes) I can sort them by…
peace_love
  • 6,229
  • 11
  • 69
  • 157
2
votes
2 answers

MODx 500 error on install?

I have tried to install MODx on my new hosting, it uses PHP 5.5, but the problem is that i can not install any version, tried with latest, and even with 2.2, but no luck. Setup is working ok, but on final action in…
Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142
2
votes
2 answers

How to return the correct event name based on current time

Overview: Hi guys, I have a very small PHP script that's attempting to inform the browsing user what's currently playing on the web radio and when the next radio prayer will be streamed. The live prayer times are 5:00 AM - 6:00 AM, 12:00 PM - 1:30…
user546585
  • 129
  • 4
  • 9
2
votes
0 answers

How to write nginx config file to allow 3 languages switching.

From this example, it explains the way to write nginx config to switch the language between DE and EN. using Modx as CMS. However, I have 3 languages which are EN/DA/TH. Please guide me to the right approach of writing nginx config to change between…
mangajin
  • 23
  • 2
2
votes
1 answer

MODX: How to retrieve name of user who created resource?

I am using getResources to display blog entries. For each entry I want to display the name of the user who created the resource. I can retrieve their ID using placeholder [[+createdby]] but I don't know how to get their name. Does anyone know how to…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
1 answer

How to add second level filtering to filtered results using PHP, JS

I have a page on my site where a user can select boxes to return a query based on their selection. For example, my header looks like: _Burgers _Fries _Beverage _small _medium _large The first row is working great, if a user selects Burgers,…
Robert
  • 143
  • 14
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
2
votes
2 answers

Last insert ID with ModX PDO?

I am trying to get the ID of a last row I've inserted with a php/mysql query: $createjob = $modx->query($createjob); $lastId = $modx->lastInsertId(); but this does not seem to be working. Does any one know the correct way of doing this with ModX…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
2
votes
1 answer

Setting default value to user extended field in Modx

Basically I want the value of a TV (a.k.a. Template Variable) to default to the value of a user's extended field. I tried making a snippet named get_author with the following content: $user = $modx->getUser(); if (!$user) return ''; $profile =…
Wissej
  • 241
  • 3
  • 14
1 2
3
69 70