Allow pure base themes to be designated as "abstract" so they can't be enabled

Created on 3 June 2009, about 15 years ago
Updated 30 January 2024, 5 months ago

During the "Drupal Design Round Table" episode of the Lullabot Podcast (http://www.lullabot.com/audiocast/podcast-74-drupal-design-round-table), there was some discussion of how contrib theme authors should put comments in their themes discouraging hacking of the theme and encouraging themers to create sub-themes instead.

This would be particularly helpful for starter themes like Zen and Blueprint. However, it occurred to me that these starter themes could also benefit from a programmatic solution, because they are themes that should NEVER be used directly, whether in hacked or original form. They should only be the base theme used for a sub-theme.

So, my idea: Add a theme setting (for theme .info files) that allows a theme to be designated as a starter theme only, and disables it in the interface at /admin/build/themes/select, while also providing some help text. See the attached image for a mock up.

The .info setting could be something like "type = abstract" or anything along those lines.

✨ Feature request
Status

Closed: outdated

Version

11.0 🔥

Component
Theme  →

Last updated about 3 hours ago

Created by

🇺🇸United States bradweikel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone New Zealand

    @bradweikel, thanks for helping to improve Drupal!

    I don't know when it was introduced to themes but theme can use 'hidden' in their info.yml file.

    Therefore. closing this as outdated.

Production build 0.69.0 2024