Quote from: Mark at Mar 31, 2006, 01:11 PM
Do you mean that in the NewsListing tpl if you have an item with a id it gets duplicated for every entry?
If so, this is the nature of how repeating programs work. They output the same thing multiple times changing only relevant values. The best solution is to use a class for repeating items or to use an id name with a TV in it (such as "myidname[+id+]"
Mmm, no. I mean that If I use a simple inserted TV in a template like [*#lulaHead*] as a generic html tag, in this case h3, then MODx provides an id for it, in this case ’tvtvlulaHead’. No class or id was assigned when the TV was created. This seems to be default behaviour by the system, not anything to do with any templated or user-selection. If I provide an id, it puts that in, but that’s a user-directed choice.
This is not a major issue, but my suggestion was that, since an id needs to be unique to be useful, the parsing code could determine if that id name had been used before, at least in the scope of the inserted object, which in this case is [*content*]. Otherwise, just turn it off since I can’t use a selector to reliably control that block anyway.
The naming convention could be ’tvtvlulaHead_1’, ’tvtvlulaHead_2’ or whatever.