Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How can I get the ID of the previous & next link?

Quote Reply
How can I get the ID of the previous & next link?
How can I get the ID of the previous and/or next link in on the current page (according the current sorting order)?
The reason is, that I want to put anchors near the links, to jump forward to next link or back to previous link.

I'm working on plugin for it which is currently hooked to site_html_link.
Maybe display_link hooking would be also required to get ID of previous or next link.

Any idea, solution?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] How can I get the ID of the previous & next link? In reply to
Hi,

These tags are already available in the detailed.html template using <%next%> and <%prev%>.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] How can I get the ID of the previous & next link? In reply to
But how can I have <%next%>, if I do not use detailed.html?
Can I use it on the category.html page? I suppose no. Then what do you suggest?

I could modify the build_category sub to get next & prev link ID, but would be better to be able to read this info into my plugin.

How is this possible?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...