Can we override templates in a child theme or just the CSS?
Also, is there some kind of extension inheritance?
For example, can I create a new extension from an existing extension (that will be normally updated) and then override some of its template files?
I would like to modify template files of extensions without the danger of affecting my modifications upon an update.
Child themes and child extensions
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
-
- Registered User
- Posts: 11
- Joined: Sat Aug 23, 2014 7:24 pm
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: Child themes and child extensions
If you create a style that inherits from another then each template file that you create overrides the parent's template file (because for style inheritance you don't have to copy all of the files).
As far as extensions go there isn't really a way to do that. You could maybe keep a separate file with whatever changes you're doing and then call those from the listener but that would obviously require edits to the extension files. If they're the style events you could just create a folder for your specific style with the changes to the events.
As far as extensions go there isn't really a way to do that. You could maybe keep a separate file with whatever changes you're doing and then call those from the listener but that would obviously require edits to the extension files. If they're the style events you could just create a folder for your specific style with the changes to the events.
-
- Registered User
- Posts: 11
- Joined: Sat Aug 23, 2014 7:24 pm
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: Child themes and child extensions
I don't think we'd do anything about it. It would be up to the extension author to add events and such to their extension. Otherwise there'd be no way to do what you're asking for, other than duplicate most of it separately, which is already possible.
-
- Registered User
- Posts: 11
- Joined: Sat Aug 23, 2014 7:24 pm
Re: Child themes and child extensions
Then is there some guide for creating extension addons? (And if there isn't one, how about making one?)
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: Child themes and child extensions
The principles behind making extensions of extensions is the same as making a normal extension, for which guides already exist. You would just need to name the events accordingly. And, again, if there are no events in the extension then you wouldn't be able to modify or override functionality. For that you would need to speak to the extension author.