I need to override in my developed component layout from other component (E.G. "com_categories"). I know there is possiblity in global template but this is not realy usefull.
Please add in standard list PATH to override, one more PATH, to developed component. Now the list looks like thiis:
'..\administrator\templates/atum/html/layouts/com_categories'
'..\administrator/components/com_categories/layouts'
'..\administrator\templates/atum/html/layouts'
'../layouts'
I need a list like this:
'..\administrator/components/com_MyComponent/layouts'
'..\administrator\templates/atum/html/layouts/com_categories'
'..\administrator/components/com_categories/layouts'
'..\administrator\templates/atum/html/layouts'
'../layouts'
Name of new component can be taken from URL's extension like this:
.../index.php?option=com_categories&extension=com_MyComponent.itemstype&layout=itemstype
Alternative solution is adding function to registration of the new PATH in initialisation or better instalation of a new component.
Labels |
Added:
?
|
Because, in my opinion:
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Wolny
od wirusów. www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
śr., 17 mar 2021 o 18:22 Brian Teeman @.***> napisał(a):
I know there is possiblity in global template but this is not realy
usefull.Why not
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32720 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO2O2WOYKOQLM2G7PJSUSHTTEDP7HANCNFSM4ZK65KVA
.
Maciej Bednarski
So, since you already coded your component then why don't you implement that yourself, eg
joomla-cms/administrator/components/com_media/controller.php
Lines 33 to 68 in 2dab92f
There's nothing missing from the API's perspective that stops you doing whatever you want with your layouts
Again. In Joomla4 I want to use the 'com_category' component in my programmable component (com_myComponent). In the manifest file, I create a menu item:
"...
Title |
|
You can add a category.xml to your component backend to extend the form and add additional fields to com_categories. That should solve for issue.
We will not add such an additional path for overrides to the CMS. You should not modify one component from another component.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-12-06 21:47:34 |
Closed_By | ⇒ | Hackwar | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
Why not