Quote from: aour at Nov 26, 2005, 02:03 PM
Some "concept" like TV are not documented enough (usage).
Agreed, and we are working on expanding and improving the documentation, but I often find them hard to document, especially since even I discover new ways to use the various MODx concepts on a daily basis.
Quote from: aour at Nov 26, 2005, 02:03 PM
@OpenGeek: If I understand : I do a snippet who call Chunk, TV or another Snippet to build the ouptut.
Yes, but again, this is one of many possible approaches. I personally usually do my SQL work using our DBAPI in a snippet and have it produce the output and save it to a placeholder that I can then insert or use anywhere in a page, chunk, TV, another snippet, the template itself, etc., as long as the snippet that generates the placeholder is also contained on the generated page. This gives me maximum flexibility when laying out the pages and total separation of style and content.
Quote from: aour at Nov 26, 2005, 02:03 PM
Question : in one webpage :
Can I call 2 different TV ?
Can I call the same TV more than one time?
How pass an value to a TV like $industryID? I want to create a binding : @SELECT * FROM modx_mt_distributeur where industryID=$industryID
Yes, you can call an many TV’s as you attach to the template the page is assigned, and as long as any PHP code is valid for executing multiple times in the same page, you can call the same TV multiple times.
As for passing a value to the @SELECT binding, I haven’t tried this actually, and am searching for an answer to the rather common scenario.