For ease of use in snippets, etc. we should allow tv’s to be processed like [*tvname:pageid*] and document objects like [*pagetitle:pageid*]
I’ve thougt about this before and it is very handy. It’s easy enough to do as a snippet but it would be nice to have as a core functionality so that it can be be used in snippets, plugins, templates, etc. without having the dependency to a snippet.
Dependencies is one thing that we may want to address at some point.
This would make using tv’s in newslisting possible!
Not on the technical side of things but from a user and a webdesigner’s perspective, it would be a definite plus to be able to use TVs in Snippets without having to code it.
I understand that from a coder’s perspective, using TVs in snippet is straightforward but that would limit the use of TVs by most people. Newslisting is a nice example of this, and since creating TVs is so easy in MODx you can bet people will use them. More often than not, they’ll need the ability to list and display documents in a flexible way.
This would therefore be a real plus
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Quote from: Mark at Nov 27, 2005, 07:46 PM
For ease of use in snippets, etc. we should allow tv’s to be processed like [*tvname:pageid*] and document objects like [*pagetitle:pageid*]
Hi Mark,
Can explain a bit more on this? Maybe an example? Are you referring to pulling a TV from another page?
Hmmm,
One thing to note here is that for every document that we pull the TV from we would have to fetch the data for that document and where possible parse that document. This might affect performance if used incorrectly.