Here's an area handler that I've had to use on two projects now (D6 and D7). Would be useful in Views core?
May need some cleanup.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | views-result_counter_export-1137892-5.patch | 502 bytes | tnightingale |
| #2 | Screen shot 2011-04-25 at 2.06.53 PM.png | 32.67 KB | agentrickard |
| #1 | custom_handler_area_search_header.inc_.txt | 2.58 KB | agentrickard |
Comments
Comment #1
agentrickardAnd the file. Which is just an area handler. Needs a hook_views_data bit, below.
Comment #2
agentrickardSample usage.
Comment #3
dawehnerA lit
The default handler already does nothing.
This should be 'translatable'
Wouldn't it be possible to use the views tokens system here?
I'm wondering whether we could somehow reuse/share the stuff from the field count handler. It's quite an amount of code
Powered by Dreditor.
Comment #4
dawehnerIn general i really like this feature, as it can drop the amount of ugly template-code you need a lot.
Committed a version with some renaming and improvements.
Comment #5
tnightingale commentedThis is an excellent feature!
Currently it doesn't export correctly as it doesn't add its options definition to the array returned from the call to parent::option_definition().
Here's a patch.
Comment #6
dawehnerOhhhhhhh thanks! Committed to 7.x-3.x
Comment #7
windmaomao commentedI saw this feature is turned on in Drupal 7.x - 3.x . Really really nice, i really like it. Thanks a million.
Comment #8
tamasco commentedI am using drupal 6 with views 2. How can I use this code in my case? I am sure the above feature is not yet implemented in views 2.
Comment #9
mustanggb commented