I cant find the way to get child item ID in my foreach loop, which i use for accordion.
I want to do this because each accordion must have diferent ID because of collapse.
If i use this @Umbraco.Field("pageID") , i got ID from parent page.
And i want id from each list item in parent page.
This is my code:
How to get child item ID
I cant find the way to get child item ID in my foreach loop, which i use for accordion. I want to do this because each accordion must have diferent ID because of collapse. If i use this @Umbraco.Field("pageID") , i got ID from parent page. And i want id from each list item in parent page. This is my code:
Hi!
In your foreach loop did you try @item.Id ? That should return the Id of the item for you (replacing your @Umbraco.Field("pageID"))
Hope that helps! :)
Thank you, IT WORKS, but i swear that i alredy tried it and it didnt work :P
is working on a reply...