IAC 2024 - IA Fast Track to Search Focused AI Solutions
CUSTOMIZE & PERSONALIZE CONTENT WITH COMMUNITY THEMING
1. CUSTOMIZE & PERSONALIZE CONTENT
WITH COMMUNITY THEMING
cloud.analogy info@cloudanalogy.com +1(415)830-3899
2. What is Community Theming ?
Theming brings about a transformation in the look and feel of a Salesforce Community. It
helps to bring a much deeper level of customization.
So, the Lightning platform was taken as a groundwork for theming -
something which the user was familiar with. In fact, it is a Lightning component like any
other. The best part lies in the fact that these themes can be packaged and delivered on
the AppExchange. So, any other theme that is used by another community, can be
downloaded and used by you.
cloud.analogy info@cloudanalogy.com +1(415)830-3899
3. cloud.analogy info@cloudanalogy.com +1(415)830-3899
How to Create a Community Theme ?
We navigate to
In the coding part, we make use of an interface named as ForceCommunity:themeLayout
that can be used in a theme. These Lightning components can be dragged and dropped in a
place that is termed as Region.
What is a Region ?
This region is also a place where other developers can put their customized components.
These regions are injected as part of the code. These customized components allow you to
create reusable themes. This is where the theme theme layout comes into play.
These themes usually consist of a template - with a body and a sidebar. The theme also
comes with a theme API. It has a CSS file and a Design file.
Community Builder Settings Theme tab.
4. cloud.analogy info@cloudanalogy.com +1(415)830-3899
Audience Platform and dynamic theming
Audience platform is a powerful tool in the hands of a developer. It allows the developers to
create multiple branding sets. So, each of these branding sets are used for targeted
audience for a particular site. It also manages page and theme properties. The page
properties include page access rights, page titles as well as seo properties.
Following are some properties of Audience platform:
Geolocation
Geolocation is about providing a theme for a localized theme.
User Profile
This is the licenses and the user authentication.
Domain
This is about custom domains for the community - based on targeted audience.
User Object
The entire experience can be changed based on a field in the user object.
5. cloud.analogy info@cloudanalogy.com +1(415)830-3899
How to Create Multiple Branding sets with
Audience Platform
We click on Branding Properties->Manage Branding Sets to create multiple
branding sets. These branding sets can be used for various sub brands - falling under
the primary brand for a different set of target audiences.
There is an option to import content with CMS (Content Management System) Connect
into Salesforce Communities. Next, we will delve into these details.
6. cloud.analogy info@cloudanalogy.com +1(415)830-3899
Importing Content with CMS Connect.
There is an option to import content with CMS (Content Management System) Connect
into Salesforce Communities. You can get content in the form of header, footer from
your website. This will retain the branding and the look and feel of the website. It
saves development time and cost to a considerable extent and is an easier way of
doing things.
There are two types of CMS Connects:
● CMS Connect HTML
● CMS Connect JSON
7. cloud.analogy info@cloudanalogy.com +1(415)830-3899
Types of CMS Connect
CMS Connect HTML
It can be used for bringing existing web content into Communities. Since content is sent
using URL, so any this can be brought real-time into communities.
CMS Connect JSON brings external content through JSON API. However, the type of
content that is brought is articles, blogs and news etc.
8. cloud.analogy info@cloudanalogy.com +1(415)830-3899
CMS Connect HTML
Branding and Personalization of the Community
We go to Community Builder for the branding and personalization effect to the Community.
Make a note of the following:
1. There are three areas on the Community template page where the CMS Connect HTML
can be used. These are the header, footer and the Lightning component.
2. There is component panel from where the CMS Connect can be dragged and dropped
in the chosen content area.
3. It is possible to bring content from any client site - dynamic and real-time.
9. cloud.analogy info@cloudanalogy.com +1(415)830-3899
Blogs or article contents can be brought into Communities. The reason behind are higher
engagement and sharing the content. We will use the CMS Connect JSON connector - for
this purpose for bringing this content into communities.
There are 2 types of layouts in CMS Connect JSON Connector - content items and lists. The
content list supports pagination support and multiple blogs for the items part the read more
option of a single blog can be used as an example. We also have an option for Seo friendly
navigation with the list.
CMS Connect (JSON) in the component section can be dragged and dropped on any part of
the Community.
CMS Connect JSON