If you create a child template and then decide it sucks there is no ability to delete the child template
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-12-05 15:41:57 |
Closed_By | ⇒ | brianteeman |
Closing this - my fault. I tried to do what @dgrammatiko suggested before posting but i was checking on the wrong site
I know this is closed but it was very helpful as I was trying to delete a child template and was puzzled by the error which was something like Can't delete last style. Compounded by my lack of a full understanding between templates and styles, but that is another matter. My thought was could the error message be improved to point out that stuff about last style that to delete it must be uninstalled? Or is that too trivial?
My thought was could the error message be improved to point out that stuff about last style that to delete it must be uninstalled?
You could improve the message
@dgrammatiko
. I am sorry I don't understand your comment unless it is an attempt to take the piss out of an old man with limitations.
@PMWilliams123 what I meant was that the error message could be altered by you (or anyone who's got a better idea of what that message should be), probably we're talking about this:
@PMWilliams123 just to make sure that we are on the same page here, I didn't try to be a smart@$$ here, what I meant in my original response was that Joomla is Open Source and anyone could come up with any improvement. So if you think that the message is not clear please propose another one!
Thank you for that clarification but it seems to miss the point. Which is that not only a daft old person like I was confused about the error message but Brian Teeman, the co-founder of of joomla, also found if less than helpful, if only briefly. What earthly good does it do for anyone else in the Joomla community (or in the whole wide world) for me to add a language override (which I guess is what you are suggesting ) to just one of my sites. It will help me if I every forget again, which is always possible. What I was aiming at by my hastily typed comment was to help others who might encounter the same confusion. I thought that was the point of all this. As for proposing a different error message, I am not qualified to do that.
I'm afraid that you misunderstood what @dgrammatiko was saying - let me translate.
Please suggest a better text string that can be used. Then we can update Joomla to use your suggestion.
Sadly all too often I misunderstand and its getting more frequent as more brain cells check out.. I apologise for that.
As I said I "lack of a full understanding between templates and styles" hence I don't understated the message. "Can't delete the last style of a template." I though I was trying to delete the template and in fact hat is the solution - uninstall the child template). Clearly I need to learn more about templates and styles, I need to add it to the lengthening list of other things I need better to understand. And that is why I also said "As for proposing a different error message, I am not qualified to do that."
An error message along the lines of "Can't delete the last style of a template, to remove the template you need to uninstall it." But as I don't understand "Can't delete the last style of a template" when I am trying to delete a template I am not sure that it makes sense.
A style can be thought of as the configuration file for a template. Every template must have one (otherwise it doesnt know what template options to apply) and the cool thing is that you can have multiple configurations (styles) saved for each template.
"Can't delete the last style of a template. Did you intend to remove the template? Click here to uninstall the template"
??
Thank you that is very helpful as usual and your error message is spot on.
Happy Christmas and a prosperous new year.
Philip
Tried to test: Downloaded https://github.com/joomla/joomla-cms/releases/tag/4.3.0-alpha1 and installed it, Created a child template, Tried to delete it and got "Can't delete the last style of a template." Added a language override for COM_TEMPLATES_ERROR_CANNOT_DELETE_LAST_STYLE in System> Language: Overrides English (United Kingdom_ - Administrator to "Can't delete the last style of a template. Did you intend to remove the template? Click here to uninstall the template." except i don't know how to add the appropriate relative link to "click here". Tried to delete again and the appropriate message appeared without a working "click here" obviously.
Thanks, please excuse my stupidity. doing that now.
Thank you it worked as expected. Sorry not to have responded sooner to you earlier messages to test the change but Christmas day rule in our household is no computers to be switched on.
As a child template is an actual template the same workflow for a normal template will work here as well.
Eg: