Forum
How to retrieve the order value of one item of a multiple item region.
I know it's possible with "perch_item_index" but I don't want to output all the items with the matching order value. I just want to output one number. Example: I have a carousel slider of 10 items (multiple item region). When I click a slide, this brings me to a detail page. I can get back to the carousel slider with a close button, but then the slider does also have to slide to the slide I just visited. So I want to give the exact order value with the close button to do this.
Can anybody help me out?
You can use
_id
- that's the unique ID of the item within the region.But _id isn't an 'order value'? Is it a possibility to do it somehow like to create links to previous and next items?
That's right - there is no stored 'order value'. The order depends on how you sort the region.