fastField
fastfield
About
This plugin adds new tag [[#resource_id.field]] for MODX Revolution 2.2+.It is a simple replacement of getResourceField. It supports grabbing:
[[#1.pagetitle]] resource fields
[[#1.tv.myTV]] resource TVs (processed)
[[#1.properties.articles.articlesPerPage]] resource properties
[[#POST.name]] value of $_POST['name'] (and other global arrays as with snippet getReqParam)
You don't need to install getResourceField and getReqParam for its work.
Examples:
1) [[getResourceField? id=`1` &field=`pagetitle`]] is similarly to [[#1.pagetitle]]
2) [[getResourceField? id=`1` &field=`myTV` &isTV=`1` &processTV=`1`]] is similarly to [[#1.tv.myTV]]
3) [[#1.properties.articles.articlesPerPage]] or [[#1.property.articles.articlesPerPage]] or even [[#1.prop.articles.articlesPerPage]] (isn't supported by getResourceField)
This example makes sense for Articles extra. Namespace "core" is standard.
4) [[!#get.name]] returns value of $_GET['name']. Supported global arrays: $_GET, $_POST, $_REQUEST, $_SERVER, $_FILES, $_COOKIE, $_SESSION. The type of array after # is case-insensitive. The name of array element is case-sensitive. You should use uncached tag [[!#get.name]] for cached resources. CAUTION: use :stripTags output filter to prevent XSS-attacks (eg. [[!#get.name:stripTags]])!
It supports output filters, for example [[#3.pagetitle:ucase:default=`[[*pagetitle:ucase]]`]]
Installation & usage
Examples of use:
1) [[getResourceField? id=`1` &field=`pagetitle`]] is similarly to [[#1.pagetitle]]
2) [[getResourceField? id=`1` &field=`myTV` &isTV=`1` &processTV=`1`]] is similarly to [[#1.tv.myTV]]
3) [[#1.properties.articles.articlesPerPage]] or [[#1.property.articles.articlesPerPage]] or even [[#1.prop.articles.articlesPerPage]] (isn't supported by getResourceField)
This example makes sense for Articles extra. Namespace "core" is standard.
4) [[!#get.name]] returns value of $_GET['name']. Supported global arrays: $_GET, $_POST, $_REQUEST, $_SERVER, $_FILES, $_COOKIE, $_SESSION. The type of array after # is case-insensitive. The name of array element is case-sensitive. You should use uncached tag [[!#get.name]] for cached resources.
CAUTION: use :stripTags output filter to prevent XSS-attacks (eg. [[!#get.name:stripTags]])!
By default it sanitizes global array with $modx->sanitizePatterns.
It supports output filters, for example [[#3.pagetitle:ucase:default=`[[*pagetitle:ucase]]`]]
At a glance
Not MODX 3 compatible as far as we know.
- Developer argnist
- Latest release December 6, 2013 (12 years ago)
- First seen in SiteDash December 6, 2013 (12 years ago)
- License GPLv2
- MODX support 2.2 – 3.0
| Changelog | |||
|---|---|---|---|
| MODX.com |
1.4.0-pl |
December 6, 2013
12 years ago |
|
|
<p>fastField 1.4.0-pl</p><p>- More compatibility with original modParser</p><p>- Finds TVs without .tv prefix.</p><p>- Sanitize Global arrays</p><p>- More compatibility with json fields</p><p>- Better error logging</p><p>- Some small fixes</p><p>-------------------- </p><p>Fix problem with uninstallation</p><p>fastField 1.3.1-pl</p><p>-------------------- </p><p>Fix problem with uninstallation</p><p>fastField 1.3.0-pl</p><p>-------------------</p><p>- Totally replace modParser by fastFieldParser</p><p>- Cache resource </p><p>fieldsfastField 1.2.1-pl</p><p>-------------------</p><p>- Fix null-field issue</p><p>- Fix error logs for TV</p><p>fastField 1.2.0-pl</p><p>-------------------</p><p>- More complex tag processing: nesting, caching and all features of resource fields;</p><p>- Global arrays support;</p><p>- Error logs for unknown fields and non-existent resources.</p><p>fastField 1.1.0-pl</p><p>-------------------</p><p>- Add processing output filters as default tags do. For example, [[#3.pagetitle:ucase:default=`[[*pagetitle:ucase]]`]]</p><p>fastField 1.0.0-pl</p><p>-------------------</p><p>Initial Version</p>
|
|||
|
No matching releases. |
|||
We've also seen 4 unverified versions of fastField in use, but don't list those as we've been unable of confirming they are official releases from an official source.