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
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Aliases conflict with cultureKey contexts

the problem is that if the alias on any of the contexts starts with de, for example development-of-documentation, I am taken to the 404 page of the German context. I realize that the de key is the ...
Lost Svan's user avatar
0 votes
2 answers
16 views

Tracking the date of a resource's major changes on MODX3

MODX provides fields for tracking content changes: "editedon" and "publishedon". Publishedon contains the date and time when the resource was published. Editedon updates whenever I ...
Niko Suominen's user avatar
0 votes
1 answer
11 views

When sending a link in the messenger, the preview is displayed in only one language

When sending a link to the messenger, the preview is generated in one language, regardless of the selected language on the site. The code works correctly, in the developer panel the meta description ...
Lost Svan's user avatar
0 votes
1 answer
6k views

After the redirect I get the page: Site 'xxx' has redirected too many times

This is essentially the same page, I just need to redirect from a url that uses the GET parameter to a url without this parameter. RewriteCond %{QUERY_STRING} ^category=([^&]+)&key=news-...
Lost Svan's user avatar
0 votes
0 answers
16 views

When a client leaves a request,he receives an automatic response,and regardless of what language the form is in,he sends the EN version of the letter

When a client leaves a request, he receives an automatic response, and regardless of what language the form is in (there are several languages ​​on the site), he sends the EN version of the letter ...
Lost Svan's user avatar
0 votes
0 answers
30 views

I need to get the TV field of the child resource

To get the parent TV field, I use the following syntax [[*ceo_comment]] (which is logical). After the information I found, I came to the conclusion that it might be logical to use the following syntax:...
Lost Svan's user avatar
1 vote
1 answer
44 views

It is necessary to implement the link so that the English version don't have the prefix /en/

There are 3 versions of the site: Spanish, Ukrainian and English, it is necessary to implement this in such a way that the English version does not have the /en/ prefix It should be something like ...
Lost Svan's user avatar
1 vote
1 answer
53 views

Modx. When I try to compress an image for mobile phones using pThumb, nothing happens

