Quote from: vhollo at May 05, 2008, 08:16 AM
DynContent in the repository: http://www.modxcms.com/DynContent-1679.html
There’s another snippet you may use instead:
GetField: http://www.modxcms.com/getField-667.html
This one is able to get any document field so it’s OK for the Summary’s reach text TV as well.
As the NewsManager.html document file is describing (read it!), make a TV for the Content RTE, name it for example ’BlogContent’. Then put the @EVAL code (from the docs) or the line [[DynContent? &docid=`[+editid+]`]] - or use a GetField snippet call - in its default value.
The same goes to the Summary RTE.
Then make your NewsEditor call including &rtcontent=`tvBlogContent` to have this reach text field on your editor form.
You may not forget to include &clearcache=`1` to make the newly edited posts instantly visible on the site.
I hope this helps.
Thanks very much!
Yeah, the problem was that the EVAL’d code returned the same error as for you, otherwise the form fields were correct, but no rte content, even though the same values as you provided now - very odd. but the dyncontent snippet helped!
Coming from strong LAMP structure and from php-template engines using flat files and MySQL content as tpl-providers I’m still in a learning curve with modx’s virtual dir-tree and the syntax - the TV’s, snippets, chunks, templates and plugins are really blurry for me still, but I’m starting to get the hang of it. Every single asset from the repository I’ve tried has been quite nicely documented, or at least very readable code - for I’m a developer more than a designer - but I’m still "running dumb" with all the mix ups as I trial-and-error
Thanks again - and hope that once I master modxing, I’ll be an asset to you all