User login

Drupal

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.

drupal 6 delete all nodes by anonymous user

VBO (Views Bulk Operations, a great module) does an admiral job. I could only get it to work for about 250 at a time; 500 at a time didn't time out but instead weirdly caused a validation error. Also of note: Filtering by user, the autocomplete has anonymous as Anonymous even if you've renamed as Visitor or such. And there is no "anonymous" role to filter by so if going by role, it has to be an "everything but everything else" filter.

http://drupal.org/node/839850

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';
    }

Syndicate content