Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Role allocated emailRole allocated email
Previous
 
Next
New Post
1/17/2012 11:00 AM
 

Hi all,

A customer would like to customise the email that gets sent out when a role is allocated, however as far as I can see it is shared across all portals by the entry in the ~/App_GlobalResources/GlobalResources.resx file.

I can edit this - but then this affects all Portals in the install. Can anyone think of a way to achieve some sort of logic in this XML file, or some way of creating portal-unique GlobalResources.resx fil, or in fact any other way of achieving this ?

Thanks, Rob

<data name="EMAIL_ROLE_ASSIGNMENT_SUBJECT.Text" xml:space="preserve">
    <value>[Portal:PortalName] User Account Update</value>
  </data>
  <data name="EMAIL_ROLE_ASSIGNMENT_BODY.Text" xml:space="preserve">
    <value>Dear [User:DisplayName],

Your user account at [Portal:PortalName] has been recently updated to include access to the following Security Role:

Role: [Custom:0]
Description: [Custom:1]
Effective Date: [Custom:2]
Expiry Date: [Custom:3]

Thank you, we appreciate your support...
[Portal:PortalName]
</value>
  </data> 

 

 
New Post
1/17/2012 8:29 PM
 

Instead of directly editing the GlobalRsources.resx file - you should be making these sort of changes using the dnn languages module - in the admin menu.

This will give you the option to make the changes relative to System, Host or most importantly a single Site - this allows the changes to be made uniquely for each site in your hosting.

 - internally what happens is that this module creates localized copies of the globalresources that you happen to edit - and merges these all together at runtime -  SITE first then HOST then SYSTEM.

The other advantage of this is that when you run a DNN upgrade - the globalresource.resx file will most likely be upgraded - and if you had edited it manually your changes would be lost - if you edit the settings using the languages module for a single SITE - these custom settings are not lost.

Westa


 
New Post
1/18/2012 5:24 AM
 
Westa, thanks very much for your detailed response,
I had overlooked the edit facility on the admin/ languages
Area, that's exactly what I needed and as you say
Is upgrade proof too!
Thanks
Rob
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Role allocated emailRole allocated email


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out