Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2006 at 20:47 UTC
Updated:
21 Dec 2006 at 06:31 UTC
Hello people! I've been playing a little with drupal 5 and i like it. I like very much the cck+views idea.
I modified views_theme_wizard.module to generate a third chunk of code, a stylesheet with all the divs classes used in the other two chunks generating the template php code.
It also adds a line to the xxxx.tpl.php to add the generated stylesheet.
This makes the wizard still more fun to use and easy to customize the result, not having to look at the source to find what divs are created.
The css selectors come out empty, but they are all there.
I'm posting a diff patch so you can try it out also.
| Comment | File | Size | Author |
|---|---|---|---|
| views_theme_wizard.module.patch | 3.31 KB | claus2080 |
Comments
Comment #1
dodorama commentedComment #2
merlinofchaos commentedCommitted to both 4.7 and 5 -- the 4.7 version doesn't have drupal_add_css so I simplified it to say to just add it to your style.css.
This'll go out with the next release.
Comment #3
efolia commentedHi,
Under 4.7.x, there's a conflict between the use of the views_css_safe function and the stylesheet part of the theme generator.
Quick example: for a CCK content type (which use underlines in field names), the tpl.php generator will print this:
<div class="view-label view-field-field_abstract_value">but the CSS part will print this:
.view-field-field-abstract-value {See lines 313 and 315 of the views_theme_wizard.module.
File under *irony* ;-)
Cheers
Comment #4
merlinofchaos commentedDOH!!!
Good catch.
Comment #5
merlinofchaos commentedFixed in HEAD and 4.7 dev branch, and while I was in there I saw dates were not being populated so I fixed those as a bonus.
Comment #6
(not verified) commented