View Override

  • LAC Webadmin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 11 months ago #112140 by LAC Webadmin
View Override was created by LAC Webadmin
I override a view, following the steps in the documentation. I also like to override the layout tmpl files:

- can I simply add a tmpl folder in the view override that I did?
- or I have to create a template override in the template html folder?

If I have to do a template override now I have to make sure to look at two different location of overrides, why not just allow the layout override in the view override :laugh:

Well, I tried to just create a tmpl folder in the view override and it does not work.

Thanks,

Jackson

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #112142 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic View Override
Hi Jackson

1. For override the layout, you will have to create that override in the template. It's the standard way to override layout in Joomla and we just follow it

2. For override view class, unfortunately, Joomla does not support it. So we have to implement it ourself within our extension, and by technical requirement, it needs to be in override folder within the extension

So Yes, there are two places for override as you figured out


Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc