By huayen on
Hello,
There are some posts , including the module Custom pager, telling how to add custom pager to node display. However, these methods only use '<
>' for the pager. Anyone know how to use node titles instead of NEXT and PRE for navigation? Thanks. Derek
Comments
I got the problem,too who
I got the problem,too
who could help us?
the book module adds this
the book module adds this automatically when you add nodes to the hierarchy.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
the output of a custom pager
the output of a custom pager can be overriden in your theme's template.php. That way you have full access on the nodes and therefore also the option to print the titles instead of 'previous' / 'next' ..
Would you mind sharing that?
Would you mind sharing that? Thanks
International SEO
Interested in solution as
Interested in solution as well
still looking for answers
still looking for answers
Documented approach with the
Documented approach with the web site using it: Use Node Title for Custom Pagers
This looks promising, but not clear
Can anyone give more detailed instructions on how to use node titles or even better some other node content to replace the previous and next in the Custom Pager?
I am unskilled at how to work with template files, and so the instructions here aren't enough for me.
+
+
One Solution Using Template Over-ride
Hi there,
I was also trying to use the node titles for previous and next as it is better for SEO.
I did it by over-riding the custom-pager.tpl.php file.
You can replace the whole file with the code below (which I adapted from the original template). Once you have replaced the code, save the new custom-pager.tpl.php file into your own theme folder.
I'm not a php expert so the code may be a little rough but it works.