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

How to support actuality of MySQL tables with Mercurial?

I use MODx, a CMF, and it stores all templates, snippets and user code in some MySQL tables. It makes usage of Mercurial for these projects very tiresome. Import/export of mysql dumps takes a lot of time. So, is there an approach to avoid it?
Argnist
  • 535
  • 1
  • 5
  • 18
3
votes
1 answer

Programatically retrieve TVs assigned to a MODX Resource by a given ID

I'm rather new to MODX. I'm passing in a resource ID, and with that, I'd like to programatically retrieve any custom TVs used by a given resource along with its value. Here's where I've gotten so far: $resourceId = 1; $resource =…
dBdx
  • 61
  • 4
3
votes
2 answers

How to pass is_uploaded_file check in php?

I am uploading file to tmp folder from external file using php code(not from user post request), then fill $_FILES with information for that file and pass it to code that uses $_FILES variable. But inside that code, it uses move_uploaded_file, that…
maxpovver
  • 1,580
  • 14
  • 25
3
votes
3 answers

ModX Revo: Query Multiple TVs?

I'm moving a site to ModX Revolution and have no experience with xPDO. The site I'm moving has a search feature that looks through a few TVs assigned to some resources and returns the applicable pages. I'm having trouble incorporating this using…
Vecta
  • 2,312
  • 5
  • 28
  • 47
3
votes
2 answers

How to use the Modx Revolution API

I have a client who is looking at having some other company develop an iPad application that will pull resources out of their existing modx instance. [no - I don't know why it needs to be an app.... ] They are looking to use the Modx API, which…
Sean Kimball
  • 4,506
  • 9
  • 42
  • 73
2
votes
1 answer

ModX Revolution doesn't switch context

I'm using modX Revo with plugins Login and Babel. As there was wrote at Babel manual I made 2 contexts for two languages, used TV params and wrote contextSwitch plugin. It is mostly like plugin from example at the manual. After that I put plugin on…
Ist
  • 23
  • 1
  • 10
2
votes
1 answer

MODX: Show "read more" just when the content is longer than ellipsis=`400` (for example)

I have tried coding a Modx Blog, and everything is working fine, but I want to display a "read more" button only if the content is longer than the ellipsis. The Problem is: The Content is mixed, so there are a few short announcements of about 200…
joe8
  • 97
  • 2
  • 11
2
votes
3 answers

Call Snippet From Jquery/Ajax MODx

I have a select element that does a post using jQuery on a change event, I was trying to post it to a snippet and get the results back, however it seems that if the snippet is called directly from javascript there will be no notion of the ($modx)…
Yehia A.Salam
  • 1,987
  • 7
  • 44
  • 93
2
votes
1 answer

Database conversion from latin1 to utf8mb4, what about indexes?

I noticed that my MODX database still uses latin1 character set in the database and in its tables. I would like to convert them to utf8mb4 and update collations accordingly. Not totally sure how I should do this. Is this correct? I alter every…
2
votes
1 answer

Clearing cached system settings on modx revolution

I have a snippet that updates some system settings by updating and saving modSystemSetting objects. I noticed that old settings are still coming from the cache. Clearing the cache works: $cacheManager =…
2
votes
2 answers

Modx vs Yii as an application framework

I am developing a mobile web application (with jQuery mobile) with a lot of application logic required (mainly database access) and with the necessity of creating it as flexible as possible (I am following OO PHP with ORM). Through a lot of…
louisfigo
  • 61
  • 1
  • 3
2
votes
1 answer

Existing MODX lazy loading

I have a website and customer want to optimize it a bit so, is there any easy ways to make it through MODX plugin or snippet? I tried to do it manually but it always take a lot of time. Found no ways in internet. How can I achieve this?
Mateech
  • 1,010
  • 1
  • 11
  • 26
2
votes
2 answers

Why does my simple "if" not work? PHP

So, I'm trying to do something pretty simple: to check if a number equals another number - but for some reason it just doesn't want to work. $exhibitions = "20,21,24"; $parent = "[[*parent]]"; $id = "[[*id]]"; if ($id == 5) { $chunk =…
Erica
  • 111
  • 1
  • 9
2
votes
1 answer

MODx :: WebLogin snippet :: check if logged in, redirect to page x

I am having a small issue using the classic WebLogin snippet (Not WebLoginPE) in MODx. Quick example of what's going on: User logs in via page ID 3. Upon a successful log in, they are sent automatically to page ID 11. Now currently, if the user…
Mr Pablo
  • 4,109
  • 8
  • 51
  • 104
2
votes
6 answers

modx revolution slow backend

Has anyone come up with a way to speed up the backend in modx? I was thinking that creating a set of pages in modx with admin privileges to modify the site content, so that it looks customized, works in IE and is not slow. Any thoughts on this?
Daniel
  • 34,125
  • 17
  • 102
  • 150
1
2
3
69 70