I recently started working with Modx and immediately a problem appeared: when I try to compress an image for mobile phones using pThumb, nothing happens. Here is my code: [[!getImageList? &...
Lost Svan's user avatar
1 vote
0 answers
39 views

MODX, curl and the anonymous sessions

Mainly my problem is that when I make a request with cURL including session cookie with random value the modx session starts with the value of that cookie. Which is confusing me a lot. modx session ...
user1398498's user avatar
0 votes
1 answer
63 views

Displaying the latest topics with the first post from the forum to the website

There is a code that displays the latest topics from the xenforo forum on the modx site, but you still need to display the message of the first post. $sql = 'SELECT thread_id,title,node_id,...
Павел Заморин's user avatar
-1 votes
1 answer
785 views

How can I filter multiple field using checkbox and HTMX?

I have been learning HTMX to combine with MODX CMS, Tailwind and AlpineJS (my weapons of choice) and have gotten a nice HTMX based product filter now. Dev front-end of product page with HTMX, MODX CMS ...
Menno Pietersen's user avatar
0 votes
1 answer
62 views

Upload permission modx

I have a site on modx. I'm trying to implement uploading files from a website page to a server directory. I get a 403 Forbidden error when uploading. I already set the rights to the directory 777 755 ...
Zarumix's user avatar
0 votes
0 answers
45 views

Sort gallery modx

I have albums in modx. I need the images in the album to be sorted by the number in the file name. For example 1-azam, 2-azam..34-azam. How to sort before passing to chunk? I specified the fields sort ...
Zarumix's user avatar
0 votes
1 answer
58 views

modx migx. How to start idx from 6?

I need the numbering of idx to start from 6 instead of 1. How can I achieve this? It's my code: <div class="pp-quote li-quote-[[+idx]]" data-textquote="quote-text-[[+idx]]"> ...
Галина Высоцкая's user avatar
0 votes
1 answer
47 views

MODX3 Manager language setting

I have a minor but annoying challenge. When I log in to MODX3 Manager, it chooses the Finnish language based on my browser setting. That would be otherwise ok, but not everything is translated to ...
Niko Suominen's user avatar
0 votes
1 answer
42 views

Sum objects in array by the key of month

In ModX (which uses xPDO for queries), I have a custom snippet used to build an array with key of 'publishedon' date, and value of a template variable called 'pnl'. If you're not familiar with ModX, ...
jivers's user avatar
  • 930
1 vote
1 answer
150 views

Include CSS and Javascript in specific Modx page

I am trying to include a very simple snippet of CSS and JavaScript to a Modx page that lists recent newsletters from MailChimp: <style type="text/css"> .display_archive {font-family: ...
Bijan's user avatar
  • 7,998
0 votes
0 answers
33 views

MODX SimpleSearch uses always the default container

I am using SimpleSearch with the default containerTpl setting (=SearchResults). It seems that SimpleSearch uses the chunk from core/components/simplesearch/elements/chunks and not my SearchResults ...
Niko Suominen's user avatar
0 votes
2 answers
69 views

Cache clearing fails in MODX3.0.2

When I try to clear the cache from Manager or from a snippet on MODX3.0.2, MODX does not empty the folders under core/cache/resource/ and the cache won't be cleared. I traced the problem to ...
Niko Suominen's user avatar
0 votes
2 answers
119 views

Managing MODX Resources and Elements from code editor

I'm importing my plain HTML/CSS website to MODX. I made all of the Elements static, so I can edit them from VS Code + SFTP plugin. But I still have to use MODX Manager to create or delete new Elements....
Max's user avatar
  • 93
0 votes
1 answer
103 views

how to automatically save changes to modx made through the database?

I added resources via phpmyadmin to the site_content table in database. These resources are displayed in the modx resource tree. But they don’'t have an alias. It appears automatically only after I ...
Serj's user avatar
  • 27
0 votes
1 answer
45 views

Is there any way in modx that will automate the writing of relative paths?

I have a lot of pages and I need to write paths to js and css styles on all of them. The "js" and "css" folders are stored in the Filesystem. The problem is that the higher the ...
Serj's user avatar
  • 27
0 votes
0 answers
39 views

Is it possible to import html files throught phpmyadmin into templates table in database?

I have more than 300 html files which must become templates in modx. I don’t want to import them manually one by one. Is it possible to import this files through phpmyadmin into templates table in ...
Serj's user avatar
  • 27
0 votes
1 answer
86 views

MODX SimpleSearch vs. AdvSearch

I planned to implement a search function on my site. I tested both SimpleSearch and AdvSearch. SimpleSearch was easy to take in use but I was not able to get AdvSearch working in the ajax mode but ...
Niko Suominen's user avatar
0 votes
1 answer
186 views

Why does the redirect to page 404 in MODX not work?

I have correctly configured the resource id in the "site" section in the system settings. But when I enter a mysite/ non-existentaddress in the browser, instead of a redirect to 404, a ...
Serj's user avatar
  • 27
0 votes
1 answer
74 views

Increment in foreach does not increase

MODX version 2.8.4. PHP version 7.3.33. There is a snippet: <?php $docId = $modx->getOption('docId', $scriptProperties, ''); $tmplvarids = array( 1 => 11 ); $...
Roman Sobol's user avatar
0 votes
0 answers
61 views

Sessions variables do not always keep their values

I set a few session variables in a prehook of Quip Extra in MODX2.8. $_SESSION["name"] = value After Quip redirects to the next page, I read those variables in another snippet. Sometimes the ...
Niko Suominen's user avatar
0 votes
2 answers
93 views

How to configure Wayfinder (MODx) for Bootstrap 5 Dropdown-Menu

how do I have to configure the "Wayfinder" in MODx to get a Bootstrap 5 output. specifically for the "Dropdown Submenue". <div class="collapse navbar-collapse" id=&...
Christian Türling's user avatar
0 votes
1 answer
67 views

Caching an Array in ModX

I had the Problem that I had two snippets one must be called uncached and in this I needed to retrieve an array that is generated in another snippet that must be called cached. Caching the array is ...
benni's user avatar
  • 21
0 votes
2 answers
113 views

Modx change mime type for images

have uploaded a webp image to my MODX website. seobility shows me that the content or mime type is missing. but i can't edit the html code of the image. thanks a lot in advance
Manfred Knöbel's user avatar
1 vote
0 answers
67 views

Dependent filters JS

I set up dependent filters mFilter (from the mSearch2 Modx component). There is a script that works fine, provided that the product card has the option brand (Ford) and model (Ford Galaxy). That is, ...
Дмитрий Авакьян's user avatar
0 votes
1 answer
60 views

Add an custom link to the MODX Evolution DLmenu

I'm trying to add a custom link to the menu on MODX Evolution by using DLMenu snippet. Menu displays pages, and after the second point I need to add an anchor link on the main page ... is it possible ...
Alexey's user avatar
  • 1
0 votes
1 answer
48 views

Why can't I save Chunks that contain links to CDNs?

I have a Chunk for my header. In it I have several links to CDNs like Bootstrap, eg: All of a sudden I can no longer save updates to this Chunk. Same issue with copying the contents to a new Chunk. ...
MeltingDog's user avatar
  • 14.9k
0 votes
1 answer
142 views

Listing MODX Articles with at least one common tag

Is it possible to use the getResources snippet to find related articles that have at least one common tag with the active resource? [[getResources? &parents=`xxx, xxx` &...
Niko Suominen's user avatar
0 votes
1 answer
102 views

Search by date MODX REVO

How do I filter records by date? I have the value 1639082700 which is equal to 2021-12-09 23:45:00. I need to find all data for 2021-12-09 which is equal to 1638997200.
small secret's user avatar
0 votes
0 answers
118 views

MODX Revo - ajax page reloads in modx

In Formit, it seems to show the sent forms, the letters are in the mailings, but ajax does not work, the page is reloaded. enter image description here Code template: enter image description here Code ...
Vasiliy's user avatar
0 votes
1 answer
287 views

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

I am using Evolution CMS (Modx) and have several functions declared (in snippets). Those functions I can include in Evo CMS by calling e.g. $modx->runSnippet('functions_main');. Now I have an ...
Avatar's user avatar
  • 15k
0 votes
2 answers
177 views

See pages in server,MODX

I am new to coding, trying MODX now.My problem is, I can't see the pages I made on cms back to my server. Is there something I haven't done in order to see them? Thanks in advance
anastasia_vhta's user avatar
-1 votes
1 answer
472 views

How to block access to the site directory through the browser?

Good afternoon, how to close the root of the project from sharing through the browser? directory visible How to make a message about unavailability when trying to go to the root of the site through a ...
AlexandrZalamay's user avatar
0 votes
1 answer
56 views

EXTJS - Modx: on('mouseenter') | event fire | no bubble

I have an element with an on('mouseenter') event handler attached. The problem is the event does not fire on the selected element if the response time that transition to a sub node element of the ...
Developer1's user avatar
0 votes
1 answer
53 views

How to add a new filter to MODX Minishop2 Orders

How to add a new filter to MODX Minishop2 orders Namely, filtering by orders from a certain restaurant chain of restaurants?enter image description here
Суалио Мейте's user avatar
0 votes
1 answer
47 views

Removing a menu item from Manager

After I tested and removed MODX extra Ticket, there is still a non-working menu entry ticket_menu_desc in the Extras menu. How could I remove it? Somehow, Ticket's uninstallation script didn't remove ...
Niko Suominen's user avatar
2 votes
1 answer
2k views

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 ...
Niko Suominen's user avatar
0 votes
2 answers
143 views

How to add a new category to content

I'm a complete Modx newbie and I'm trying to update an existing website. My goal is to add a new category to some pages as shown in the table below:
Faixsu's user avatar
  • 1
0 votes
1 answer
102 views

Changing mail_smtp_user in a MODX snippet

My problem is quite a simple but I am not sure what is the best solution. I wish to send an email from a MODX snippet with different account/pass that is stored in MODX settings. In other words, ...
Niko Suominen's user avatar
0 votes
1 answer
136 views

Query Join table to sort by menudindex

Here is my query: $results = $modx->query("SELECT contentid FROM modx_site_tmplvar_contentvalues WHERE tmplvarid=107"); I need to sort it by menuindex so i tried this: $results = $modx-&...
céline guillerm's user avatar
1 vote
0 answers
2k views

safari downloads the file instead of opening the page

Good afternoon, the site is on MODX, in all browsers except safari, everything is fine, when you open it in safari, a file with the name of the site is downloaded (I can't see the content, there is no ...
Leonid's user avatar
  • 11
0 votes
2 answers
81 views

getResources filter TV by date is not working

I’m trying to filter items based on their TV's date using a getResources call. If the event (eventStart), is greater or less than today. For upcoming events this works fine: &tvFilters=`eventStart&...
Ken's user avatar
  • 633
0 votes
1 answer
206 views

Post using modRestController Class at MODX

I am developing a modx RESTful API. I would like to ask, if anyone knows how to post directly from browser to modRestController class and finally with this post I can save the information to the ...
Andres Perez's user avatar
0 votes
1 answer
124 views

Dynamic placeHolders

I would like ask, if anyone knows how can I make a dynamic placeholders using an array. Basically I have this structure, and need to create a placeholders where the "name" has the "...
Andres Perez's user avatar

1
2 3 4 5
21