Closed (fixed)
Project:
Views Alpha Pager
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2008 at 07:08 UTC
Updated:
17 Mar 2008 at 15:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
douggreen commentedThis patch doesn't look very clean to me. Why all the extra #weight's?
I've had this request several times, and I've told people that they should do this in theming. However, if you can implement this as a view level setting, and store the information in the views_alpha_pager table, I'd consider it.
The extra table was created so that we don't clutter the variables table with views specific variables (each row in the variables table causes extra data to be retrieved), and the field wasn't tagged onto the views table because (a) that's considered bad form, and (b) breaks with schema api.
Comment #2
johnalbinThe extra weights are there because that form doesn't have any weights, so there's no way to insert the use_pager_all checkbox directly before
$form['page-info']['breadcrumb_no_home']. Do you know of a way to insert an element as, for example, the 6th element when the array's keys aren't number based? I couldn't figure out how to do it with any of php's array_* functions. Do you have any insights?The easiest way to do this on the theme layer would be to
display: noneon the "All" links CSS class. But the "All" link doesn't have a class. If I created a patch that added a class, would you find that more acceptable than adding a field to the db?Thanks for the module, btw!
Comment #3
douggreen commented"Theming" also refers to the php override functions that you can put in template.php. I've used lots of theme() calls in views_alpha_pager so that you can do just this sort of thing. For example, you can override theme_alpha_pager, as-in:
Comment #4
johnalbinI actually use phptemplate_alpha_pager() in one of my sites to add a “|” between letters (blame the client.) But manipulating that theme function to do an exclusion when
"$item" == "*"is beyond most theme developers.Here’s a patch which adds a “pager-x”-style class to each letter. And “pager-0” and “pager-all” to # and All.
Comment #5
douggreen commentedCommitted, Thanks!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.