- Posts: 14
- Thank you received: 0
All questions about EDocman extension
Edocman customization
- msn67
- Topic Author
- Offline
- New Member
Less
More
12 years 3 months ago #18822
by msn67
Edocman customization was created by msn67
I've just bought edocman and I would like to customise it according to my needs.
More specifically I want to assign more filelds in a single document.
I created the appropriate fields in the database (table xx_edocman_documents) and I tried to change the layout of the administrator component(option new document) accordingly. I tried to add code in /administrator/components/com-edocman/views/document/tmpl/edit.php to include input for new database fields unsuccessfully. Is this the right way to do it? Are there any other files I have to edit?
How can I upload files form my local directory to the server document storage directory? With ftp client?
Thank you
More specifically I want to assign more filelds in a single document.
I created the appropriate fields in the database (table xx_edocman_documents) and I tried to change the layout of the administrator component(option new document) accordingly. I tried to add code in /administrator/components/com-edocman/views/document/tmpl/edit.php to include input for new database fields unsuccessfully. Is this the right way to do it? Are there any other files I have to edit?
How can I upload files form my local directory to the server document storage directory? With ftp client?
Thank you
Please Log in or Create an account to join the conversation.
- msn67
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
12 years 3 months ago #18857
by msn67
Replied by msn67 on topic Re: Edocman customization
Hi,
I finally managed to add fields and save them to edocman tables. Needed changes to document.xml and language edocman.ini files.
I managed to do it in both admin and front end. However in front end it did not allow to save changes. There is no save button somewhere.
Can you tell me how to do this?
My last question for ftp is still valid.
Thank you
I finally managed to add fields and save them to edocman tables. Needed changes to document.xml and language edocman.ini files.
I managed to do it in both admin and front end. However in front end it did not allow to save changes. There is no save button somewhere.
Can you tell me how to do this?
My last question for ftp is still valid.
Thank you
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 3 months ago #18911
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Edocman customization
Hi
1. For FTP question, yes , it is possible. Here are the steps :
- Go to Events Booking -> Configuration, find the config option "File Upload Method", set it to "Choose File from server".
- Upload your files manually via FTP to the folder you entered on Documents Path config option.
After that, when you create a new document, you will see list of uploaded Documents and can choose it for your document.
2. For save button, did you see the button on the original version of EDocman (without the modification you made) ?
Regards,
Tuan
1. For FTP question, yes , it is possible. Here are the steps :
- Go to Events Booking -> Configuration, find the config option "File Upload Method", set it to "Choose File from server".
- Upload your files manually via FTP to the folder you entered on Documents Path config option.
After that, when you create a new document, you will see list of uploaded Documents and can choose it for your document.
2. For save button, did you see the button on the original version of EDocman (without the modification you made) ?
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- msn67
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
12 years 3 months ago #18919
by msn67
Replied by msn67 on topic Re: Edocman customization
Hi Tuan,
Thank you very much for your reply.
Regarding the save button, the place where I put the component on screen made it expandable (not full size). I can see it now.
Regarding ftp this is exactly what I have done. However, in front end it does not allow me to select files from server but only from my local directory. Can I add this feature and which files I have to look at.
Excellent extension and very easy to modify things.
Thnx again
Thank you very much for your reply.
Regarding the save button, the place where I put the component on screen made it expandable (not full size). I can see it now.
Regarding ftp this is exactly what I have done. However, in front end it does not allow me to select files from server but only from my local directory. Can I add this feature and which files I have to look at.
Excellent extension and very easy to modify things.
Thnx again
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 3 months ago #18954
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Edocman customization
Hi
In the front-end, it is not possible to choose file because we don't want uploaded (sometime, they are just registered users) to choose the files from server.
If you want to have this feature, maybe you can try solution below :
1. Open the file components/com_edocman/views/document/edit.php
2. Find the code below :
3. Change it to :
After that, it should work as expected.
Tuan
In the front-end, it is not possible to choose file because we don't want uploaded (sometime, they are just registered users) to choose the files from server.
If you want to have this feature, maybe you can try solution below :
1. Open the file components/com_edocman/views/document/edit.php
2. Find the code below :
Code:
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('filename'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('filename'); ?>
</td>
</tr>
3. Change it to :
Code:
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('select_filename'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('select_filename'); ?>
</td>
</tr>
After that, it should work as expected.
Tuan
Please Log in or Create an account to join the conversation.
- msn67
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
12 years 3 months ago #18961
by msn67
Replied by msn67 on topic Re: Edocman customization
Works!! Thnx very much Tuan.
I will have to modify the search plugin as well. If I will need any help I will be posting in this thread.
I will have to modify the search plugin as well. If I will need any help I will be posting in this thread.
Please Log in or Create an account to join the conversation.
- msn67
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
12 years 3 months ago #18972
by msn67
Replied by msn67 on topic Re: Edocman customization
Hi Tuan,
I added the following code to components/edocman/views/tmpl/edit.php at the top (javascript function)
In document.xml I added
So when the list box value changed to value "Apofash' the form item named 'court_decno' (joomla editor box) to be disabled.
But it does not work. Any clues on that.
Thnx in advance
I added the following code to components/edocman/views/tmpl/edit.php at the top (javascript function)
Code:
function dynamic()
{
var ed = document.getElementById('eidos_doc') ;
if (ed.value == 'Apofash')
document.getElementById('court_decno').disabled = true;
}
In document.xml I added
Code:
<field
name="eidos_doc"
type="list"
default="Apofash"
label="<b>Επιλέξτε είδος εγγράφου</b>"
onchange="this.form.dynamic();"
description="">
<option value="Apofash">Apofash</option>
<option value="Nomos">Nomos</option>
<option value="Meleth">Meleth</option>
</field>
So when the list box value changed to value "Apofash' the form item named 'court_decno' (joomla editor box) to be disabled.
But it does not work. Any clues on that.
Thnx in advance
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 3 months ago #18996
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Edocman customization
Hi
I am sorry. I could not provide support for custom coding, you will have to find out it yourself. Having a quick look at the code, it seems onchange="this.form.dynamic(); seems to be incorrect. Maybe you should change it to onchange="dynamic();
Anyway, I think I could not provide more support on this. This is something related to coding (javascript coding) than something related to EDocman and you will have to handle it yourself .
Tuan
I am sorry. I could not provide support for custom coding, you will have to find out it yourself. Having a quick look at the code, it seems onchange="this.form.dynamic(); seems to be incorrect. Maybe you should change it to onchange="dynamic();
Anyway, I think I could not provide more support on this. This is something related to coding (javascript coding) than something related to EDocman and you will have to handle it yourself .
Tuan
Please Log in or Create an account to join the conversation.
- msn67
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
12 years 3 months ago #19213
by msn67
Replied by msn67 on topic Re: Edocman customization
I managed to do it in a different way.
I want to have two different upload links in the edit document form (one to select file from server and one from local dir)
I put the following in the default.php
with an extra parameter file_option (bold) that I want to pass to edit.php. However when edit document form is loaded the file_option argument does not appear in the address link. I get
instead of
I normaly read this new parameter in edit.php and accordingly with a conditional show either filename or select_filename input box)
I want to have two different upload links in the edit document form (one to select file from server and one from local dir)
I put the following in the default.php
Code:
<span style="float: right;"><a href="index.php?option=com_edocman&task=document.add&category_id=<?php echo $this->category->id; ?>&Itemid=<?php echo $this->Itemid; ?>[b]&file_option=2"[/b] class="edocman_upload_link"><?php echo JText::_('EDOCMAN_UPLOAD'); ?></a></span>
Code:
localhost:8888/solon/index.php/vasi-dedomenon-solon?view=document&id=0&layout=edit&category_id=1
Code:
localhost:8888/solon/index.php/vasi-dedomenon-solon?view=document&id=0&layout=edit&category_id=1&file_option=1 or 2
Please Log in or Create an account to join the conversation.
- msn67
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
12 years 3 months ago #19264
by msn67
Replied by msn67 on topic Re: Edocman customization
Don't bother. I solved it
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.