Global Merge Field Type for Communities

I had a task to create an email template that was for using with communities. However, when creating a email template and using merge fields there are currently none available in the UI for communities.

The solution?

Well, it may not be available merge field in the UI there is a $Network merge field type that can be used and embedded into an email template. It  has two values that can be used:

1{!$Network.Name}
2{!$Network.NetworkUrlForUserEmails}

This is all I needed for my task though I wish there were more available fields that could be used.

To read more click here:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_network.htm