• MODX.com

    7,311 downloads

setPlaceholders

setPlaceholders is an extra by jgrant, first released on 2014-03-26.

Package Description

A snippet for getting fields and setting placeholders.  See the GitHub page for documentation and examples.

setPlaceholders combines the usefulness of placeholders—which are rather like local variables—with a fast and versatile engine for gathering up various data: fields and TVs from a resource or any of its ancestors, children or siblings, plus several other useful things.

It provides the functionality of getResourceField, UltimateParent, and getUrlParam—in addition to quite a bit more—all in one lightweight and very efficient package.  Something of a Swiss Army knife for navigating the resource tree and retrieving info.

Usage/Installation Instructions

Download and install.  The package contains one snippet called setPlaceholders.  It's that easy.

Details

Developer(s)
jgrant
Released
2014-03-26
First seen
2014-03-26
License
GPLv2
Supported databases
Minimum MODX Requirement
2.0

setPlaceholders Releases

Vendor Signature Released on
MODX.com 2.2.1-pl 2014-03-26 (10 years ago)

We've also seen 1 unverified versions of setPlaceholders in use, but don't list those as we've been unable of confirming they are official releases from an official source.