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
0
votes
2 answers

MODX: frontend xml export

I need some guidence in how to make an frontend xml export of resources. I use getresources to show resources with title, image, and some info data (like blog). In one page I show about 15 resources. I would like to export this page with resources…
Denis
  • 11
  • 1
  • 4
0
votes
2 answers

MODX getChunk alternative

I'm looking for MODX getChunk() alternative mostly because it seems to be really slow when outputting a lot of times. When I use it once in a snippet then I could hardly notice its speed, but if it's used in a loop then each second matters. I'm…
jacek_podwysocki
  • 807
  • 10
  • 30
0
votes
1 answer

ModX Evo: PHP readfile() in snippet?

I have a script that downloads a large file (1.3gb) using readfile(). If I create a .php page with just the script on it it works fine, but if I place the same script in a Snippet and place it on a page nothing happens. Is ModX blocking the download…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

ExtJS How to count the total amount of a variable that was pulled by the script

Basically I have website designed by someone else and I really dont understand ExtJS. I was wondering if anyone can help me. Basically what I need to do is to put the total amount of "Names" pulled by the script and place it next to the "Name"…
Jonathan Thurft
  • 4,087
  • 7
  • 47
  • 78
0
votes
3 answers

How to use base url in Modex CMS developing?

I have been developing my first Modex project, and now I've copied downloaded template into "assets/templates/site" and fixed all links + added base_url into header, result code:
malcoauri
  • 11,904
  • 28
  • 82
  • 137
0
votes
3 answers

modx - can't change suffix for html

I have just installed the latest modx revo an my server. I also turned on SEO friendly URL. My pages are now /page/subpage.html Wanted to turn off the .html suffix but all the time a change it (no matter what I enter .htm / or empty) it'll show up…
suntrop
  • 775
  • 3
  • 10
  • 24
0
votes
1 answer

Modx plugin caching

Working on a MODx Revo based site and trying to write a simlpe plugin (inspired by 'template switcher plugin written in the past for Evo). Below is the code if (isset($_GET['template'])) { $template_id=$_GET['template']; …
vault-boy
  • 523
  • 1
  • 6
  • 18
0
votes
2 answers

Pagination [+next+] not working on MODx CMS template

I'm having difficulty getting the pagination functionality working with [[Ditto? ... ]] in MODx CMS. I have the documents displaying in the page, limit is set to 5. The output from my other pagination template placeholders seem to be working but the…
Chris
  • 882
  • 1
  • 10
  • 22
0
votes
4 answers

ModX and PDO: querying with PHP variables

I am new to PDO and have the follow code which recieves 2 PHP vars from a form and uses them in a query: $loginemail = $_REQUEST['loginemail'] ; $loginpassword = $_REQUEST['loginpassword'] ; $logincheck = "SELECT * FROM `ft_gameusers` WHERE `email`…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
3 answers

ModX Revo: friendly URLs not working

This seems to be a common issue but I have tried all the suggestions and none work. The issue is when I turn on Friendly URLs in ModX Revo all my links get broken (404s). The URLS do appear correct with the alias after them. Heres what I've…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

MODX Gallery thumb encryption

Does anyone know how to encrypt the following url holding values for phpThumb implemented in MODX so that it is stil readable to phpThumb extension? As an example, the url for generated image looks like…
jacek_podwysocki
  • 807
  • 10
  • 30
0
votes
1 answer

MODX getResources with Google maps infowindows

I am populating a Google Map with the following code: