Email event configuration management

1 view
Skip to first unread message

Sergejs Gribs

unread,
Nov 30, 2009, 4:33:46 PM11/30/09
to in-por...@googlegroups.com
If you ever had to add your own email event, you should know how painful and unclear is this process. You should add record to Events table, filling fields with values that you have to detect by looking into different places in code, database and administrative console interface. Then you proceed with opening every installed language, switching to Email Events tab, finding your event and entering content for it. It may sound not very complicated, but it takes a lot of time to deal with.

Another instance is editing different email event translations at once. If you are site administrator, and, for example, you decide to add user password to emails that are sent after user registration, you have to edit all email event translations via opening every language, or at special E-mails section. But commonly site administrator wants to make analogic changes to emails, so it would be nice to edit all these translations on one single page.

So, I made the patch that adds E-mail Events section under Configuration -> Website. In section, you can find a grid and form - for adding and editing email event and it's translations - and all in one single edit form. Fields value options are present, so you don't need to search code to get to know what exact field value means. Also you can manage tag replacements there.

SQL file attached contains phrase translations for new added section. Patch also contains few minor issue fixes.
email_events_config.patch
email_event_phrases.sql

Dmitry A.

unread,
Dec 6, 2009, 11:27:00 PM12/6/09
to In-Portal Development
Hi Sergey,


Please forgive me for such a delayed response. It's a good example how
NOT to do! :)

Yes, you have brought up very valuable points here and your
implementation is excellent so it's definitely going to be in one of
the soonest releases!


I have filed a new task where attached your work:

437: Interfaces for Adding Email Events and Editing their Translations

http://tracker.in-portal.org/view.php?id=437


What's next?

There are a few things that we still would need to discuss and
finalize in regards to this functionality (mostly interfaces). In
particular we would need to decide how to better merge new Interfaces
for this with existing ones.

1. Currently we have Email Events under Configuration -> Website +
under each applicable Module's Configuration section.

2. Also, we have the ability to Translate Events from Structure & Data
-> Email Templates and Regional.


I think it's a little too much and simply confusing. What you guys
think on this?


Please visit Admin of Demo http://demo.in-portal.com/admin for a
latest 5.0.2 (beta) version (without this new patch).


The above is open for discussion and we need more opinions. Shortly
I'll be attaching screenshots here so you can have more visual on
this.


Once again, thanks for your participation and hard work!

We really appreciate your input!


Cheers and talk soon!


DA.
>  email_events_config.patch
> 26KViewDownload
>
>  email_event_phrases.sql
> 1KViewDownload
Reply all
Reply to author
Forward
0 new messages