We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

X of Y pagination and Next/Prev on single entry page

Development and Programming

BridgingUnit's avatar
BridgingUnit
214 posts
16 years ago
BridgingUnit's avatar BridgingUnit

Does anyone have any idea how I can hook up a single entry page so that it will appear like so?

<a href="http://{url-title}">Prev</a> 4 of 32 <a href="http://{url-title}">Next</a>

I know that if this was a multi-entry page I could use weblog pagination, but that only seems to provide links in form www.domain.com/path/P4 etc whereas I want www.domain.com/path/title-of-post/

And I know that as a single entry page I could use entry linking for the prev/next, but that won’t allow me to output the ‘4 of 32’ bit as an indicator of which post in the sequence we’re on.

Any ideas anyone?

Thanks in advance

       
BridgingUnit's avatar
BridgingUnit
214 posts
16 years ago
BridgingUnit's avatar BridgingUnit

Don’t worry people. Think I’ve worked it out. Probably being a bit dim. Funny how just as you’ve finished banging your head against the desk and posed a question, the answer comes to you 😊

{exp:weblog:prev_entry}
<a href="http://{path=%22myWeblog/singleEntry%22}" title='Previous'>Prev</a>
{/exp:weblog:prev_entry}

{exp:weblog:entries weblog="myWeblog" status="open" dynamic='off'}

{if url_title==segment_3}
{count} of {total_results}
{/if}

{/exp:weblog:entries}

{exp:weblog:next_entry}
<a href="http://{path=%22myWeblog/singleEntry%22}" title='Next'>Next</a>
{/exp:weblog:next_entry}
       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Nothing comes to mind, but I bet this could be a plugin of some sort. Should I move this to the Plugins forum for some additional community involvement?

       
BridgingUnit's avatar
BridgingUnit
214 posts
16 years ago
BridgingUnit's avatar BridgingUnit

If someone could come up with a plugin that replicates the functionality above that would be great. I can’t help but feel that it’s probably not a very efficient solution I’ve come up with

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

OK, I’ll move this to Plugins, then.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.