This is an auto-generated support/comment thread for
GetField. Use this forum to post any comments about this addition or any questions you have regarding its use.
Brief Description:
Returns any document field (id, pagetitle, alias, etc.) or any template variable for:
* any document
* any of its parents up to a specified number of levels (eg. 2 levels up)
* its ultimate parent (right under the document tree root)
Author: Grzegorz Adamiak [grad]
Version: 1.3 beta @2006-11-08 14:40:04
License: LGPL
MODx: 0.9.2.1+
History:
# 1.3
- Distribution package is compatible with MODx Resource Wizard.
- Applied MODx snippet coding guidlines from
http://wiki.modxcms.com/index.php/Creating_Snippets.
- changed variables and function names
- variables get destroyed after use
- moved functions to the external include
- Created GetField.txt with history, links to documentation and repository and installation instructions.
- Changed field fetching routine to always use gfGetFieldContent function.
# 1.2.2
- A quick fix to "Cannot redeclare function".
# 1.2.1
- Reworked fetching of template variable (again

to enable output of widget.
# 1.2
- Reworked fetching of template variable value to get INHERITED value.
- Removed defaulting to ’pagetitle’ when $field not found; this is due to fact hat tv can have empty value.
# 1.1.1
- Fixed small bug with $parentLevel and $topid check; now should work as expected.
# 1.1
- Reworked fetching of template variable value, now it gets computed value instead of nominal; however, still not the inherited value.
- Changed license to LGPL.
# 1.0
- First public release.