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

ModX TV parameter doesn't display in snippet

I have created a TV parameter representing a DropDownList Menu. But when I call it in a snippet via Modx API It doesn't display at all. here's the TV I made a here is how I call it $name=$buf['title'].' ( цвет: '.$modx->documentObject['material'].'…
Vit Kos
  • 5,535
  • 5
  • 44
  • 58
0
votes
1 answer

ModX - embedded iframe disappears

I have a YouTube video embedded on a page in ModX. To place it, on the Page I switch TinyMCE off to reveal the HTML code then paste the iframe in. That works Ok but when I go back to edit something else in HTML mode the iframe code…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

MODx Revolution - Timeout happens every minutes causing logout

Setup: MODX Revolution 2.2.4-pl (traditional) Hosting: HostGator Shared Linux server Problem: After I have logged into the CMS, when I go to make changes to a resource, snippet or any other facet of the site, regardless of how long it took (10…
Brant
  • 1,764
  • 11
  • 18
0
votes
1 answer

modx 1.05 - how to remove new lines on Ditto's call

when I'm calling in the item tpl a piece of content by:

[+content:len:gt=`100`:then=`[+content:character_limit=`100`+]`:else=`[+content+]`+]

there are new-lines (BR or \n\r) from tinymce. I want to remove them - how can I do that?
quardas
  • 651
  • 3
  • 10
  • 23
0
votes
2 answers

MODx emails not working

On my server, sending emails with MODx (version 2.2) fails. It would probably work with SMTP, but in principle it should work without SMTP as well, since scripts like the one below work. Script:
speendo
  • 13,045
  • 22
  • 71
  • 107
0
votes
2 answers

Install modx in a subfolder

I like my webspace tidy :) Therefore if my root-folder is html/ I would like to install modx (version 2.2) in the subdirectory html/modx/ For my website-visitors everything should be the same as if I would have installed modx in the root folder…
speendo
  • 13,045
  • 22
  • 71
  • 107
0
votes
1 answer

ModX: Display multiple pages on one page -How to implement

I understand I am meant to use Ditto to do this but am unsure where to go from there. Currently, I have a Template with all my TVs on it along with several pages using the template that are stored under a parent. The Ditto code I am using…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

save variables to session with jquery/ajax - MODX Revolution

I have 2 options user can change on page made in modx rev 2.2.0 * background * font-size To change background and font size i used jquery, so i think the best way would be use ajax. So i would have to create 1/2 pages which add those variables to…
miszczu
  • 1,179
  • 4
  • 19
  • 39
0
votes
1 answer

Modx Revolution can't find its CSS files?

Here's an odd one: I just installed ModX Revolution 2.2.4 and all went well, but in the back end its like the css file is missing - it either loads just some of the page, or the whole page with no CSS. In my browser console it says it cannot find…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
2 answers

ModX Evolution - display multiple resources on one page

I am trying to display multiple resources on one page in Evolution. Normally, I would use getResources in Revolution but this is not working for me this time round. I was wondering if anyone knew of an alternative? Thanks
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
2 answers

getResources for ModX Evolution?

Does anyone know if getResources works for ModX Evolution? I've been trying to get it working for a while now with no success. If there is no way to get it working, does anyone know of an equivalent way to get multiple resources to show on the one…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

nice urls in modx rev - getting 403

I get 403 error after i turn on nice url in settings. Here is my htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] Settings are set the…
miszczu
  • 1,179
  • 4
  • 19
  • 39
0
votes
3 answers

MODx querying custom db table

See the code below. I'm trying to get some data from a database is modx. The data is there, meaning, when i query the database in phpmyadmin, i get results. I can't figure out why it doesnt work in modx. $sql = 'SELECT * FROM orders ORDER BY…
Meddie
  • 571
  • 1
  • 7
  • 22
0
votes
2 answers

modx: how can I add different manager languages for different users?

Is there an easy way to have the language of the modx backend interface (manager) on a per user basis? e.g. admin sees the backend in english, user 1 sees it in french, user2 in italian. the only thing I could find so far was a global setting in…
clem
  • 3,345
  • 1
  • 22
  • 33
0
votes
2 answers

ModX: Using GetResources to display multiple pages in one page

I am trying to use getResources to display multiple resources withing one resource, including their Templates and TVs. The code I have in the page I want to display them is: [[!getResources? &parents=`50` &sortdir=`ASC` &sortby=`menuindex`…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295