Any questions about Documents Sellers, post it here .

Can't override the category looks

  • scripto
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago - 1 year 5 months ago #154380 by scripto
Can't override the category looks was created by scripto
Hi Tuan, I want to override the look of category via template override but most of the parts are loaded from common folder such as 
Code:
echo DMSHelperHtml::loadCommonLayout('common/documents_default.php
So I have to override the core code (files under common folder components/com_dms/view/common) to get the modification what I want.
Is there a way that I don't have to override core files? So that my modifications don't get override every time there is an update?
 
Last edit: 1 year 5 months ago by scripto.

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

More
1 year 5 months ago #154407 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Can't override the category looks
Hello

The files from common folder can also be overridden like other files. Just move that modified file to PATH_TO_TEMPLATE/html/com_dms/common folder and it would be fine

Tuan

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

  • scripto
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #154422 by scripto
Replied by scripto on topic Can't override the category looks
Ah I see, I thought that folder is not overrideable because it doesn't appear in the template override interface, and also no tmpl folder inside the common folder. Ok thanks 

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

More
1 year 5 months ago #154462 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Can't override the category looks
Although it is not listed (due to a bit different in structure), the layout files on that common folder can still be overridden like any other layouts, don't worry

Regards,

Tuan

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