I'm making my first attempts to turn a j3 component into a j4 component.
For this I installed my component and made basically the steps Allon explained in this video: https://www.youtube.com/watch?v=jUc5sMqb22E
In addition I had a look at the 4.0-dev weblinks branch: https://github.com/joomla-extensions/weblinks/tree/4.0-dev/src/administrator/components/com_weblinks
After that I had for the backend J3 template-files
in the folder administrator/component/com_mycom/views/VIEWNAME/tmpl
and J4 template-files
in the folder administrator/component/com_mycom/tmpl/VIEWNAME
This works well for me so far.
After that I made the same for the frontend.
In the frontend I noticed that in the template manager two overrides are displayed.
Once the files are listed in the J3 template directory (component/com_mycom/views/VIEWNAME/tmpl
) and then the files in the J4 template directory (/component/com_mycom/tmpl/VIEWNAME
).
Actually, I thought that only the files in the directory /component/com_mycom/tmpl/VIEWNAME
are offered as override in J4.
Current 4.0-dev Branch on Ubuntu 18.04
The question I have is whether it is allowed to create tmpl-files in the directory /tmpl/VIEWNAME
and at the same time in the (J3-directory) views/VIEWNAME/tmpl
.
This works in the backend for me. But maybe I miss a problem.
Labels |
Added:
?
?
|
Category | ⇒ | Code style |
Status | New | ⇒ | Discussion |
Labels |
Added:
J4 Issue
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-19 15:58:51 |
Closed_By | ⇒ | wilsonge |
You can do one or the other. You shouldn't have both. The 3.x locations will continue to be supported as long as you want to support J3.x. When you choose to upgrade to the J4 way of doing things with namespaces you'll totally remove the views
folder
This is a bug. Actually there is no cleanup made after upgrade and then are both folders in the system.