Problem/Motivation

The starterkit theme at the moment contain some pretty specific templates, such as ones that are rendering the media library. I don't think we should move the maintenance burden of those templates to the theme maintainers by default, since I assume that most themes won't be providing custom markup for some of the templates like media library.

Proposed resolution

Identify list of templates to remove from starterkit theme. In #3280059: Mark "product" related templates and CSS internal some of those should be marked internal both in the modules and Stable themes.

Remaining tasks

  1. Compose list of templates that should be marked internal
  2. Open MR that removes them + related assets/preprocess calls from the starterkit theme

User interface changes

API changes

Data model changes

Release notes snippet

Several unneeded templates and their corresponding assets were removed from the default Starterkit generated theme. Review the change record for information on specific templates.

CommentFileSizeAuthor
#7 interdiff.txt463 byteslauriii
#7 3253286-7.patch56.86 KBlauriii
#6 3253286-6.patch56.82 KBlauriii
#4 3253286-4.patch38.71 KBlauriii

Comments

lauriii created an issue. See original summary.

lauriii’s picture

We have started composing a list of templates to mark internal in https://docs.google.com/spreadsheets/d/1ljrNuDr_UgQJGjhH1CDjPbx7aRODnaOJ...

ckrina’s picture

Most of the templates existing right now in Starterkit come from Classy, right? Because for most of them the main improvement they add is adding extra classes and markup to the core ones. So I guess the dilemma would be to ship core with very few classes or give this option to override that.
One question I'd have is if starterkit need to ship with folders like content-edit that provide templates to edit content.

lauriii’s picture

Title: Mark some templates internal and remove them from starterkit theme » Identify internal templates and remove them from starterkit theme
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new38.71 KB

I'm changing the proposal to do the actual mechanics of marking templates in a follow-up since it shouldn't be a hard requirement for starterkit theme. The hard requirement for starterkit theme is to remove templates we don't want everyone to override because we might want to change them later in core. Here's a patch which is based on the work that we did on the spreadsheet in #2. On top of that, I removed templates related to Book, RDF, Aggregator, and Forum in preparation to those modules being removed from core, and also not mapping to the 80% use case.

lauriii’s picture

Issue tags: +Needs follow-up
lauriii’s picture

StatusFileSize
new56.82 KB

Went ahead and also removed CSS, libraries and preprocess functions related to the templates I'm proposing to remove in #4.

lauriii’s picture

StatusFileSize
new56.86 KB
new463 bytes
lauriii’s picture

Issue summary: View changes
Issue tags: +Needs change record

Discussed with @xjm and she pointed out that we need a change record for this.

catch’s picture

Title: Identify internal templates and remove them from starterkit theme » Remove unnecessary template overrides and associated code from starterkit theme

Good idea to trim down starterkit first. Re-titling to reflect current status.

bnjmnm’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

I created & composed a change record and reviewed the patch. The templates chosen for review have a good rationale, and it looks they & the related assets were properly removed.

lauriii’s picture

Issue summary: View changes
Issue tags: -Needs follow-up, -Needs change record
Related issues: +#3280059: Mark "product" related templates and CSS internal

CR looks great!

Also opened follow-up for marking some of those templates internal.

alexpott credited xjm.

alexpott’s picture

Version: 10.0.x-dev » 9.4.x-dev
Status: Reviewed & tested by the community » Fixed

I agree that a smaller starterkit to start with is helpful. We can always add things later - and remove other things. That's one of the points of doing this work in the first place.

Committed 4713051 and pushed to 10.0.x. Thanks!
Committed and pushed 3fe2df7177 to 9.5.x and 3680d86a12 to 9.4.x. Thanks!

  • alexpott committed 4713051 on 10.0.x
    Issue #3253286 by lauriii, ckrina, bnjmnm, xjm: Remove unnecessary...

  • alexpott committed 3fe2df7 on 9.5.x
    Issue #3253286 by lauriii, ckrina, bnjmnm, xjm: Remove unnecessary...

  • alexpott committed 3680d86 on 9.4.x
    Issue #3253286 by lauriii, ckrina, bnjmnm, xjm: Remove unnecessary...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.