Home

Awesome

Domaineer

Domaineer is a MODX Revolution plugin to manage domain-specific settings and placeholders.

It has been developed in June 2011 by Mark Hamstra business@markhamstra.nl and has been released under the GPL Open Source license v2 or later. You can find the license in the license.txt file.

When to use Domaineer

Domaineer was developed to provide a way to easily manage domain-specific settings and placeholders. This means that if you have one context that can be accessed from a number of (sub)domains, and each different "point of entry" requires for example a different logo, site name or other non-resource, non-context and non-user related setting.

How to use Domaineer

Installing Domaineer

Domaineer has been added to the MODX Repository and can be installed from there.

Alternatively, you could install it manually as follows:

Copy the contents of the "domaineer.plugin.php" to a new Plugin called "Domaineer", and tick the "OnWebPageInit" system event on the System Events tab. Next follow the above "How to use Domaineer" section to get something done!

Property value

The property value is what actually does the magic here. It needs to be a JSON formatted array, so this would be a valid example:

{"+site_name":"My new Site Name setting"}

You may notice the + sign in front of site_name, that indicates this is actually a system setting we are modifying instead of a placeholder. You will always need that + sign for a system setting.

You can use as many key:value pairs as you want.

Final note: always make sure your placeholders or system setting tags that are set dynamically are UNCACHED, so with an exclamation mark: [[!++site_name]] or [[!+foo]].