- Posts: 4
- Thank you received: 0
All questions about EDocman extension
Document extra fields
- Ralf Steenbock
- Topic Author
- Offline
- New Member
-
Less
More
6 years 9 months ago #115744
by Ralf Steenbock
Document extra fields was created by Ralf Steenbock
Hi Dam,
I am using some document extra fields and modified the XML file root > administrator > components > com_edocman > model > forms > document.xml. This works very nice, but when I updated edocman from 1.9.7 to 1.9.8 today, the changed file was overwritten and the extra fields were not usable any more. Is there a safe way to update without the need to again modify document.xml after updating?
Regards
Ralf
I am using some document extra fields and modified the XML file root > administrator > components > com_edocman > model > forms > document.xml. This works very nice, but when I updated edocman from 1.9.7 to 1.9.8 today, the changed file was overwritten and the extra fields were not usable any more. Is there a safe way to update without the need to again modify document.xml after updating?
Regards
Ralf
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
6 years 9 months ago #115827
by Mr. Dam
Replied by Mr. Dam on topic Document extra fields
Problem solved through Ticket system
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Ben
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
5 years 10 months ago #126440
by Ben
Replied by Ben on topic Document extra fields
Hi Dam,
Is there any chance you can explain how this is done? I'm trying to do the same thing and have tried a view override which re-loads the custom .xml form - but this hasn't worked. I also tried just overriding the form under the admin template, but this hasn't worked either.
Any help would be appreciated.
Thanks,
Ben
Is there any chance you can explain how this is done? I'm trying to do the same thing and have tried a view override which re-loads the custom .xml form - but this hasn't worked. I also tried just overriding the form under the admin template, but this hasn't worked either.
Any help would be appreciated.
Thanks,
Ben
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
5 years 10 months ago #126443
by Mr. Dam
Replied by Mr. Dam on topic Document extra fields
Hi Ben,
What did you do?
Thanks
Dam
What did you do?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Ben
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
5 years 10 months ago #126515
by Ben
Replied by Ben on topic Document extra fields
Apologies for the late reply, but thanks for getting back to me.
I copied the view 'default.php' from here:
to
and copied (and edited) the XML from here:
to
Then I added the following lines to default.php, at the top, after 'defined('_JEXEC') or die;'
The override works as far as adding the additional fields - but it doesn't load any of the field data when editing, in the form.
I copied the view 'default.php' from here:
Code:
/administrator/components/com_edocman/view/document/tmpl/default.php
Code:
/administrator//templates/isis/html/com_edocman/document/default.php
and copied (and edited) the XML from here:
Code:
/administrator/components/com_edocman/model/forms/document.xml
Code:
/administrator/components/com_edocman/view/document/tmpl/document.xml
Then I added the following lines to default.php, at the top, after 'defined('_JEXEC') or die;'
Code:
$this->form->reset(true);
$this->form->loadFile(dirname(__FILE__) . ‘/’ . “document.xml”);
The override works as far as adding the additional fields - but it doesn't load any of the field data when editing, in the form.
Please Log in or Create an account to join the conversation.
- Ben
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
5 years 10 months ago #126584
by Ben
Replied by Ben on topic Document extra fields
Hi Dam,
Sorry for hassling you, but is there another line I should add to the reset code to load the document data properly? Or perhaps do it a different way?
Sorry for hassling you, but is there another line I should add to the reset code to load the document data properly? Or perhaps do it a different way?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
5 years 10 months ago #126599
by Mr. Dam
Replied by Mr. Dam on topic Document extra fields
Hi,
We don't have option to override file: document.xml
Actually, in previous Edocman version, we added new field for Documents, so that, we can't make override function for file: document.xml, but i will add option to override file: document.xml in next Edocman version
Thanks
Dam
We don't have option to override file: document.xml
Actually, in previous Edocman version, we added new field for Documents, so that, we can't make override function for file: document.xml, but i will add option to override file: document.xml in next Edocman version
Thanks
Dam
The following user(s) said Thank You: Ben
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.