Skip to content

Commit cdcd8dd

Browse files
Add template namespace support to Joomla 4.3 (#47)
* Add template namespace support to Joomla 4.3 * Update migrations/42-43/new-features.md Co-authored-by: Brian Teeman <[email protected]>
1 parent dadb5bd commit cdcd8dd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/general-concept/namespace.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
Namespace
22
=========
33
Description of the namespace concept
4+
45
:::caution TODO
56

67
This page is unfinished, please use the **Edit this Page** link at the bottom of this page to help make it more useful.
78

89
:::
10+
11+
Namespaces for Templates
12+
------------------------
13+
14+
The namespace is used for autoloading helper classes located in the folder provided
15+
in the path attribute of the manifest xml file.
16+
17+
Suggest Namespace:
18+
XML: `Vendorname\Template\TemplateName` Path Attribute: `src`
19+
PHP: `Vendorname\Template\TemplateName\Site` Location: `templates/TemplateName/src`

migrations/42-43/new-features.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ New features
66
===============
77
All the new features that have been added to this version.
88
Any changes in best practice.
9+
10+
11+
Support Namespace for Templates
12+
-------------------------------
13+
14+
Starting with Joomla! 4.3 it's possible to set a namespace for the template. This
15+
namespace is used for autoloading helper classes located in the folder provided
16+
in the path attribute of the manifest xml file.
17+
18+
Suggest Namespace:
19+
XML: `Vendorname\Template\TemplateName` Path Attribute: `src`
20+
PHP: `Vendorname\Template\TemplateName\Site` Location: `templates/TemplateName/src`
21+
922
:::caution TODO
1023

1124
This page is unfinished, please use the **Edit this Page** link at the bottom of this page to help make it more useful.

0 commit comments

Comments
 (0)