-
☆ A M B ☆
- 24,524 Posts
Use the &rowIdPrefix=`serv` property in the snippet call. Then your tpl would look like this:
<li><a href="[[+link]]" id="[[+id]]">[[+linktext]]</a></li>
(edited - corrected the [[+id]] placeholder)
[ed. note: sottwell last edited this post 12 years, 3 months ago.]
-
☆ A M B ☆
- 24,524 Posts
Typo. That needs to be [[+id]]
Thanks, the id now appears but it seems ‘&rowIdPrefix’ doesn't work.
Todd
discuss.answer
-
☆ A M B ☆
- 24,524 Posts
How interesting. It works fine if you have the placeholder in the li tag rather than the a tag. You should be able to use it in the li tag, and change your CSS to "#serv1 a" instead of "#serv1".
After some poking and experimenting, it appears that you need to use the wf. prefix with that placeholder. Just [[+id]] will produce the ID of the resource in the row (which makes sense since that is a perfectly valid resource field), and to get the ID with the prefix you need to use [[+wf.id]] (or whatever placeholder prefix you may have indicated in the &prefix property).
[ed. note: sottwell last edited this post 12 years, 3 months ago.]