modx

Extjs - how can I add subtotal/summary for each Grid Grouping row?

耗尽温柔 提交于 2019-12-22 18:19:34
问题 Using an ExtJS 3.4 grid, how can I achieve the neat sub-total row under every Grouped section as in the following example: http://dev.sencha.com/playpen/gxt/totals/ I'm unable to upgrade as 3.4 is the version used by the CMS I use (MODX). 回答1: Never mind, the same example is given for 3.4: http://dev.sencha.com/deploy/ext-3.4.0/examples/grid/totals.html 来源: https://stackoverflow.com/questions/10908120/extjs-how-can-i-add-subtotal-summary-for-each-grid-grouping-row

Move modx site from subfolder to root folder

别来无恙 提交于 2019-12-13 12:22:57
问题 I have an MODX site running on the shared server in the root folder (i.e. public/www/). I also have an MODX testing site running in the subfolder (public/www/modxtest). I want to move this testing site into the root in a way that the modx site in root folder is not affectetd until the end of migration. I haven't touched MODX before and do not know the migration procedure. One way of doing that may be using htaccess file and redirect the request to the root MODX site to the subfolder MODX site

Apache spawning zombie processes when php is called

那年仲夏 提交于 2019-12-12 09:57:30
问题 I have a site which has been built in modx and when its hit with load uses up all cpu processing power and top is showing a lot of defunct php zombie processes consuming this. Here's the system specs... PHP 5.2.14 php running as suPHP Mysql 5.1.51 Apache 2.0.63 modx 1.0.4 For testing im using ApacheBench and simulating 500 connections with 100 concurrent connections I've tested this out 2 ways now... Turning off .htaccess and stress testing a simple php page that just echoes 'Hello world'. In

modx revo friendly urls

落花浮王杯 提交于 2019-12-12 04:39:51
问题 Just started to use MODX Revo. When I make new document in MODX(Revo), fill its alias (for example ' TESTALIAS ') and trying to get mydomain/TESTALIAS I'm receiving mistake 404 . Using nginx and php-fpm, FURLs are ON in .htaccess So what am I doing wrong? Thank you very much 回答1: If you have built the site, browsed around a bit and THEN turned on furls, clear your modx cache. [actually delete all the files] Also make sure that not only furls are enabled in modx but that: Use Friendly Alias

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 :: Get Session ID set by MODx to use in Module

余生颓废 提交于 2019-12-12 01:08:49
问题 I have an issue where I need to pass the Session ID to a module, "SMF Connector". The problem stems from the fact that for some reason the SMF Forum (held in a sub-folder) is using a different Session set. I combatted the problem by hard coding the Session ID from MODx, but of course this then failed the next time I loaded up the site a day later. I have tried using global $modx; $SID = $modx->documentObject[SID]; session_id($SID); session_start(); But to no avail, infact it was stopping the

How to repair this issue when i click on result link in modx ajaxSearch?

六月ゝ 毕业季﹏ 提交于 2019-12-11 15:12:35
问题 I used ajaxSearch on this site: http://www.rhemapress.pl/www_poradnia/ and when I type something, e.g: czwarta or wspomaganie then when i clicked on one of return links then it redirect me to this document but on end of this link is something like this: &searched=wspomaganie&advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1 and i've got this error after I clicked. MODx encountered the following error while attempting to parse the requested resource: htmlentities()

Install PDO on OS X Leopard

吃可爱长大的小学妹 提交于 2019-12-11 09:50:17
问题 What's the easiest way to install PDO on the default php installation of OS X Leopard? I'm trying to get ModX running. 回答1: It can be a hassle to build PHP extensions with the Leopard default PHP. If you are just doing development work, look into MAMP, which has a whole bunch of extensions (including PDO for MySQL and PostgreSQL) built-in. It includes its own copy of Apache so you won’t be using the OS X default Apache. Don’t worry, there’s no installation needed. A second option is Mark

PHP sort an array by lastname separated by whitespace in modx

我的未来我决定 提交于 2019-12-11 05:08:42
问题 I have a mysql table that looks like this: id author public image1 image2 image3 bio media1 media2 media3 media4 media5 media6 The Field "author" normaly has Firstname (Secondname) Lastname seperated by whitespaces. How can I sort the array after the Lastname and if just one name is present after this one. This is the modx query I use to sort after the author but obviously it doesn't use the lastname. $c = $modx->newQuery('AuthorDe'); $c->sortby('author','ASC'); $authors = $modx-