background preloader

MODx

Facebook Twitter

MODx-Feature: MODx API Cheat Sheet. // Print placeholders in HTML ?

MODx-Feature: MODx API Cheat Sheet

> [+placeholder_name+] <? // Run snippet $params['test']=1; $params['dummy']=2; $snippet=$modx->runSnippet('snippet_name', $params); // Run snippet in HTML ? > [[snippet_name? &test=`1` &dummy=`2`]] <? // Get chunk $chunk=$modx->getChunk('chunk_name'); // Print chunk in HTML ? // Parse chunks $params['test']=1; $params['dummy']=2; $chunk=$modx->parseChunk('chunk_name', $params, '[+', '+]'); Jako/multiTV at develop. ClipperCMS, Open Source PHP CMS, CMS for Designers, CMS for Developers. Hardening MODX Revolution - MODx Revolution 2.x - MODX Documentation. Welcome to the MODX Documentation.

Hardening MODX Revolution - MODx Revolution 2.x - MODX Documentation

It is an ongoing effort of the MODX community. If you would like to participate or if you notice any errors or missing content, please let us know. Overview Hardening any web application, including MODx Revolution, involves auditing all layers of your site, including your server, all of its services, and the application itself. Make no mistake: it's a war out there. Hardening is a huge topic, so this page seeks to help you identify what might be the most common attack vectors on your site and help you close them.

Everything but MODX There are many aspects to hardening that have nothing to do with MODX. Your Computer Using any version of Windows prior to Windows Vista is almost a death-wish. But don't be fooled: ANY operating system can be hacked. NEVER use a public computer: for all you know, that computer is logging every username and password you type. Your Connection If possible, use only wired connections (no Wifi). Your Server Passwords and Logins Backups. Date Formats - MODx Revolution 2.x. Welcome to the MODX Documentation.

Date Formats - MODx Revolution 2.x

It is an ongoing effort of the MODX community. If you would like to participate or if you notice any errors or missing content, please let us know. MODx is written in PHP, and as such, it relies on the underlying PHP date functions, e.g. strftime. The discussion here can get quite tricky because the strftime and strtotime functions deploy similar arguments, but they are not identical. Sorry for the confusion; date manipulation and formatting is more complex than it might at first seem. The discussion here relates primarily to the following content fields: createdondeletedoneditedonpublishedonunpub_date Common Examples.

It's not possible to give every possible example because date formatting can be complex, and it varies from region to region. All Parameters See Also FYI for those running on Windows from the PHP site: Additionally, not all platforms support negative timestamps, so your date range may be limited to no earlier than the Unix epoch. eForm, JQuery and AJAX. Using eForm to create AJAX-based modal overlay forms with JQuery is quite simple.

eForm, JQuery and AJAX

Step one: 1. Create the document that will have the form (in my case, this was actually part of the template footer in a "social networking" block with links to Twitter, etc; this was a "Share with a Friend" button). 2. On this document put a link, or a button, or whatever you want, with a classname of "activate_modal". 3. Also on this document put two divs, one for the modal overlay and one for the actual form. A bit of CSS to set this up: Step Two: 1. Step Three: Create the chunks. 1.

The only thing that’s really important here is that you use input type="button", since you don’t want the form to submit as normal. 3. Yes, this wouldn’t validate, but since it’s loaded via javascript and AJAX a validator will never see it. All the eForm features work; if one of the fields is left empty or is invalid, the error messages along with the form will be loaded, just as it is in normal page-refresh eForm usage. TinyMCE - Home. Google Analytics 1.7.0-ga. Adds a Google Analytics tag to every HTML page of your website.

Google Analytics 1.7.0-ga

Provides customisation of the analytics code. Installation Instructions Installation 1. Create a new plugin, and paste the contents of this file into the Plugin Code area.