Replace hook_help() hacks with a cleaner solution for the dynamic headers on issue views

dww - January 30, 2009 - 06:15
Project:Project issue tracking
Version:6.x-1.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:dww
Status:active
Issue tags:6.x-1.0 blocker, drupal.org redesign
Description

To run on d.o, we can't have a PHP filter for the header for the default issue views, even though that'd be the easy way to have the nice little set of links across the top of the issue pages, and for #359130: Convert the "My projects" page to a view.

#1

dww - January 30, 2009 - 06:21
Status:active» needs work

Here's a start of a display plugin, and views sees it as a choice, but when I try to add it, I get JS errors and other badness. Not sure how to actually debug this.

AttachmentSize
366542-1.project_issue_display_plugin.patch 4.12 KB

#2

dww - April 22, 2009 - 00:35
Title:Add display plugin for issue views to do our own custom header without PHP filter» Replace hook_help() hacks with a cleaner solution for the dynamic headers on issue views
Status:needs work» active

Whoops, I forgot about this issue when I submitted #406578: Replace hook_help() hacks with a cleaner solution for the dynamic headers on issue views ;)

The plan I listed there was:

- extend the attachment display plugin into a "Project issue header" subclass
- in this kind of attachment display, have the options I need to select what kinds of links you want
- in the display plugin's render() method, invoke the right function to generate the desired links
- fix the default issue views to use a properly configured attachment
- rip out the nasty inside project_issue_help()

I haven't messed with attachments yet, but this should hopefully be fairly straight forward...

Also, the fact we're using hook_help() is causing grief for the d.o redesign, we should make sure we have a real solution before the redesign launch...

#3

fuzzy_texan - April 23, 2009 - 02:06

#4

marcp - October 6, 2009 - 22:53

Is the hook_help() hack one we can live with for now, or is it still a 6.x-1.0 blocker?

#5

dww - October 7, 2009 - 00:13

It's pretty whack. I'd really like to replace it. It looks completely stupid on a lot of sites that have themes which don't just render the help text at the top of the page. The redesigned drupal.org theme, for example, does completely weird things with the help div. I've run into at least 2 other sites that had this problem, too...

#6

dww - November 26, 2009 - 00:47

There might be a native solution for this in views via #510284: Header/footer/empty text pluggable, and merlinofchaos might even agree to backport that to Views2 since we need it on d.o. That'd be a lot better than what I proposed at #2...

 
 

Drupal is a registered trademark of Dries Buytaert.