Is there any way to set a tv using the new NewsPublisher?
Quote from: Mark at Aug 23, 2005, 06:14 PM
Is there any way to set a tv using the new NewsPublisher?
You mean the set the value of a TV?
Quote from: Mark at Aug 23, 2005, 06:24 PM
Yeah.
It currently does not but you can modify it to do so.
It’s best to make a copy of the snippet and give it a new name to prevent upgrade problems
In attempting to figure this out, I’ve hit a bit of a stumbling block. There doesn’t seem to be an API function to write to a TV? I see that there is a $modx->putChunk, and I thought there’d be something similar for TVs, but I don’t see anything in the documentation or in the document.parser file. I’m guessing I’m wrong, as I almost always am.
Thinking that perhaps TVs can just be added with the regular document info (like longtitle, alias, etc.), I tried adding the TV values along with the other values in the $flds array (around line 190), but can’t get anything going there either.
Any advice on which direction to go to get this working? Thanks for any help!
Brett
Man I’m glad I’m not the only one. After the instructions said look at the BOTTOM for the new user account link, I looked and looked. Thought my lasik surgery was letting me down. Then I finally did a search and found it smack at the TOP.
Standard Disclaimer
I could be totally wrong.