- Posts: 4
- Thank you received: 0
All questions about EDocman extension
Template Override for common/documents_default.php
- Bruce Rick
- Topic Author
- Offline
- New Member
Less
More
3 years 3 months ago #146554
by Bruce Rick
Template Override for common/documents_default.php was created by Bruce Rick
I've been trying my best to modify the documents_default.php file for views and can't even get this off the ground. I've made a copy of the documents_default.php file and placed it into my template in the html/con_edocman/common/ folder as it should be. Uploading that file after it has been moved automatically creates a syntax error, unexpected 'else' message. This happens with nothing changed to the php file, so it shouldn't cause an error. It should run just like the one in the component. Is there anything specific that I'm doing wrong with the override.
I had similar issues with the category view but was able to find the issue and make adjustments there. I just can't seem to find the issue with the documents_default.php file and I've spent half a day working on it.
I had similar issues with the category view but was able to find the issue and make adjustments there. I just can't seem to find the issue with the documents_default.php file and I've spent half a day working on it.
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12820
- Thank you received: 1660
3 years 3 months ago #146556
by Mr. Dam
Replied by Mr. Dam on topic Template Override for common/documents_default.php
Hi,
The issue has cause from your custom modification, not the template overridden, you can modify file: documents_default.php in Edocman common folder directly and make sure it works perfectly before creating override file in template.
Thanks
Dam
The issue has cause from your custom modification, not the template overridden, you can modify file: documents_default.php in Edocman common folder directly and make sure it works perfectly before creating override file in template.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Bruce Rick
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
3 years 2 months ago #146594
by Bruce Rick
Replied by Bruce Rick on topic Template Override for common/documents_default.php
Thanks Dam. Yeah, it's weird because it runs perfectly fine as is in the components, but as soon as I make an exact copy and move it over to the template overrides, it crashes out bad. I've been trying to troubleshoot it to figure out what is going on because the code literally isn't changing and nothing is being changed in the template at the same time. Just a weird thing to have happen. I'll make a backup of the original and try working it from the component first to see how that goes.
Please Log in or Create an account to join the conversation.
- Bruce Rick
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
3 years 2 months ago #146595
by Bruce Rick
Replied by Bruce Rick on topic Template Override for common/documents_default.php
I think I actually figured this one out. It was actually FileZilla. These files need to be uploaded as Binary and not ASCII, that seemed to fix the issue. As soon as I made a change, even just deleting a blank line, it would break the file. This seems to have fixed it. I hadn't run into that issue before.
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12820
- Thank you received: 1660
3 years 2 months ago #146600
by Mr. Dam
Replied by Mr. Dam on topic Template Override for common/documents_default.php
OK Bruce
The following user(s) said Thank You: Bruce Rick
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
Support
Documentation
Information
Copyright © 2024 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.