Detecting language please wait for.......
This blog posts describes how you setup Salesforce Community Cloud with SDL Tridion Sites.
Setting up new community portals using Salesforce Community Cloud is very straight-forward If you have this feature enabled in your Salesforce instance you should find Communities in your Setup menu. Please refer to the following documentation on how enable Salesforce Communities: https://help.salesforce.com/articleView?id=networks_enable.htm&type=5
To create a new community portal you follow the steps described here: https://help.salesforce.com/articleView?id=networks_creating.htm&type=5
Below shows some different templates that can be used to create a new community portal:
Follow the steps below to setup a CMS connection to your SDL Tridion Sites web site:
Now you should be able to include your CMS managed content into your community site. For more information about on how creating CMS connection, please refer to https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_cms_create_connection.htm.
If you want to use language mappings you have to setup your DXA site to use language postfixes for all publications including your main site, e.g.
In your CMS Connect setup you need to do the following:
You might need to some additional tweaks on the style where your style collides with the style provided by the selected community template. There is a possibility to directly do it from the Builder interface. Select 'Branding' and then 'Edit CSS'. There you can add your changes. Those changes will then be merged into the community CSS files.
For more information about overriding community template elements with custom CSS: https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_customize_css.htm
There are several ways of including your scripts. Either by specifying them in the CMS connect setup or include them in the head markup for the community site. For DXA designs based on Bootstrap it works best to include them in the head markup to avoid conflicts with the provided community scripts. Make sure that you add defer=true for the scripts you normally include in the footer (not an optimal solution, but it is an easy workaround). You find the edit head markup feature here: Settings->Advanced->Edit Head Markup.
Example of head markup:
Use custom fonts:https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_customize_font.htm
Customizing the theme layout of community templates:https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_customize_theme.htm
To use your content in the community portal you need to publish them as standalone HTML fragments to your public site. There are several possibilities such as:
I guess more options will be available when the new region concept is introduced in SDL Tridion Sites 9.
When rendering your HTML fragments, you can either just render the HTML of that particular content component or embed in in a base HTML structure container. Normally if using an existing CSS style it is easier to embed it in a HTML structure container to preserve the look&feel. Example:
If you’re using DXA there is already some basic support for standalone fragments where the header and footer can be accessed standalone (e.g. http://mysite.com/system/include/header & http://mysite.com/system/include/footer). In addition there is a simple DXA module available to expose any content as standalone fragments. See the following blog post on how to setup this module. It also is possible to consume JSON content in your community portal. Read more about this option here: https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_cms_connection_json.htm
To use your CMS fragments in your community portal you follow the below simple steps:
The new Salesforce CMS Connect feature provides a nice way of embedding CMS fragments into Salesforce community sites. I expect more functionality will come in Salesforce Community Cloud including personalisation support etc.
In my next blog post I will go through how you quickly create a community site from scratch using vanilla DXA and the white label design.