-
☆ A M B ☆
- 24,524 Posts
Well, the placeholder's +id value refers to the ID of the resource being processed by getResources. The TV *id value always refers to the ID of the resource containing the getResources call. Since getResources will never be processing its own parent page, then that idea won't work. Most JQuery rotators and slideshows have a way of specifying the item to be opened on load, and automatically assigns the appropriate classnames.
-
☆ A M B ☆
- 24,524 Posts
When setting up these JQuery tabs and rotators and what-not, the thing to do is take the demo source and manipulate the getResources or Ditto or whatever listing snippet you want to use to produce the same HTML output as is used in the demo. Let the javascript handle the rest of it. A bit of CSS customization is all you ever need to do.
These JQuery plugins have all kinds of configuration options and all MODx needs to do is to provide the necessary content for the javascript and the css to work with.