We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Revolution 2.0
Search
How to alter a "TV-Value" from a Snippet?
138 Posts
Letti
Reply #1,
15 years, 4 months ago
Can anybody tell me how to alter a "TV-Value" from a Snippet?
I did this for an existing TV named "counter":
$counternew = $modx->resource->getTVValue('counter') + 1;
And now I want to save the the $counternew into the TV "counter"
138 Posts
Letti
Reply #2,
15 years, 4 months ago
OK, found the solution here:
http://modxcms.com/forums/index.php/topic,52849.msg306027.html#msg306027