?
avatar Scrabble96
Scrabble96
1 Jan 2019

Steps to reproduce the issue

System-> Templates-> Site template styles-> select template and then click [ Delete ] button.

Expected result

To be able to delete the template (one I had installed)

Actual result

Error message with instructions carried over, I think, from Joomla! 3x:
Error
Can't delete the last style of a template. To uninstall/delete a
template go to: Extensions-> Manage-> Manage-> Select template to be
deleted-> Select 'Uninstall'."

  1. Why is there a delete button if it can't be used?
  2. The message should read as:
    Error
    Can't delete a template here. To uninstall/delete a
    template go to: System-> Manage-> Extensions-> Select template to be
    deleted-> Select 'Uninstall'.

System information (as much as possible)

J4 Alpha 7 nightly build 31/12/18-01/01/19

Additional comments

avatar Scrabble96 Scrabble96 - open - 1 Jan 2019
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jan 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Jan 2019
avatar Quy Quy - change - 1 Jan 2019
Title
Incorrect instructions in error message
[4.0] Incorrect instructions in error message
Build staging 4.0-dev
avatar joomla-cms-bot joomla-cms-bot - edited - 1 Jan 2019
avatar ReLater
ReLater - comment - 1 Jan 2019

Why is there a delete button if it can't be used?

  • Your in the styles view.
  • The button is for deleting STYLES of templates, not for uninstalling templates. Any template can have several styles. But needs at least 1 style.
  • And you can install several templates with several styles.
  • So, the message is correct if you try to delete the last style of a template.

Should Joomla first check if all installed templates have just one style and then hide the Delete button? I think that would be a bit too much.

avatar Scrabble96
Scrabble96 - comment - 1 Jan 2019

Ok. Thanks, @ReLater regarding STYLES.

The message breadcrumb, however, is still wrong as to delete a template you no longer go through
Extensions-> Manage-> Manage-> Select template but via
System-> Manage-> Extensions-> Select template,
so that does need changing.

avatar Scrabble96
Scrabble96 - comment - 10 Jan 2019

I have searched and searched the administrator language files in the code here on github but I cannot find where this text is stored so that I can fork it and suggest a correction as these instructions are for Joomla! 3x not 4x:

image

avatar ReLater
ReLater - comment - 11 Jan 2019

First select the right branch. Then navigate to administrator/language/en-GB/en-GB.com_templates.ini
11-01-_2019_02-48-06

avatar Scrabble96
Scrabble96 - comment - 11 Jan 2019

Thank you, @ReLater
That's what I did yesterday, but for some reason (I was probably too tired and should have left it until today), I couldn't see the administrator/language/en-GB/en-GB.com_templates.ini file. Today I can.

avatar Scrabble96 Scrabble96 - close - 11 Jan 2019
avatar Scrabble96 Scrabble96 - change - 11 Jan 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-01-11 10:56:03
Closed_By Scrabble96

Add a Comment

Login with GitHub to post a comment