Subscribe to our bi-weekly audio podcast - The Lullabot Drupal Podcast, our daily interview snippets - Drupal Voices, our periodic videocasts,
or everything. Just choose your favorite podcast-listening application
or service and click away!
Drupal Voices 25: John Albin on Theming Improvements for Drupal 7
John has been at the center of trying to get more designers involved in making Drupal beautiful, and helped initiate the Birds of a Feather design track at Drupalcon, which he talks about more here.
Palantir has been involved with some innovative designs -- like the Herron School of Art & Design, which was nominated for a Webby -- and hopefully we can have some more out-of-the-box beautiful themes for Drupal 7.
Is there a plan to fix IE 6 transparency in core? Some core method where themes work out of the box instead of using an extra module such as pngfix or pngbehave?
I would be good to see a solution in core because now you're got to load the script from page.tpl.php, wrapped in a conditional comment, but the drupal way to do it would be to use drupal_add_js or load it from the theme's info file.
However, the jQuery pngfix script is known to cause crazy layout collapses, I've had it happen too. I'm sticking with the twinhelix pngfix for now but its not jQuery.
Haven't tried the pngbehave module btw, looks good.
The problem with any of the multiple methods of IE6 png fixes is the gawd-awful way in which they are forced to work. They swap the image with a activeX thingie that places the image as a top-left-aligned background image.
This can break images-as-links and won't work if you need anything other than top-left-aligned images. Which means CSS image sprites are impossible.
Basically, you can't apply a IE6 png fix globally to pngs because its almost guaranteed to break things. Which means you have to 1.) have a detailed understanding of how the fixes work and 2.) apply them on a case-by-case image-by-image basis.
Which means if D7 core had a png fix, the issue queues would fill up with people not knowing 1.) and ignoring 2.) and trying to apply it to all pngs on the site. So, those types of fixes will have to remain in contrib.
One IE6-related fix which is at least debatable on whether it should be in core is the Conditional Stylesheets module. I’m indifferent to the idea. Contrib is fine with me.
In IRC, gimpscape pointed out http://www.dillerdesign.com/experiment/DD_belatedPNG/. I haven't tried it yet, but it doesn't use the normal AlphaImageLoader method to fix PNGs. So it says its possible to do non-topleft positioning.
Comments
IE 6 trnsparency?
Is there a plan to fix IE 6 transparency in core? Some core method where themes work out of the box instead of using an extra module such as pngfix or pngbehave?
I would be good to see a
I would be good to see a solution in core because now you're got to load the script from page.tpl.php, wrapped in a conditional comment, but the drupal way to do it would be to use drupal_add_js or load it from the theme's info file.
However, the jQuery pngfix script is known to cause crazy layout collapses, I've had it happen too. I'm sticking with the twinhelix pngfix for now but its not jQuery.
Haven't tried the pngbehave module btw, looks good.
The problem with IE6 png fixes
The problem with any of the multiple methods of IE6 png fixes is the gawd-awful way in which they are forced to work. They swap the image with a activeX thingie that places the image as a top-left-aligned background image.
This can break images-as-links and won't work if you need anything other than top-left-aligned images. Which means CSS image sprites are impossible.
Basically, you can't apply a IE6 png fix globally to pngs because its almost guaranteed to break things. Which means you have to 1.) have a detailed understanding of how the fixes work and 2.) apply them on a case-by-case image-by-image basis.
Which means if D7 core had a png fix, the issue queues would fill up with people not knowing 1.) and ignoring 2.) and trying to apply it to all pngs on the site. So, those types of fixes will have to remain in contrib.
One IE6-related fix which is at least debatable on whether it should be in core is the Conditional Stylesheets module. I’m indifferent to the idea. Contrib is fine with me.
Non-AlphaImageLoader png fixer
In IRC, gimpscape pointed out http://www.dillerdesign.com/experiment/DD_belatedPNG/. I haven't tried it yet, but it doesn't use the normal AlphaImageLoader method to fix PNGs. So it says its possible to do non-topleft positioning.
Should be worth a look!