User tests: Successful: Unsuccessful:
Allow tag <inheritable>0</inheritable>
in templateDetails.xml
. Use empty()
instead of !isset()
.
templateDetails.xml
looks like this (see <inheritable>0</inheritable>
):<?xml version="1.0" encoding="utf-8"?>
<extension version="4.3" type="template">
<name>nonamespacedummynoparent</name>
<creationDate>2022-10-21</creationDate>
<author>Me</author>
<authorEmail>joomla@invalid.domain</authorEmail>
<authorUrl>http://example.com</authorUrl>
<copyright>Copyright (C) All rights reserved.</copyright>
<version>1.0</version>
<description>Test template for namespaces no namespace with no parent</description>
<inheritable>0</inheritable>
<files folder="templates/nonamespacedummynoparent">
<folder>helpers</folder>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
</files>
<positions>
<position>mainmenu</position>
</positions>
</extension>
A error message:
The template folder is not writable. Some features may not work.
No error message
My build procedure for templates fills tags like inheritable
using placeholders like <inheritable>{{inheritable}}</inheritable>
. So I think values 0
, 1
, empty
should be accepted without a misleading error message.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_templates |
Labels |
Added:
?
|
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-03 21:11:08 |
Closed_By | ⇒ | fancyFranci | |
Labels |
Added:
?
|
One less error message. Thanks!
BTW: The issue came up while testing #39011