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
Search
MODx API removes doubele verrtical bar? (||)
97 Posts
dopeless
Reply #1,
11 years, 6 months ago
Strange thing, a have a TV Value in databese table:
foo(1)||bar(2)
I use
$page = $modx->getObject('modResource', 6); return $page->getTVValue('myTV');
to get this value, and what I get is:
foo(1)bar(2)
why does it happen?
☆ A M B ☆
24,524 Posts
sottwell
Reply #2,
11 years, 6 months ago
Try having a "delimiter" output widget for the TV and specify what delimiter you want.
Studying MODX in the desert -
http://sottwell.com
Tips and Tricks from the MODX Forums and Slack Channels -
http://modxcookbook.com
Join the Slack Community -
http://modx.org
97 Posts
dopeless
Reply #3,
11 years, 6 months ago
Yep, that helped, thx, but why do MODx removes ||?
MODX Staff
10,725 Posts
opengeek
Reply #4,
11 years, 6 months ago
It's used to represent an internal delimiter for various multi-select options with Template Variables.
Jason Coward
Chief Architect @ MODX
http://www.jasoncoward.com
|
http://twitter.com/drumshaman
|
https://github.com/opengeek