Empty a TV in Resources under Certain Parent Folders
Posted by Bob Ray |
Changing the value of all TVs for resources under certain parent folders.
Make Plugins Execute Based on TV Values
Posted by Bob Ray |
Enable or disable plugins based on the values of specific TVs
Getting TV Values from Another Context
Posted by Bob Ray |
Here's a trick for getting the TV values for a resource that's in another context
Using modTemplateVarResource with a Default Value
Posted by Bob Ray |
How to handle the modTemplateVarResource object when the value for a particular resource might be set to the default value of the TV.
Using fromArray() to Write Raw Values to the DB
Posted by Bob Ray |
How to write raw values to the database with the fromArray() method.
Using getValue() for Object Content
Posted by Bob Ray |
Retrieving the main content field of resources and elements the fast way with getValue().
Using getValue() with Date Fields
Posted by Bob Ray |
Retrieving and handling resource date fields like editedon and createdon in code the fast way with getValue()
Using getValue() wth Boolean (Yes-No) Fields
Posted by Bob Ray |
Getting and interpreting MODX boolean (Yes/No) fields in code
Get a Field Value -- Fast
Posted by Bob Ray |
A very fast and efficient method for getting field values in MODX, from Jason Coward.
[ [+comments_form]] [ [!Login? &loginTpl=`HongkiatLoginTpl` &logoutTpl=`hongkiatLogoutTpl` &tplType=`modChunk`]]