Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc1
Component:
Documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2008 at 00:07 UTC
Updated:
24 Sep 2008 at 20:54 UTC
Hello
After hour of painfull debugging I got that documentation of theme.inc is lying about template suggestions. For example:
* - views-view--page--foobar.tpl.php
* - views-view--page.tpl.php
* - views-view--foobar.tpl.php
* - views-view.tpl.php
*
* - views-view-unformatted--page--foobar.tpl.php
* - views-view-unformatted--page.tpl.php
* - views-view-unformatted--foobar.tpl.php
* - views-view-unformatted.tpl.php
But in real world, templates looks like:
views-view-unformatted--foobar--page.tpl.php
("page" is in the end)
I prepared patch to fix this. Hope it saves hours of debugging their themes for other folks.
| Comment | File | Size | Author |
|---|---|---|---|
| views_theme_inc.patch | 853 bytes | neochief |
Comments
Comment #1
neochief commentedComment #2
merlinofchaos commentedWhile I agree that this documentation is wrong, I'm surprised it even affected you. The 'theme: information' on every view gives precise template naming suggestions and is referenced in almost all of the theming documentation.
Comment #3
neochief commentedGee, thanks! I didn't noticed that link before. Just migrated from D5 and still doing things as usual — scanning the source code :)
Comment #4
merlinofchaos commentedCommitted to HEAD. Thanks for the patch!
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.