View Source in Notification Email Template

Laura Frese asked on January 28, 2016 23:46

I am using the content notification web part to send email notifications to subscribers when pages have been created or updated. The notification templates only have a basic toolbar but I want to include more styling than what is provided by the basic toolbar. The only way I have found to get around this is to go into the code in \CMS\CMSModules\Notifications\Controls\TemplateTextEdit.ascx.cs and change htmlText.ToolbarSet from "Basic" to "Full" .

Just curious if anybody else has had this issue & how they managed it. Also, was wondering if anybody knew why the toolbar is limited by default?

Correct Answer

Brenden Kehren answered on January 29, 2016 01:58

If it's hard coded in there as "basic" then that's what you have to do. There is a web.config key which will allow you to switch it across the site but I don't believe that works for those hard coded ones.

Another option is to go into the config file for the CKEditor and set the properties of the basic to that of the full tool bar. I've done this hack before and it seems to work but then all "basic" toolbars are now full.

I'd report your findings to Kentico and have them switch it out to use the web.config key instead.

2 votesVote for this answer Unmark Correct answer

Recent Answers

Laura Frese answered on January 29, 2016 18:22

Thanks Brenden.

In case anybody else has this issue, I wrote a post on how to get a full toolbar for the notification template.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 1, 2016 06:54

Nicely done Laura, you stole next months topic...back to the drawing board!

Glad you figured out a solution!

0 votesVote for this answer Mark as a Correct answer

Laura Frese answered on February 5, 2016 03:22

An even better alternative would be to use a macro to apply a transformation to the data!! I found that the notification template was still difficult to work with & just doing it in a transformation got rid of all the issues I was having so I created a content only page type to hold the notification email transformations.

Macro methods - Transformations

Using transformations in macro methods

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.