@SELECT * FROM modx_site_content
You would use @SELECT as the input value and then an output widget (example delimited list) or a snippet...at least this is how i’ve used this in Evo
I can’t seem to get this to do anything useful at all (other than generate extremely weird fatal errors).
Should a TV with the output set to
produce something useful with a content tag -- [[*tv_name]] or does it require a widget or snippet for the output?@SELECT * FROM modx_site_content
Quote from: BobRay at Jun 06, 2009, 10:57 PMYou would use @SELECT as the input value and then an output widget (example delimited list) or a snippet...at least this is how i’ve used this in Evo
I can’t seem to get this to do anything useful at all (other than generate extremely weird fatal errors).
Should a TV with the output set to
produce something useful with a content tag -- [[*tv_name]] or does it require a widget or snippet for the output?@SELECT * FROM modx_site_content
Some of the widgets will; the absurd ones (ticker, marquee, etc) will not.
I’m not sure if the widgets will get translated to Revo. They’re definitely not available now. And, if you’re going to use a snippet, you might as well put the DB interaction in the snippet itself or in a property set.
The widgets we are going to maintain are definitely there in Revo; we’ve been using them for months on projects. You can also easily add your own custom widgets now, which has proven extremely useful, and will allow you to add back any of the missing ones you need.
I’m not sure if the widgets will get translated to Revo. They’re definitely not available now.
Though it’s certainly valid to do that, the thing not too many MODx developers have gotten around to is separating snippets into those that retrieve data and those that visualize it; something I will be demonstrating in an upcoming add-on library where all snippets can directly return output, or save the data they retrieve into placeholders for use by other snippets (or plugins).
And, if you’re going to use a snippet, you might as well put the DB interaction in the snippet itself or in a property set.
Though we will keep it, I will be recommending better ways to use it now that all tags can be evaluated in it.
The @SELECT binding may or may not stay; we’re still evaluating that. We most likely will keep it.
Quote from: BobRay at Jun 07, 2009, 11:26 PMThe widgets we are going to maintain are definitely there in Revo; we’ve been using them for months on projects. You can also easily add your own custom widgets now, which has proven extremely useful, and will allow you to add back any of the missing ones you need.
I’m not sure if the widgets will get translated to Revo. They’re definitely not available now.
Quote from: BobRay at Jun 07, 2009, 11:26 PMThough it’s certainly valid to do that, the thing not too many MODx developers have gotten around to is separating snippets into those that retrieve data and those that visualize it; something I will be demonstrating in an upcoming add-on library where all snippets can directly return output, or save the data they retrieve into placeholders for use by other snippets (or plugins).
And, if you’re going to use a snippet, you might as well put the DB interaction in the snippet itself or the SELECT in a property set.
Though we will keep it [@SELECT], I will be recommending better ways to use it now that all tags can be evaluated in it.