- Posts: 6
- Thank you received: 0
All questions about EDocman extension
Template overrides & how to remove "application/"?
- olgri
- Topic Author
- Offline
- New Member
-
Less
More
10 years 2 months ago #57382
by olgri
Template overrides & how to remove "application/"? was created by olgri
Hi There
1.
I would like to modify some files. E.g. I want to override:
com_edocman/view/category/tmpl/table.php
com_edocman/view/common/documents_table.php
but template overrides do not work. I.e. copying table.php file to templates/rt_afterburner2/html/com_edocman/category and then modifying it doesn't work.
I use RT Afterburner 2 template from Rocket Themes.
2. How can I remove "application/" part from File Type names? I.e. instead of displaying "application/pdf", display just "pdf".
This is not in language files, so how do I change it?
Thanks
1.
I would like to modify some files. E.g. I want to override:
com_edocman/view/category/tmpl/table.php
com_edocman/view/common/documents_table.php
but template overrides do not work. I.e. copying table.php file to templates/rt_afterburner2/html/com_edocman/category and then modifying it doesn't work.
I use RT Afterburner 2 template from Rocket Themes.
2. How can I remove "application/" part from File Type names? I.e. instead of displaying "application/pdf", display just "pdf".
This is not in language files, so how do I change it?
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 2 months ago #57454
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Template overrides & how to remove "application/"?
Hi olgri
1=> Template override should work
2=> That will require some modification to the code. Please submit a support ticket sending us super admin account of your site so that I can check it for you
Tuan
1=> Template override should work
2=> That will require some modification to the code. Please submit a support ticket sending us super admin account of your site so that I can check it for you
Tuan
Please Log in or Create an account to join the conversation.
- olgri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
10 years 2 months ago #57733
by olgri
Replied by olgri on topic Template overrides & how to remove "application/"?
1.
Template override works for files in "com_edocman/view/common/" directory but not for "com_edocman/view/category/tmpl/".
How can I override files in "com_edocman/view/category/tmpl/" folder? Could you please give some instructions?
2.
Thanks. I have found where to change "application/pdf" to just "pdf" -> components/com_edocman/helper/mime.mapping.php
Sadly, it will be overridden with the next update...
Template override works for files in "com_edocman/view/common/" directory but not for "com_edocman/view/category/tmpl/".
How can I override files in "com_edocman/view/category/tmpl/" folder? Could you please give some instructions?
2.
Thanks. I have found where to change "application/pdf" to just "pdf" -> components/com_edocman/helper/mime.mapping.php
Sadly, it will be overridden with the next update...
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 2 months ago #57745
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Template overrides & how to remove "application/"?
Hi
1=> You need to copy the file from com_edocman/view/category/tmpl/ folder to templates/rt_afterburner2/html/com_edocman/category folder, then modify it (please note that when you copy to html folder of your site template , the tmpl folder will be removed
Tuan
1=> You need to copy the file from com_edocman/view/category/tmpl/ folder to templates/rt_afterburner2/html/com_edocman/category folder, then modify it (please note that when you copy to html folder of your site template , the tmpl folder will be removed
Tuan
Please Log in or Create an account to join the conversation.
- olgri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
10 years 2 months ago #57749
by olgri
Replied by olgri on topic Template overrides & how to remove "application/"?
Hi Tuan,
This is exactly what I did. The folders are correct, spelling triple-checked, modifications are obvious, cache cleared but nothing changes in the front-end :blink: What could be the problem then? Are there any known issues with overrides?
Thanks
This is exactly what I did. The folders are correct, spelling triple-checked, modifications are obvious, cache cleared but nothing changes in the front-end :blink: What could be the problem then? Are there any known issues with overrides?
Thanks
Please Log in or Create an account to join the conversation.
- olgri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
10 years 2 months ago #57750
by olgri
Replied by olgri on topic Template overrides & how to remove "application/"?
I have tested it on Beez3 template as well -> same result - nothing gets overridden. I'm trying to alter table.php file.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 2 months ago #57832
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Template overrides & how to remove "application/"?
You can submit a support ticket sending us super admin account of your site. I will make it works for you
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.