- Posts: 17
- Thank you received: 0
All questions about EDocman extension
Upload email body fields
- chuzo
- Topic Author
- Offline
- New Member
-
Less
More
8 years 10 months ago #82880
by chuzo
Upload email body fields was created by chuzo
Hi!
I'm using Upload Notification system to get email notifications when a new document is uploaded to one specific category.
In the documentation, I could see:
Upload email body: Available tags : [USERNAME], [DOCUMENT_TITLE], [USER_IP]
I would use others fields, as DOCUMENT_LINK, CATEGORY_TITLE, that I see in this post: joomdonation.com/forum/edocman/50424-not...ument-is-public.html
Is it possible?
Thanks!
I'm using Upload Notification system to get email notifications when a new document is uploaded to one specific category.
In the documentation, I could see:
Upload email body: Available tags : [USERNAME], [DOCUMENT_TITLE], [USER_IP]
I would use others fields, as DOCUMENT_LINK, CATEGORY_TITLE, that I see in this post: joomdonation.com/forum/edocman/50424-not...ument-is-public.html
Is it possible?
Thanks!
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
8 years 10 months ago #82887
by Mr. Dam
Replied by Mr. Dam on topic Upload email body fields
Hi Chuzo,
Yes, you can use tags: DOCUMENT_LINK, CATEGORY_TITLE if you want.
Thanks
Dam
Yes, you can use tags: DOCUMENT_LINK, CATEGORY_TITLE if you want.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- chuzo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
8 years 10 months ago - 8 years 10 months ago #82889
by chuzo
Replied by chuzo on topic Upload email body fields
Attachments:
Last edit: 8 years 10 months ago by chuzo.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
8 years 10 months ago #82890
by Mr. Dam
Replied by Mr. Dam on topic Upload email body fields
Hi Chuzo,
Please open file:
and change to:
Find:
and add this below:
On above code, you should change: youdomain.com by your website url.
Thanks
Dam
Please open file:
Find:root > components > com_edocman > helpers > helper.php
Code:
$sql = 'SELECT parent_id, notification_emails FROM #__edocman_categories WHERE id=' . $categoryId;
Code:
$sql = 'SELECT parent_id, notification_emails,title FROM #__edocman_categories WHERE id=' . $categoryId;
Code:
$body = str_replace('[DOCUMENT_TITLE]', $documentTitle, $body);
Code:
$body = str_replace('[DOCUMENT_LINK]', "[b][i][u]http://youdomain.com[/u][/i][/b]/".EDocmanHelperRoute::getDocumentRoute($row->id);, $body);
$body = str_replace('[CATEGORY_TITLE]', $category->title, $body);
On above code, you should change: youdomain.com by your website url.
Thanks
Dam
The following user(s) said Thank You: chuzo
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
8 years 10 months ago #82891
by Mr. Dam
Replied by Mr. Dam on topic Upload email body fields
For example:
body = str_replace('[DOCUMENT_LINK]', " joomdonation.com/".EDocmanHelperRoute::getDocumentRoute ($row->id);, $body);
body = str_replace('[DOCUMENT_LINK]', " joomdonation.com/".EDocmanHelperRoute::getDocumentRoute ($row->id);, $body);
Please Log in or Create an account to join the conversation.
- chuzo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
8 years 10 months ago #82893
by chuzo
Replied by chuzo on topic Upload email body fields
Thanks Dam,
But, you would include this changes in next release of edocman?
If I updated component in the future, I'll lose this changes.
But, you would include this changes in next release of edocman?
If I updated component in the future, I'll lose this changes.
Please Log in or Create an account to join the conversation.
- chuzo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
8 years 10 months ago #82895
by chuzo
Replied by chuzo on topic Upload email body fields
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
8 years 10 months ago #82924
by Mr. Dam
Replied by Mr. Dam on topic Upload email body fields
Hi Chuzo,
You can submit ticket and send your site information with super admin account for checking the problem.
Thanks
Dam
You can submit ticket and send your site information with super admin account for checking the problem.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- chuzo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
8 years 10 months ago #82930
by chuzo
Replied by chuzo on topic Upload email body fields
Sorry Dam, but my site is not yet publish, it is only accesible in the local network 
I could see that $category variable is not defined:
function sendUploadNotificationEmail($row, $config, $categoryId)
function sendUploadNotificationEmail has $categoryId parameter, but not $category, so $category->title is not defined, and replace function change [CATEGORY_TITLE] with empty string.
Could you help me to get category name with $categoryId value?
Thanks

I could see that $category variable is not defined:
function sendUploadNotificationEmail($row, $config, $categoryId)
function sendUploadNotificationEmail has $categoryId parameter, but not $category, so $category->title is not defined, and replace function change [CATEGORY_TITLE] with empty string.
Could you help me to get category name with $categoryId value?
Thanks
Please Log in or Create an account to join the conversation.
- chuzo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
8 years 10 months ago #83178
by chuzo
Replied by chuzo on topic Upload email body fields
Please, could you help me?
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.