modx-revolution

Can I manage my CSS as ModX Resources?

醉酒当歌 提交于 2020-01-11 04:18:07
问题 I've been working with the ModX Revolution manager, and was wondering if I can turn my CSS into ModX Resources rather than files. I'd also like to utilize Templates and their variables. Is that possible? What are the drawbacks of doing so? Are there any advantages (aside from the ones I think below)? The reason I would prefer this is that I use several CSS pages with the @import statement to object orient my CSS a little bit better. If I could do this directly in ModX, it would save me

Configuring MODx Revolution to work with both http and https

☆樱花仙子☆ 提交于 2020-01-02 19:13:23
问题 I have a website using MODx Revolution (2.2.10-pl, advanced install), let's call it www.example.com , which I want to be accessible with both http and https. to achieve this, I tweaked the site_url context setting to be [[++url_scheme]]www.example.com/ . Links created using [[~id]] seem to be alright, however, sometimes, the generated links are really weird. My interpretation is that the code to create links programmatically doesn't work with my settings, but I don't know why, or how else I

Filter resources by template variable value with MODx Wayfinder

a 夏天 提交于 2019-12-25 03:54:28
问题 I have a site that uses Wayfinder to display the latest 3 entries from an Articles blog. Now, I want to only consider those blog entries that are tagged Highlights . My original Wayfinder call looks like this, nothing spectacular: [[!Wayfinder? &startId=`296` &level=`1` &outerTpl=`emptyTpl` &innerTpl=`` &rowTpl=`thumbnails_formatter` &ignoreHidden=`1` &sortBy=`menuindex` &sortOrder=`DESC` &limit=`3` &cacheResults=`0` ]] as Articles tags are managed via the articlestags TV, I thought that a

Filter resources by template variable value with MODx Wayfinder

拈花ヽ惹草 提交于 2019-12-25 03:54:06
问题 I have a site that uses Wayfinder to display the latest 3 entries from an Articles blog. Now, I want to only consider those blog entries that are tagged Highlights . My original Wayfinder call looks like this, nothing spectacular: [[!Wayfinder? &startId=`296` &level=`1` &outerTpl=`emptyTpl` &innerTpl=`` &rowTpl=`thumbnails_formatter` &ignoreHidden=`1` &sortBy=`menuindex` &sortOrder=`DESC` &limit=`3` &cacheResults=`0` ]] as Articles tags are managed via the articlestags TV, I thought that a

ModX Revo: friendly URLs not working

一笑奈何 提交于 2019-12-23 05:09:30
问题 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 tried: Changing ht.access to .htaccess Ensuring the correct path is present in MODX_BASE_PATH in the confic.inc.php file Ensuring all FURL settings in System Settings are ok and correct Clearing browser and ModX caches If anyone can suggest something I've

Friendly URL in MODX redirects to home page

空扰寡人 提交于 2019-12-13 11:27:32
问题 I'm trying to use the User-Friendly-URL feature of MODX Revolution v2.2.14-pl (sdk) to eliminate the .html extension from the URL. An already clean URL redirects to the home page rather than showing the correct page. Why does the first URL redirect to the home page? /modx_revolution/zwei/ shows 'Home' page /modx_revolution/zwei.html shows correct page I've read that until the MODX and Browser caches are emptied the changed pages can only be viewed with the Preview function, which gives the

How can I use multiple operands in an if condition (ModX)

为君一笑 提交于 2019-12-12 04:06:12
问题 I am using the if-extra for ModX. Is it possible to use mutliple operands, meaning write this code in a shorter way: [[!If? &subject=`[[!getUrlParam? &name=`id`]]` &operator=`EQ` &operand=`1` &then=`do something` ]] [[!If? &subject=`[[!getUrlParam? &name=`id`]]` &operator=`EQ` &operand=`2` &then=`do something` ]] [[!If? &subject=`[[!getUrlParam? &name=`id`]]` &operator=`EQ` &operand=`3` &then=`do something` ]] Couldn't find a way to do it. 回答1: Try https://modx.com/extras/package/switch extra

How would WP plugins need to be recoded in order to work on Modx?

两盒软妹~` 提交于 2019-12-12 03:47:21
问题 Lets say, I want an affiliate plugin that I bought for WP to work on Modx. What are the procedures to follow? Yes, you can assume that all the plugins I bought use php, javascript, and jquery. 回答1: You need to refactoring your plugin to modx snippets and chunks - http://www.cmslesstraveled.com/index/tutorials/refactoring-a-simple-php-application-for-modx.html 回答2: You can use internal Wordpress functions by including this file include_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php' ); You can

ModX Revo: Update sites base URL?

丶灬走出姿态 提交于 2019-12-10 09:23:48
问题 I developed a site for a client before a domain name was chosen. As a result, the URLs for the site pages look like: http://host.mynost.net/~tempname/index.php?id=8 A domain name has now been purchased but if I click on any Wayfinder links it still uses the old path as above instead of, say: http://domainname.com/index.php?id=8 I assume this is configured in the config.inc.php file, but I am unsure of what to change. Can anyone point me in the right direction? Thanks! 回答1: You need to change