User login

theming

Inline Read More links for teasers when output as one of several fields in a View with a row style of field

http://drupal.org/node/287812#comment-939923

See also:

displaying read more in teaser view list
http://drupal.org/node/513168

I did this with a crazy use of calling ed_readmore functions in template.php for a views template preprocess function. Do not attempt by trial and error, i can get the code from openmedia's repository.

Remove the main content title from the front page of the site

Sometimes we have a lot of blocks from views and such on our front page, going where the content usually goes, so we don't want our front page to be the /node stream. We could make it a View page but if all the other Views are blocks, it seems wrong to play favorites (and may be annoying for theming or changing things later). Plus, it's nice to have that one node for the little bit of (easily editable) static content.

Here's the function for "example" theme's template.php to remove the page title:

Theming update.php and install.php not possible- Drupal hardcodes them to use Minelli

Drupal hardcodes minelli to be the theme for the update.php and install.php pages. Stupid.

  • Minnelli is always used for the initial install and update operations. In
  • other cases, "settings.php" must have a "maintenance_theme" key set for the
  • $conf variable in order to change the maintenance theme.

    // Install and update pages are treated differently to prevent theming overrides.
    if (defined('MAINTENANCE_MODE') && (MAINTENANCE_MODE == 'install' || MAINTENANCE_MODE == 'update')) {
    $theme = 'minnelli';
    }

How make double rounded borders with CSS3 (and using an extra div)

I couldn't find a way to do this in straight CSS3.

A light colored border, a white (transparent) space in between, and a blue background, all rounded.

Also, note that by using CSS3, we are oh-so-subtly telling Internet Explorer users (before IE9, anyway) that we don't care that the site doesn't look as pretty as it does to people sensible enough to use good web browsers.

First, let's get the extra HTML out of the way.

Theming tips for module developers session by John Albin Walker at DCSF2010

Reuse a theme hook if you can!

links
image
image_style
item_list
username
file_link
html_tag
more_link
pager
progress_bar
table

See full list:
http://api.drupal.org/api/group/themeable/7

Advantages of re-using:

Creating a Subtheme in Drupal 7

Bear with us, and Drupal 7. There are some non-intuitive steps in the subtheming, but the power, simplicity of modifying, and relative ease of upgrading is worth it.

Views 2 Theming - The Presentation

the slides for my presentation on Views2 Theming given at design 4 drupal at the MIT Stata Center on June 13th, 2009 in room 141....

Taking it to that level with cufon

So you've got yourself a solid drupal theme, and now you're sitting back looking at your work and thinking that it's good, but it could still be taken to that level.

Well, replacing some titles, basically some h1s and h2s with custom rendered fonts is one way to get it there, and using cufon is the answer. Sure, you could use the Dynamic Rendering module and sifr and do pretty much the same thing, but c'mon, cufon just sounds cooler than sifr... and it'll only take you about ten minutes to do this

and we all know quick and easy is the answer...

Syndicate content