Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Archived entries for

Drupal 7 Theming Changes

In einem sehr ausführlichen Blog Post macht pingVision Apetit auf die Neuerungen in Drupal 7.

Die Änderungen sind der Hammer! Drupal ist schon jetzt mein bevorzugtes CMS und die Änderungen machen es deutlich besser und flexibler. Eine kleine aber extrem praktische Änderung:

Previously, node content was output with a simple <?php print $content; ?>. Now $content is an array containing all fields related to the node. The render() function takes all of this data and renders it to a proper string for output. So if all you wanted to do is show a simple, complete dump of the node fields, you would use <?php print render($content); ?> instead. This would be missing the real advantage, though.

How is this "granular"? There is another facet to this function and that is that individual elements can be output. For example, if you wanted to output just the links in a node template you would add <?php print render($content['links']); ?> to it. As a bonus, this small piece of content will be flagged as already printed. This means you can use <?php print render($content); ?> afterwards and it will output everything but the links portion.

Flexible Box Model

Was es nicht alles in CSS3 gibt:

David Baron (of Mozilla fame) is editing a long-overdue but totally awesome Flexible Box spec, aka: “hbox and vbox”. Both Gecko and WebKit-derived browsers (read: everything that’s not IE) supports hbox and vbox today, but using it can be a bit tedious. Should you be working on an app that can ignore IE (say, for a mobile phone), this should help make box layouts a bit easier to get started with:

via ajaxian

Dealing with large Background Images

Arley McBlain stellt auf Six Revisions seinen Ansatz vor große Background Images performant zu laden. Die Lösung in seinem Fall mehrere Bilder in unterschiedlichen Größen und ein JavaScript resolution sniffer.

What the JavaScript resolution sniffer does is detect the screen.width and apply the appropriate CSS image backgrounds.

Favicons

Bei Aral Balkan habe ich gerade was neues gelernt: Favions lassen sich auch als PNGs hinterlegen!

  • I ended up using a PNG instead of ICO after the ICO headaches with Firefox/Safari./
  • Don’t forget to add <link rel="icon" type="image/png" href="/favicon.png">

TypeKit Demo

Auf css-tricks kann man sich einen Eindruck verschaffen wie TypeKit funktioniert, wenn man denn einen Account bekommt.

Vor dem Hintergrund wie problematisch Fonts im Web sind ist das wirklich eine sehr schicke Lösung.



Copyright © 2004–2009. All rights reserved. – Impressum

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.