All questions about EDocman extension

Version number not displayed

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #91884 by temills
Version number not displayed was created by temills
Joomla version: 3.6.5
EDocman version: 1.7.9

Show version number is set to "Yes" in the configuration. The version number is not retained in the admin screen text box upon save and is no version is displayed on the frontend.

Thanks.

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

More
7 years 3 months ago #91939 by Mr. Dam
Replied by Mr. Dam on topic Version number not displayed
Hi Temills,
The document version is shown in Document details page
Thanks
Dam

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

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #91964 by temills
Replied by temills on topic Version number not displayed
That's the problem. The document version is not showing in the "Version Number" text box on the document details page after I input a number and save.

Thanks,
Tem

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

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #92174 by temills
Replied by temills on topic Version number not displayed
Hi Dang,

I have included a copy of a portion of the page source for the document details page. There is no code for displaying the version number in the document info section. The only provisions are for the created and last updated dates.
Code:
<div id="edocman-document-info" class="clearfix"> <table class="table table-bordered table-striped"> <tbody> <tr> <td class="edocman-document-property-label"><strong>Created Date:</strong></td> <td class="edocman-document-property-value"> 10-24-2016 </td> </tr> <tr> <td class="edocman-document-property-label">Last Updated Date:</td> <td class="edocman-document-property-value"> 10-24-2016 </td> </tr> </tbody> </table> </div>

Thanks

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

More
7 years 3 months ago #92286 by Mr. Dam
Replied by Mr. Dam on topic Version number not displayed
Hi,
In file:

root > components > com_edocman > view > document > tmpl > default.php

You can see the code
Code:
if (($this->config->show_document_version) and ($this->item->document_version != "")) { ?> <tr> <td class="edocman-document-property-label"><?php echo JText::_('EDOCMAN_VERSION') ?>:</td> <td class="edocman-document-property-value"><?php echo $this->item->document_version; ?></td> </tr> <?php }

Thanks
Dam

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

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #92307 by temills
Replied by temills on topic Version number not displayed
Hi Dang,

That estabilishes that code exists to show the version number -- that's great. But, as seen in the source code of the details page on my site, the lines:
<tr>
<td class="edocman-document-property-label"><?php echo JText::_('EDOCMAN_VERSION') ?>:</td>
<td class="edocman-document-property-value"><?php echo $this->item->document_version; ?></td>
</tr>,
have not been written to the page table in the <div id="edocman-document-info" even though "show version" is set to yes.

Also, can you tell me what field name in the #__edocman_documents contains the version number because my data table does not contain a "document_version" field?

Thanks,
Tem

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

More
7 years 3 months ago #92310 by Mr. Dam
Replied by Mr. Dam on topic Version number not displayed
Hi Tem,
You can check in the table: #__edocman_documents to see if field: document_version is existing or not?
Thanks
Dam

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

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #92316 by temills
Replied by temills on topic Version number not displayed
Hi Dam,
I've attached a file with the structure of the #_edocman_documents table. There is no document_version field in the table.

Thanks,
Tem
Attachments:

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

More
7 years 3 months ago #92415 by Mr. Dam
Replied by Mr. Dam on topic Version number not displayed
Hi Temills,
That's the small issue with Edocman installation script while it doesn't add the column: document_version into MySQL table: #__edocman_documents. We have just fixed the issue, you can download Edocman 1.8.0 and install it to get the issue solved
Thanks
Dam

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

Moderators: Mr. Dam