1

A component is using include to load an administrator form in the front-end so users can fill it out and submit content.

I'd like to override that form, but it doesn't appear to be possible from my site template. I can override it from the administrator template (the default isis theme), but my changes can only be seen on the back-end.

Do overrides not carry over between templates? Am I missing something?

1 Answer 1

2

Overrides work based on the way layout files are called.

If it is hardcoded with an include, then it is not possible to override it in clean way.

I guess that at some level you could override the whole view. For instance, to replace ContentViewArticle, you can load your ContentViewArticle first with a system plugin.

2
  • Thanks for the insight Anibal. Would I use the system plugin to override a class like what's suggested here? If so, I have another question. In the view.html.php file, there is the line parent::display($tpl);. Should I find a way to make $tpl always equal to the administrator template?
    – Obscerno
    Aug 27, 2016 at 0:58
  • Yes, at the end, your are replacing and extending the original class.
    – Anibal
    Aug 27, 2016 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.