Posted by hunmonk on July 28, 2010 at 2:46pm
4 followers
| Project: | Drupal.org customizations |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | drupal.org redesign, drupal.org redesign project, drupal.org redesign sprint 1 |
Issue Summary
as part of the initial redesign deployment, the following solr-generated blocks need to be added to the main Download & Extend page:
- Most Installed
- Module Categories
- New Modules
generating the blocks should happened via something like #666120: Provide API to get the top N projects for various categories, so this issue is about getting the content into the template file for display.
Comments
#1
Right, the content itself is coming from two other issues:
#862240: Provide additional solr facets for advanced project browsing -- make sure we have all the facets defined that we care about
#868794: Add an apachesolr_result_block module to render solr facet results as blocks -- render the results into result blocks.
So this is *just* about making sure that content shows up in the theme preprocess function so the template can use it.
#2
Ok, I'm sure this can go through a lot of refinement, but this should pull across all of the necessary and useful elements from drupalorg_project_browsing in a cleaner, more unified way.
I'm loading only 3 blocks at present and I need to refer back to the block list to make sure the relevant elements get covered, but at least we can see how you would add blocks to the page.
This is a start, but let's refine it tomorrow to get it to where it needs to be. As always, open to any suggestions.
Thanks!
--Bill
#3
Rerolled to at least apply again given recent commits to drupalorg_search.module. I still need to talk to csevb10 about some things in here...
#4
Latest version with cleaned up items.
#5
More cleanup:
- fixed some typos in phpdoc
- moved drupalorg_search_block_render() into drupalorg.module itself since it might come in handy in other places, and it doesn't depend on solr or search at all
- added the theme('block') call directly to the function so it really does render the block for you (and fixed the phpdoc accordingly)
- fixed a lingering reference to 'sort_title' facet name
- added a comment to clarify the block delta as a unique key thing
#6
Another patch with the sql cleaned up + some whitespace issues.
#7
csevb10 committed this to HEAD of drupalorg, then I imported that into bzr vendor and deployed on redesign.d.o:
http://redesign.drupal.org/download
Bedtime! ;)
#8
Code committed to make /download work: http://drupal.org/cvs?commit=403286
Some work still exists for the page including:
#428292: Download & Extend Landing Page: Filter by version
Theming
And, modifications to the module categories block (shorten it + add "more" link)
#9
Automatically closed -- issue fixed for 2 weeks with no activity.