For one of my channels there is no template for displaying a single entry. Entries are only ever displayed in a list on a landing page, which is continued on the paginated sub-pages, like:
http://website.com/landing/P6
This channel is searchable. When an entry appears in the search results, I want to create a link to its position in the paginated list.
So if the entry is found on the landing page (the first page of the list), the link will look something like:
<a href="{path='landing'}">{title}</a>
And if the entry is further back in the pagination:
<a href="{path='landing/P12'}">{title}</a>
From within the search results, what is the least expensive way to determine where the entry falls within the pagination? All of my ideas would likely require a lot of unwanted additional queries.