Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, great module and I like it very much. I think it is better if we have an option to display "
" into "". The display "" is great for image galleries and the display "" is great for blog and other articles. Just my opinion. Thank you for this module. :)Comment | File | Size | Author |
---|---|---|---|
#26 | custom_pager_node_titles3.patch | 6.36 KB | Rob C |
#25 | custom_pager_node_titles2.patch | 6.21 KB | Rob C |
#24 | custom_pager_node_titles.patch | 3.85 KB | Rob C |
#9 | custom_pagers.module.zip | 3.39 KB | Slovak |
Comments
Comment #1
Jhun Vert CreditAttribution: Jhun Vert commentedHi I want to retype my request because my < and > turned into html tags. I cannot edit my request, lesson for not previewing it.
What I mean in my request is to have an option to display "<title-of-previous-node # of # title-of-next-node>" and "<previous # of # next>".
"<title-of-previous-node # of # title-of-next-node>" is good for blog.
"<previous # of # next>" is good for images. Thanks again.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedMy vote for this
Comment #3
ericjam CreditAttribution: ericjam commentedCan someone please adapt the 5x solution to this? I really need the titles to be shown, there's no reason, and me personally, that one would click on a random "next previous" button without knowing what they're clicking on. I understand the switch was made for speed but the point is usability otherwise the module is useless.
Comment #4
mrhappymac CreditAttribution: mrhappymac commentedI agree with fluidicmethod, when can we expect to see this implemented, wasted my time installing it, can you at least mention it on the screenshot link from your project page!! very misleading!!
Comment #5
the2ndday CreditAttribution: the2ndday commentedI really want this feather. Anyone?
Comment #6
mcsolas CreditAttribution: mcsolas commentedSubscribing.. I see the need for this as well.
Comment #7
krabbe CreditAttribution: krabbe commentedSubscribing .... It's a must have feature, I think.
Comment #8
letrice CreditAttribution: letrice commentedTo output titles instead of prev/next, just modify 5 lines of code in the file custom_pagers/custom_pagers.module.
Maybe there is a better solution, but this works fine for me.
The following link contains the modification which is described above, you can see it in action: Junggesellenabschied T-Shirt bedrucken
Hope a feature like this will be in a future release :)
Have fun!
Comment #9
Slovak CreditAttribution: Slovak commentedThis was addressed in version 6.x-1.x-dev - see http://drupal.org/node/516862 for a self-made patch or use the attached file (had to zip the one file in order to attach it). Works like a charm on my website blog - http://peterpetrik.com/blog
Peter...
Comment #10
jiakomo CreditAttribution: jiakomo commentedNice module, but screenshot was a bit misleading.
Letrice/slovak, could you suggest a solution for the 5.x-1.9 version?
Comment #11
idflorin CreditAttribution: idflorin commentedadd this in your template.php.tpl
Comment #12
pribeh CreditAttribution: pribeh commentedHas anybody tried the patch from #9 with the latest beta-2?
Comment #13
Marko B CreditAttribution: Marko B commentedNUmber 11 works, great!
Comment #14
BeaPower CreditAttribution: BeaPower commentednone worked for me...
Comment #15
pribeh CreditAttribution: pribeh commentedI can confirm #11 worked for me.
Comment #16
BeaPower CreditAttribution: BeaPower commenteddid you past this or replace code in theme folder of drupal site or module?
Comment #17
pribeh CreditAttribution: pribeh commentedPut the following in your template.php (make sure to change where it says "theme-name" to your theme's exact name and to not include the
<?php ?>
tags):Comment #18
BeaPower CreditAttribution: BeaPower commentedNo still didnt work for me even if I added my theme name which is something like this - theme_name :/
Comment #19
asb CreditAttribution: asb commentedI the name of your the was 'Garbund', you would write
function garbund_preprocess_custom_pager...
, notfunction theme_garbund_preprocess_custom_pager...
Comment #20
BeaPower CreditAttribution: BeaPower commentedno my theme is simply_modern that is what I replaced with THEME-NAME
Comment #21
DrippelDrop@drupal.org CreditAttribution: DrippelDrop@drupal.org commented#17 works great, but it is possible to only show the first xx letters of the title? I did it in the views definition, but it didn't work with the code... Any ideas?
Edit: Ok I did it like this:
and likewise with next.
Hope this is ok, at least it works :)
Comment #22
CJBrew CreditAttribution: CJBrew commented#11 works for me, but you will have to replace the "‹" with a real "<" and similarly for the close-angle bracket.
Comment #23
captix CreditAttribution: captix commented@11 your code not worked for me
where i put that code?
Comment #24
Rob C CreditAttribution: Rob C commentedI created this, it's not perfect, but it does give you the option to change this per pager.
This will also patch the tpl.php file, cause this order makes more sense when you enable this feature.
It will present an option at the 'add custom pager' page where you can 'enable' the feature.
Hope it helps. :) (be sure to reinstall the module, else it wont work. i didn't create an update)
Comment #25
Rob C CreditAttribution: Rob C commentedReworked the patch, use this patch, forget the first one.
Changed a lot, so it contains:
- patch against 1.0 beta2
- adds an option to enable the nodetitle on pager functionality on the admin page
- added an option to limit the length of a title on the admin page
- it will change your custom-pager-tpl.php file.
Still wonder if it's smart to use node_load to fetch the title, any suggestions?
Comment #26
Rob C CreditAttribution: Rob C commentedAnd to finish it up for today, the mysql query from #8 added. This should do it.
Comment #27
tebdilikiyafet CreditAttribution: tebdilikiyafet commentedthis patch didn't worked for me. it gives parse error. actually I am new to doing patch. is there anyone who successfuly use this patch ?
Comment #28
Rob C CreditAttribution: Rob C commented(ill rework the patch, made a mistake creating it, you have to run it from the modules dir, not inside the custompagers dir. and i changed some other issues, ill post it later next week, got a busy schedule.)
Comment #29
Anonymous (not verified) CreditAttribution: Anonymous commentedPatch #26 works for me
Comment #30
benvolio CreditAttribution: benvolio commentedThank you letrice
Comment #31
sean_a CreditAttribution: sean_a commented#8 worked except on node titles that contain quotes in them. I removed check_plain on the first part because l() runs check plain also and it was running the title through twice.
Comment #32
asb CreditAttribution: asb commentedI am using two different pagers and would like to use node titles in custom pager id2, but not in custom pager #1. Is this possible?
I couldn't find a way to create two different functions like
function THEME-NAME_preprocess_custom_pager_1
andfunction THEME-NAME_preprocess_custom_pager_2
in template.php.Maybe it is possible to move the logic from template.php into a template file like
custom-pager-2.tpl.php
?Thanks!
Comment #33
Anonymous (not verified) CreditAttribution: Anonymous commentedIn Drupal 7, Flippy (http://drupal.org/project/flippy) has a checkbox option for this.
Flippy seems to be the de facto replacement for Custom Pagers.
Re #32: yes, Flippy can do this.
Comment #34
asb CreditAttribution: asb commentedNice project, but only for D7 :(