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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.