Closed (fixed)
Project:
Custom Pagers
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Dec 2010 at 04:23 UTC
Updated:
19 Apr 2012 at 06:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kim.peppersubscribing
Comment #2
kim.pepperI've created an initial port for Drupal 7 on github:
https://github.com/previousnext/custom_pagers
It's incomplete and not yet functional, but thought it worth posting here if anyone wants to coordinate efforts.
Kim
Comment #3
robhamm commentedSubscribing
Comment #4
AdrianC-1 commentedSubscribing
Comment #5
webankit commented+1
Comment #6
wilgrace commented+1
Comment #7
d0t15t commented+1
Comment #8
vitok-dupe commentedSubscribing
Comment #9
designerbrent commented+1
Comment #10
jonaswouters commentedsubscribing
Comment #11
sw3b commentedsubscribing
Comment #12
amalaer commentedsubscribing
Comment #13
traceelements commentedsub
Comment #14
mstrelan commentedsub
Comment #15
Shadlington commentedSub
Comment #16
borazslo commented+1
Comment #17
kim.pepperI have got a basic version of custom_pagers working for D7 at https://github.com/previousnext/custom_pagers
Please test it out and let me know if it works for you.
Kim
Comment #18
Anonymous (not verified) commentedSub.
Comment #19
simonlagneaux commentedIt's not working for me. I got this kind of errors on one of the node pages :
Comment #20
knigh7 commentedyes we need a drupal 7 version
Comment #21
valderama commentedsub
Comment #22
mmgg commentedgetting the same error as #19
Comment #23
basicmagic.net commentedsubscribe
Comment #24
edsko commentedThe bug reported (#19) is easy to fix. Change
function custom_pagers_block_view($block_name = '')
to
function custom_pagers_block_view($delta = '')
in custom_pagers.module (or apply the attached patch). With this change, the code posted by Kim works for me. Thanks!
Comment #25
edsko commentedThe code as posted does not work when you use tokens to pass arguments to views. The attached patch resolves this.
Comment #26
sw3b commentedWith the modifications on #24 and #25 it does the trick.
Comment #27
letzel commentedsub
Comment #28
gadams commentedsubscribing
Comment #29
eaton commentedKim, thanks for the great work on this - I've pushed your repo tothe 7.x-.x branch and will be integrating the small patches from this thread.
Comment #30
schmook commentedsubscribing
Comment #31
likewhoa commentedsubscribing
Comment #32
paulgemini commentedsubscribing!
Comment #33
tinokreutzer commented+1
Comment #34
likewhoa commentedComment #35
Argus commentedsubscribing
Comment #36
kemsnake commentedin my site i view pager only in block
do i need make any changes in my theme or simple copy custom-pager.tpl.php in theme directory?
Comment #37
kemsnake commentedi found error in hook_node_view
drupal7 markup elements has '#markup' attribute instead 'value'
changed hook
Comment #38
Trunkhorn commentedsub
Comment #39
hobocta commentedSubscribing
Comment #40
ElleKitty commentedsubscribe
Comment #41
joostvdl commentedsubscribe
Comment #42
iaminawe commentedsubscribe
Comment #43
remaye commentedI tried drupal 7 version in #17 (with patches #24 & #25) and came to this :
Notice : Undefined offset: -1 in pager_entries_by_key() (line 260 in ..../custom_pagers/custom_pagers.module).and pager is not showing up.
Found also that there is no token listed in the "Placeholder tokens" section in custom_pager admin form and if I add [term-id] in the "View arguments" section, I have in addition and before the previous error :
Sorry, I'm not familiar enough with custom_pagers (and Drupal code) to help debugging any further. Just reporting my own experience, if it can help...
Drupal 7.0 / Views : 7.x-3.x-dev
custom_pagers-5f57e9d from https://github.com/previousnext/custom_pagers
Patch #24 and #25 applied
The view used for custom pager is a simple unformatted list displaying node-teaser from a specified type with term-id as argument.
Comment #44
SeriousMatters commentedsubscribe
Comment #45
torgospizzaSubscribing with great interest!
EDIT to add that we're using the D7 branch from the github repo, with the aforementioned patches, and it works great! I've got it setup to pull from a View and place the pager in a Sidebar block, which I was then able to add to a Panel pane. You can see it in action here: http://www.legend3d.com/work (click on any film thumbnail).
Comment #46
webankit commentedApplying the patches
Notice: Undefined property: stdClass::$nid in custom_pagers_plugin_style_php_array->render() (line 19 of /home2/unitinga/public_html/spicmacay/demo/sites/all/modules/custom pagers/views/custom_pagers_plugin_style_php_array.inc).
{10-15times}
Notice: Undefined offset: -1 in pager_entries_by_key() (line 260 of /home2/unitinga/public_html/spicmacay/demo/sites/all/modules/custom pagers/custom_pagers.module).
Notice: Undefined offset: -1 in pager_entries_by_key() (line 260 of /home2/unitinga/public_html/spicmacay/demo/sites/all/modules/custom pagers/custom_pagers.module).
Notice: Undefined offset: -1 in pager_entries_by_key() (line 260 of /home2/unitinga/public_html/spicmacay/demo/sites/all/modules/custom pagers/custom_pagers.module).
Notice: Undefined offset: -1 in pager_entries_by_key() (line 260 of /home2/unitinga/public_html/spicmacay/demo/sites/all/modules/custom pagers/custom_pagers.module).
Notice: Undefined offset: -1 in pager_entries_by_key() (line 260 of /home2/unitinga/public_html/spicmacay/demo/sites/all/modules/custom pagers/custom_pagers.module).
Comment #47
protools commentedsub
Comment #48
likewhoa commentedComment #49
mrpauldriver commentedsub
Comment #50
wilgrace commentedThanks guys, I've got this working as per #45 - see here http://www.massiveinteractive.com/our-work
One minor issue - it seems to break when Block Cache is enabled under Performance. I'm using custom pagers as a block (I couldnt get it to appear in the node header)
Very good though - this is currently the only D7 module with this functionality
Comment #51
torgospizzaBlock Cache has been known to break things. The module is probably missing some code to handle that - as one might expect with pre-release code, there are bound to be bugs. You should submit an issue for that particular problem.
Comment #52
Anonymous (not verified) commentedSince this is now basically working, could a D7 -dev version be put on the main project page, for the benefit of those who don't want to mess with git? Thanks!
Comment #53
eaton commentedI'll be taking another crack at getting this updated this week -- sorry for the delays and thanks for the assistance in getting it updated, everyone. ;-)
Comment #54
tchopshop commentedCan this D7 version be used with users instead of nodes?
Comment #55
yareckon commentedthanks eaton!
Comment #56
eaton commentedAt present, no. Once the solid D7 version is out, I'll be looking at a new version that takes advantage of EntityAPI, not unlike EVA module.
Comment #57
zambrey commentedsubscribe
Comment #58
13rac1 commentedPer #29, the 7.x-1.x branch should be the code from the repo in #17, but it isn't. The attached git patch applies to the code in the 7.x-1.x branch. It incorporates the code from #17, plus all attached patches, described code changes and some minor cleanup. I haven't looked further into the issue described in #43.
To use:
git clone --branch 7.x-1.x http://git.drupal.org/project/custom_pagers.git
git apply -v [path]/custom_pagers-7.x-995286-58.patch
Comment #59
pp commentedI tried it, It works fine for me.
I have a question:
Why not use php_eval() for PHPcode proccessing same like block.module? "if (module_exists('php'))" and php_eval() funtion instead of eval and custom permission?
http://api.drupal.org/api/drupal/modules--block--block.module/function/b...
Comment #60
13rac1 commentedIf it works, you should set this to RTBC, or leave it on Needs Review.
Can you open a different issue for the php_eval() question? It isn't really related to this basic request for a 7.x-1.x release. Thanks!
Comment #61
skizzo commentedsubscribing
Comment #62
pp commented"It isn't really related to this basic request for a 7.x-1.x release. Thanks!"
Yes, you are right.
Comment #63
ccshannon commentedsubscribe
Comment #64
schmook commentedsubscribe
Comment #65
chriz001 commentedsubscribe
Comment #66
combicart commentedsubscribe
Comment #67
opdaviesSubscribing
Comment #68
Jarviss commentedsubscribe
Comment #69
BeaPower commentedsub
Comment #70
segovia94 commentedsubscribe
Comment #71
pavlosdanFollowed the instructions from #58 and was able to successfully create a pager showing a few fields (namely image, title, date posted and Previous/Next) for each node instead of just Previous/Next.
Used Display Suite to achieve this. Added a small how to in the documentation here: http://drupal.org/node/387786#comment-4926686
Thanks for all the work on this.
Pavlos
Edit: +1 for D7 release
Comment #72
opdavies+1
#58 works for me too!
Comment #73
MGParisi commented+1 and Subscribe
Comment #74
k4v commented+1
thanks, #58 works for me. great module!
Comment #75
off commentedHow can i applying rhis patch
ssh: patch < custom_pagers-7.x-995286-58.patch from same directory leads to an error
Comment #76
Argus commented#58 seems ready to be committed so more people can test.
Eaton we needz a 7.x-1.x-dev version to move ahead!
Comment #77
off commentedAnybody, please upload fixed version here
Comment #78
torgospizza@OFF: Please read http://drupal.org/patch/apply
Comment #79
eaton commentedcommitted to the 7.x branch -- at a loooong last. Sorry for the delays with this one, and thanks for the patience!
Comment #80
13rac1 commentedThanks! Can we get a 7.x-1.x dev release too?
Comment #81
eaton commentedI'm running it through a couple of quick paces to make sure it's not totally borked (as it was after my ill-fated commit) and will then roll the -dev release.
Comment #82
torgospizzaAwesome! Thanks, Jeff!
Comment #83
Macronomicus commentedsub
Comment #84
michaelfillier commented+1 and Subscribe
Comment #85
MGParisi commentedThis is now published!
Comment #86
Argus commentedGreat, thank you!
Comment #88
doublejosh commented#1538882: Blocks (view powered) don't work
Anyone care to help get blocks working? Need help from someone who knows view handlers.
Comment #89
doublejosh commentedComment #90
Argus commentedCould you please file a new issue with specific details on what your problem is?
Ah you already did: #1538882: Blocks (view powered) don't work
No need to open old threads!