| Project: | Drupal core |
| Version: | 6.x-dev |
| Component: | theme system |
| Category: | task |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
These three modules that look like they could use some conversions. As far as modules go, I don't think anything else needs converting.
- search --Currently working
- tracker --Maybe, maybe not?
- aggregator --postponed?
Converted and commited:
- poll: http://drupal.org/node/162871 --part of a bigger patch
- user: http://drupal.org/node/161510
- profile: http://drupal.org/node/162134
- block: http://drupal.org/node/159936
- forum: http://drupal.org/node/158536
- comment: http://drupal.org/node/160589
Converted and still open:
- theme.inc: http://drupal.org/node/141914
- book: http://drupal.org/node/160200
- actions: http://drupal.org/node/159862
Other related patches
- maintenance tpl: http://drupal.org/node/141727 --core commiters, please take a look.
- Related to forum templates. Adds ID's to the forum templates: http://drupal.org/node/53905
I'll change this into an issue for search.module once I have a patch up.
Comments
#1
Lots of changes..
Name changes:
- *search_page to *search_results
- - It wasn't actually a page. All it does is wrap the results. Form fields above it are not even part of this template.
- *search_item to *search_result
- - I think it makes more sense.
Removed '_keys' suffix for the form ID. They were already unique and it made the variable key for the .tpl longer then it needed to be.
Search forms broken up for each input. Makes it easier to replace a submit button with a graphic. This is done often.
Template suggestions provided based on type of search. "user" or "node". Class also added in the parent template based on type.
Small modification to node.module so $result['extra'] array that gets passed to template_preprocess_search_result() are all keyed. This makes it easier for themers to alter the $info_split array inside search-result.tpl.php. (search result meta information).
Removed a ruleset for search.css. ".search-form p" doesn't even exist.
For the theme functions to work, another patch must be applied due to a bug.
http://drupal.org/node/164351#comment-285126
Thanks for reviewing.
#2
#3
Small fix on template suggestion.
#4
Forgot the -N parameter. Here it is again with the .tpl files.
#5
Quick review:
CVS Id tags broken and missing blank line after cvs id tags
#6
Thanks for looking but the cvs id tags are not broke. They are new files. It'll automatically get converted once it's commited. And I believe the blank line isn't an issue since my other patches that were formed the same way got committed.
#7
The cvs id tag won't converted because the tag is
$Id$and not$Id.The blank line is needed to make the files consistent.
Please take a look at http://drupal.org/node/164935. Thanks
#8
Okay, still a relative CVS noob.
#9
Rerolled for latest head.
#10
And another update to keep up with head.
#11
Patch works as advertised. I've tried every .tpl.php file and they all worked. I didn't test every available variable though.
I also went through the descriptions in each tpl.php file. Minor fixes:
- spelling ("existance" -> "existence", "dependant" -> "dependent")
- style (lines longer/shorter than 78 characters)
Updated patch attached.
#12
The new files weren't included, my bad. Updated patch.
#13
Thanks Wim Leers, here it is again after the split patch..
I'd say this is ready, please before it breaks again... :)
#14
arg, left a stray drupal_rebuild_theme_registry()..
#15
why did you change node.module's node_invoke_nodeapi
#16
It's because what I mentioned above:
#17
sorry
#18
Bot, please review this. I'm hoping this works
#19
maybe now - trying again
#20
you upload is 0 bytes!
upload again, please
#21
oops
#22
Needed a re-roll but seems to work according to my testing.
#23
Correct patch.
#24
The theme_search_block_form() function is vestigial and now never used, so I removed it. Everything else looks sane to me.
#25
Alright, this looks useful. Committed to CVS HEAD. Thanks.
#26
Automatically closed -- issue fixed for two weeks with no activity.