I think FDM supports TVs.. so my suggestion would be to move to that one, but I don’t have any personal experience from it..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
MODX Staff
- 2,502 Posts
Yeah,
I did decide that later today. I found that I have a new set of problems with that and Soda is working on refactoring it for xPDO and doesn’t seem to be working on updating the FDM until after he is done.
Thanks for your suggestion.
Cheers,
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
Hey SmashingRed,
I need exactly the same feature in NewsPublisher. A date picker in the form that will then be assigned to the new document date TV so Ditto can sort the posts with it so you can use it as an event calendar instead of a simple news listing, right?
As the time is running almost before me with my customer, I’ll have to come with something before friday, but in case you do find a working solution before me, please let me know!
Bye,
Blaise
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!
Just to be complete: I’ve got the solution from muskokee/Sheri working, by hacking "document.parser.class.inc.php" and the newspublisher snippet. He posted this work-around halfway page 2 of this thread. Just follow the simple instructions. Make a copy of the file and snippet first... ;-)
moejarv asked a question, which wasn’t answered yet: Do I assign it with a name in the snippet call? if so, how do I do that? Something like this? CODE: &the_TV_I_Want_to_Call=`TVnickName`
Answer: No, you don’t have to assign a TV in the snippet call (like the rich blog-content: &rtcontent=`tvblogContent`). Just make a input-field in the form-template which has the same name as the TV you want to fill.
For example: My TV was named "newsFilter" (and was a checkbox). My "FormBlog" html-chunk contained: <input type="checkbox" name="newsFilter" id="FSM" value="FSM" />. I called the snipped like you would normally do: [!NewsPublisher? &folder=`2` &template=`~Extranet Template` &canpost=`admins` &formtpl=`FormBlog` &makefolder=`1` &rtcontent=`tvblogContent`!]
That was all. It works like a charm.
My problem is that I have a TV called "content" as all my pages look alike, except for the content.
Can I use the newspublisher without renaming my TV as there already is a field called content in the form?
and is it stell necessary to hack to code as the posts from pixelXp and The Man Can! seem to contradict each other.
-
MODX Staff
- 12,272 Posts
Rename the "content" TV to something else ... That’s probably going to conflict with the main [*content*] field.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me