Forums / Setup & design / Notifications Digest email formatting

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Notifications Digest email formatting

Author Message

Ritu Sharma

Thursday 05 March 2009 7:33:05 am

Hi

I have just implemented the notifications and realized the format of the notifications digest email is not very readable.

The digest is a collection of plain full text updations for the new nodes. I read in one of the forums that I need to modify for the templates plain.tpl, digest_plain.tpl and digest_plain. (not clear if I can do overrides)

I was wondering what commands can I use to put a user-friendly format that consists of the following info:
a) The node title that was modified & modification date
b) Link to the node

Regards

Ritu

Ritu Sharma

Thursday 05 March 2009 11:23:36 am

I was able to figure out a solution and adding it here if it can help somebody else.

Here is what I did:
1) Added the following to settings/siteaccess/eng/site.ini.append.php
[MailSettings]
ContentType=text/html

2) Added the following override to extension/ezwebin/design/ezwebin/override/templates/digest_element_plain.tpl

{*?template charset=utf-8?*}
{let content_object_version=fetch(notification,event_content,hash(event_id,$collection_item.event_id))}

{*display Title *}
<p> {$content_object_version.contentobject.name} <br>

{* display author *}
Added/ Update by: {$content_object_version.creator.name} <br>

{* display link*}

Location:
{let object_URL= concat("http://",ezini("SiteSettings","SiteURL"),"content/view/full/",$content_object_version.contentobject.main_node_id) |ezurl(no)}
<a href ={object_URL}>{object_URL}</a>
<br>
</p>
<br>

Jean-Yves Zinsou

Thursday 05 March 2009 11:50:00 am

Thanks,
that was a tricky one ...

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr