All questions about EDocman extension

Document extra fields

  • Ralf Steenbock
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 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

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

More
5 years 8 months ago #115827 by Mr. Dam
Replied by Mr. Dam on topic Document extra fields
Problem solved through Ticket system
Thanks
Dam

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

More
4 years 9 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

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

More
4 years 9 months ago #126443 by Mr. Dam
Replied by Mr. Dam on topic Document extra fields
Hi Ben,
What did you do?
Thanks
Dam

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

More
4 years 9 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:
Code:
/administrator/components/com_edocman/view/document/tmpl/default.php
to
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
to
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.

More
4 years 9 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?

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

More
4 years 9 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
The following user(s) said Thank You: Ben

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

Moderators: Mr. Dam