Closed (fixed)
Project:
Project
Version:
6.x-1.x-dev
Component:
Projects
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2009 at 08:46 UTC
Updated:
27 Jul 2010 at 19:00 UTC
Jump to comment: Most recent file
Add vocabularies for:
- Number of columns: 1, 2, 3, 4
- Fixed or fluid
- Resolution: 800x600, 1024x768, 1280x1024
Themers should be able to tag their theme with these terms before the redesign, so we can have them as useful facets once we launch.
| Comment | File | Size | Author |
|---|---|---|---|
| #36 | drupalorg_project-staging9-csevbg10.patch | 1.92 KB | drumm |
| #32 | 371957-32.project-taxonomy-skip-self.patch | 1.24 KB | dww |
| #30 | 371957_project_bdragon_10.patch | 11.33 KB | bdragon |
| #29 | 371957_project_bdragon_9.patch | 11.07 KB | bdragon |
| #27 | 371957_project_bdragon_8.patch | 9.55 KB | bdragon |
Comments
Comment #1
gábor hojtsyThese appear on the theme listing page:
http://infrastructure.drupal.org/drupal.org-style-guide/prototype/themes...
These also appear as "conditional facets" on the search page, once someone refines for themes:
http://infrastructure.drupal.org/drupal.org-style-guide/prototype/search...
Comment #2
jpoesen commentedComment #3
gábor hojtsyhttp://drupal.org/node/372061 solved at the same time.
Comment #4
lisarex commentedMoved to the Redesign project
Comment #5
csevb10 commentedHere's the way I've got the problem solved locally.
First, I want to validate the solution, then, if it works, I'll start creating/posting patches to make it happen:
1. I made changes in 2 places - project module and drupalorg module. Before anyone gets excited, the changes to project module are not specific to an implementation on drupal.org, however, they do allow any other project-utilizing site to, potentially, include other bits of data dynamically in the way that the module list is dynamically shown/hidden. The changes to project module (.inc & .js) are pretty small.
2. I added code to drupalorg_project to add selections on the vocabulary pages to associate vocabularies to top-level terms in the project taxonomy. I am currently storing them in the variable table, but I could put them in a custom table if that makes more sense.
3. I added a small class modification to the relevant vocabularies to get them to bounce into the fieldset (in a location similar to the module categories).
Let me know if, conceptually this seems in line with what you're thinking. If so, this should make it usable by any of the other sections as well (additional module facets? Install profile facets?) without writing additional code. I'll clean up what I have and post as patches to the relevant projects if the concept seems inline with expectation.
Comment #6
csevb10 commentedShifting this to "needs review" in an effort to get more eyeballs.
Comment #7
gerhard killesreiter commentedTo review such changes (especially for project module) we need to see the actual patch.
Comment #8
csevb10 commentedI was hoping someone might be able to validate the idea first, but here is the patch for the project module.
If you need the patches for drupalorg, too, to determine whether the project patch makes sense, I'll find time this afternoon to clean up those files as well and generate patches.
Comment #9
csevb10 commentedAttached are the drupalorg module (drupalorg_project.module) changes. This should provide full context of what is being changed, why it's being changed, and how we're getting relevant vocabularies into the appropriate area.
Comment #10
damien tournoud commentedI believe that approach makes sense, but the changes in the Project module need to be documented a little bit better.
Also, we can largely live without the admin UI parts in the drupalorg module.
Comment #11
csevb10 commentedAttached are re-rolled patches, correcting 1 mistake and providing better inline documentation.
Not sure what you mean about the "admin UI parts" (the changes to the taxonomy page?). Is so, would you prefer I move everything into project module? or am I misunderstanding?
Also, as soon as this moves forward, we can start pushing the front end blocks for search faceting per section, so this continues to be a priority issue for that work.
Comment #12
gerhard killesreiter commentedI believe we shouldn't use the ! escape here.
Powered by Dreditor.
Comment #13
csevb10 commentedSwitching ! to @.
Reposting both patches so that drupalorg patch doesn't get lost.
Comment #14
dwwSince csevb10 pinged me via email about this, I should clarify:
A) I'm currently traveling, and not in a good space to work on this.
B) I've been juggling a ton of crap the last few weeks, and a lot of personal difficulty has been consuming a large portion of my time and attention. :(
C) I know this stuff is blocking some progress, but I'm not a bottleneck of one. There are some other Project* maintainers. You could talk to hunmonk or bdragon. Also, mikey_p has been doing great work with Project* these days. I'd also trust DamZ to do the right thing with these patches.
D) I think everyone agrees that fundamentally we're going to have these different taxonomy vocabularies on project nodes, even if the exact implementation details of the UI change a bit. So, it seems like y'all could plow ahead with the D&E implementation on many fronts, even without this patch. I don't think if anything needs to change in here as a result of careful review and testing that it's going to fundamentally impact how the rest of the D&E implementation needs to work.
Good luck sprinting on Friday, wish I could join you (but I can't).
Cheers,
-Derek
Comment #15
gerhard killesreiter commentedThe patches look ok to me. You can certainly apply the drupalorg stuff. Not sure how to handle the project* patch. We could apply it locally to our svn...
Comment #16
hunmonk commenteddww and i had a chance to look at this today. here are the major issues that need to be fixed in order to move forward:
Comment #17
hunmonk commentedone more thing: the drupalorg patch was rolled against the HEAD branch, and we're running the 6.x branch on d.o currently, so you may want to adjust for that...
Comment #18
bdragon commentedPoking at this in the coding room.
Comment #19
bdragon commented* Do everything on the project side.
* Address #16 a, b, and c.
B was actually a previously existing problem when changing project types. Removed the line that was removing the selection and added a submit handler to remove the vocabularies we need to clear the terms from when saving. This also addressed C.
Comment #20
bdragon commented* Fix typo that was nuking the vocabularies fieldset when vocabularies not assigned to project types existed.
Comment #21
bdragon commented* Fix a couple issues in the settings form.
* Clean up variables in hook_uninstall.
Comment #22
bdragon commentedStill some problems with the JS. Rewriting the code that deletes the fieldset.
Comment #23
bdragon commented* Kinder, more gentler fieldset handling that actually works correctly. I hope.
Comment #24
bdragon commentedRemove debugging code.
Comment #25
bdragon commented* Fix some nits pointed out by dww.
* Remove some bogus validation code.
Comment #26
hunmonk commentedlooks like the form is broken, probably by the adjustments to the weird hacking we do:
warning: Missing argument 2 for theme_form_element() in /Users/hunmonk/Sites/drupal/core_remote/drupal-6/includes/form.inc on line 2198
extra vocabs that are associated w/ project types are not being moved to the project type fieldset.
Comment #27
bdragon commentedOK, I figured out what's up.
Lets try this one.
Comment #28
bdragon commentedFingers crossed.
Comment #29
bdragon commented* Less hacky (in theory?) vocab wrangling, add a validator for preventing turning a vocab into a freetagging vocabulary while it is associated with a project type.
Comment #30
bdragon commented* Document an icky section.
Comment #31
hunmonk commentedcommitted to 6.x-1.x-dev, finally!
thanks to all who helped with this patch.
i'm guessing that there's no hurry to deploy this on d.o now, since it's related to the redesign, so...
setting back to active for deployment, and moving to the project queue for that final step.
Comment #32
dwwWe should skip the 'Project type' vocabulary itself, too.
Comment #33
bdragon commentedTested on scratch, committed.
Agreed, makes sense. I had completely failed to notice that the project vocabulary doesn't actually get enabled for project_project.
http://drupal.org/cvs?commit=357928
Comment #34
csevb10 commentedJust wanted to say a special thanks for everyone reviewing and pushing this through, and improving the existing project logic. I appreciate all the time and energy that went into getting this done.
--Bill
Comment #35
dwwFYI: moving to presave created some PHP notices: http://drupal.org/cvs?commit=358710
Comment #36
drummAttached is the related drupalorg_project patch from staging9 by csevbg10
Comment #37
dwwNote: I just submitted #852342: Configure extra fields for theme projects as a webmaster issue about actually configuring the right vocabs on d.o. This issue should remain focused on the Project* plumbing to support this functionality.
Thanks,
-Derek
Comment #38
hunmonk commentedafter further discussion with csevb10 we determined that the patch in #36 is just noise, and that all of the necessary changes for this functionality have already been committed and deployed.
i retested the functionality to ensure that it was still working as intended, and does.
so i think we can finally put this sucker to bed.