Active
Project:
Custom Pagers
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Apr 2009 at 04:18 UTC
Updated:
8 Jun 2012 at 14:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
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) commentedMy vote for this
Comment #3
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 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 commentedI really want this feather. Anyone?
Comment #6
mcsolas commentedSubscribing.. I see the need for this as well.
Comment #7
krabbe commentedSubscribing .... It's a must have feature, I think.
Comment #8
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 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 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 commentedadd this in your template.php.tpl
Comment #12
pribeh commentedHas anybody tried the patch from #9 with the latest beta-2?
Comment #13
Marko B commentedNUmber 11 works, great!
Comment #14
BeaPower commentednone worked for me...
Comment #15
pribeh commentedI can confirm #11 worked for me.
Comment #16
BeaPower commenteddid you past this or replace code in theme folder of drupal site or module?
Comment #17
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 commentedNo still didnt work for me even if I added my theme name which is something like this - theme_name :/
Comment #19
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 commentedno my theme is simply_modern that is what I replaced with THEME-NAME
Comment #21
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 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 commented@11 your code not worked for me
where i put that code?
Comment #24
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 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 commentedAnd to finish it up for today, the mysql query from #8 added. This should do it.
Comment #27
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 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) commentedPatch #26 works for me
Comment #30
benvolio commentedThank you letrice
Comment #31
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 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_1andfunction THEME-NAME_preprocess_custom_pager_2in 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) 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 commentedNice project, but only for D7 :(