I have an index page showing channel entries and also working as the category view.
I want to link to a single entry from either of the above states and then be able to paginate to the next / previous entry within context.
E.g. there are 400 entries. On the main index they show in groups of 20. A category view might show a subset of 70 entries, category 'foo'. I know how to paginate either of these index views. The URLs looks like:
/archive/P40 or
/archive/category/foo/P20
If I want to view a single entry in each state (and paginate) the URL's look like:
/archive/single/P40 or
/archive/single/category/foo/P20
What I can't figure out is how to code the links from the index page to the single entry versions.
Hope that makes sense. Can anyone help? Cheers