Downloads » Resources » PHx » PHx | 2.1.1

PHx 2.1.1

  • Currently 4.85/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
20 vote(s).

Resource ImagePHx (Placeholders Xtended) will add the capability of output modifiers when using placeholders, template variables and settings tags. The recursive parser allows for nested tags. Custom modifiers can be added by creating "mini-snippets" in the MODx resource manager.

Works with MODx Version(s): 0.9.2.1, 0.9.2
Submitted: Nov 28th 2006 | License: GPL - GNU Public | Downloads: 820
This resource has been deprecated.

Description

PHx (Placeholders Xtended) extends the use of placeholders, template variables and settings tags so you can easily format how the final output should look like. When enabled it plugs into the MODx parser, extends it's functionality and as a bonus makes it truly recursive. PHx will also eliminate the need for lesser parameter snippets where you'd use them to format a value for display. Great for templating!

Transforming a value is is as easy as adding :modifier.

Read the full documentation available on
http://wiki.modxcms.com/index.php/PHx

Instructions

Installation

New Install:

1) Download and extract the archive.
2) Create a directory called "phx" in your [MODx Directory]/assets/plugins directory
3) FTP or copy the files into [MODx Directory]/assets/plugins/phx
4) Create a new plugin in the manager called "PHx" and copy/paste the contents of phx.plugin.txt into the code field.
5) Check "OnParseDocument" at the System Events tab

Update:

1) Download and extract the archive.
2) Backup and delete the contents of [MODx Directory]/assets/snippets/phx
3) Create a directory called "phx" in your [MODx Directory]/assets/plugins directory
4) FTP or copy the files into [MODx Directory]/assets/plugins/phx
5) Update the "PHx" plugin in the manager and copy/paste the contents of phx.plugin.txt into the code field.
6) Check "OnParseDocument" at the System Events tab

Configuration (optional)
On the Configuration tab -> Plugin configuration enter:

&phxdebug=Log events;int;0 &phxmaxpass=Max. Passes;int;50


Read the full documentation available on
http://wiki.modxcms.com/index.php/PHx

Updates

Changelog 2.1.1:

- fix: uncached snippet behaviour

Changelog 2.1.0:
increase overall performance by adding cache to modifiers that are used multiple times:

- added: caching for custom modifiers
- added: role caching
- added: userinfo caching


( back to top )