I have a Matrix field that I'm using the search parameter on. Within the output I need to grab the actual {row_count}
associated with each row based on the order the row appears within the CP-based entry and not the order associated with the filtered results. It seems like the {field_row_count}
variable should give me exactly what I need, but it's not working as expected.
Here's a simplified sample of the code:
{cf_project_images search:categories="{segment_category_ids_piped}" }
<h2><a href="/portfolio/detail/{url_title}/{field_row_count}">{title}</a></h2>
{/cf_project_images}
As an example: The sample I'm testing has 4 rows within the Matrix field. Using the search parameter I'm only returning 1 of those 4 rows. If the row that is returned is the 4th row I would expect the value of {field_row_count}
to be 4, but it's returning as 1.
Am I misinterpreting the way the {field_row_count}
variable works?