We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Using MODX Add-ons
Search
Need to add a class to the first item listed by Getresource
268 Posts
elz064
Reply #1,
14 years, 5 months ago
Hi,
Is there a simple way to add a specific class or ID to the first item returned by a getresource ??
I really need the first to be identified.
thought about a JS action but.. not really a good approach.
Thank you
1,098 Posts
microcipcip
Reply #2,
14 years, 5 months ago
You can use &tplFirst parameter. More info on getResources documentation:
http://rtfm.modx.com/display/ADDON/getResources
Jertix.org ->
Web Design & Development, Motion Graphics
|
Follow me on Twitter
|
MODx Tutorials (in Italiano)
|
MODx Snippets (English)