Any questions about Documents Sellers, post it here .

Adding a Field to the Document Database Table

  • bzbeauty
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #5150 by bzbeauty
I need to add a field to the document Database Table - I've already added it to the database table itself - _dms_documents. And I've already added the field in the administrator section so it's there when you create a new document, or edit an existing one.

administrator/components/com_dms/views/document/tmpl/default.php
Code:
<tr> <td class="key"> <?php echo JText::_('Product Link'); ?> </td> <td> <textarea rows="5" cols="40" class="textarea" name="prod_link"><?php echo $this->item->prod_link; ?></textarea> </td> </tr>

Now the problem is, it doesn't save/update to the database table. I've spent all morning trying to find where it does this and I'm coming up empty. Please help.

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

  • bzbeauty
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #5152 by bzbeauty
Never mind. Found it already :silly:

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

More
14 years 2 months ago #5167 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Adding a Field to the Document Database Table
Great you figured it out .

In the next version, DMS will support custom fields so you won't have to hack into it's code .

Thanks,

Tuan

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