CEC Sample Pages is a collection of HCL Connections Engagement Center pages and designs that can be used to style the look and feel of HCL Connections Engagement Center landing pages.
(C) 2025 HCL America Inc. Apache-2.0 license https://www.apache.org/licenses/LICENSE-2.0
The HCL Connect Homepage is a landing page aggregating news from multiple sources in a fresh new layout. Its major focus areas are:
- a Top Navigation
- a Quick Navigation Menu
- a MegaNews Widget
- multiple News Overviews
Click Customize > Engagement Center Settings > Customization files
- Drag all files from
gfx,cssandjsto your customization files - edit
custom.jsand add these lines into itsinit()function:
(() => {
const isHCLConnectPage = (needle) => XCC.S.container.cssFile.name.indexOf(needle) >= 0;
if (isHCLConnectPage("hcl-connect") || isHCLConnectPage("hclc-community-layout-")) {
// then require and execute the necessary code
XCC.require(["/xcc/rest/files/custom/hcl-connect.js"], () => {
$("#hclc-top").fadeIn();
});
}
})();
- Create a new page in CEC and set it to Grid Layout 16
- In its
Page Settings, selecthcl-connect.cssas the layout - Click
Saveand see the page reloading. HCL Connect style is applied now. Continue adding Widgets from here.
You can now add Widgets as you like. There is one Widget, particularly styled for this experience: The News Overview Widget. The styling comes in two flavours: as a one-lined Overview Widget and as a MegaNews Widget.
Top Navigation is configured using the topnav.json file. Once uploaded to HCL Connections Engagement Center you will find it in the Language Files section.
Each object in the entries array represents an entry in the Top Navigation.
There are a few properties in each entry that can be used:
title: the link text to displaytarget: open link in target: _self, _top, _blank - defaults to selflink: The link URL to be opened. Can be an URI to point to a local resourcehandle: community handle to identify blog entries from a particular community in the MegaNews widget - the handle is the uuid part of a communities URL.end: starting color code of the gradient in CSS hex notation. e.g#789DF4start: starting color code of the gradient in CSS hex notation. e.g#789DF4rotation: rotation of the gradient in degrees, defaults to 0
The format and syntax of this file is JSON
The Top Navigation is responsive - when Screen is not wide enough it collapses:
Quick Navigation is Two-Level, expandable Navigation, providing links to common resources. You can style and fill it based on your needs.
The Quick Navigation is configured using the quicknav.json file. Once uploaded to HCL Connections Engagement Center you will find it in the Language Files section.
Each object in the entries array represents an entry in the Quick Navigation.
There are a few properties in each entry that can be used:
title: the link text to displaylink: The URL to be opened. Can be an URI to point to a local resourcebg: background color code of the link in CSS hex notation. e.g#789DF4class: a CSS style class to be added to the nodeentries: an optional array of sub elements to be rendered with this item
The MegaNews Widget styling is a variant of the CEC News Overview widget. To see it, follow these steps:
- Select layout as shown above (hcl-connect.css)
- Add a "News Overview Widget" - preferably in a full-width placeholder and add a Source Blog to it to see Entries
- In Widget Editor > Advanced Settings change its ID to
MegaNews - Save the Widget. You will see the widget being rendered in a grid layout.
What you get to see is a Widget, displaying News in 4 columns with descending graphical significance support. Where the first column shows only one news pretty large, the second and third do show 2 each smaller ones. The 4th column will not show images anymore rendering even less significance to these news.
There is only a few simple steps to follow:
- click Customize button
- from Widgets, find and click the "News - Overview" Box - a new News Overview Widget will be placed at the next empty placeholder
- Click the three dots on that new Widget and select Edit
- in th editor, expand the Content sources section
- in Source select the Source Blog you want to fetch news from
- in Number of items change the value to 4
- click save and see your widget showing news:
The contained CSS is modularized into separate files. The one file to use for selecting a layout of a page is hcl-connect.css. When this file is used as the page layout it will import various other CSS files.
hcl-connect.css
┣━ hcl-connect-base.css
┣━ hcl-connect-highlight.css
┗━ hcl-connect-spotlight.css
The contained JavaScript code is modularized into separate files. The one file to load is hcl-connect.js. This is done with a few lines added to the init() function of custom.js (see Install Instructions).
The loading structure is as follows:
custom.js
┗━ hcl-connect.js
┣━ quicknav.json
┗━ topnav.json
hcl-connect.js: provides multiple modules to render the HCL Connect page, like the Quick Navigation, the TopNavigation and additional code for the MegaNews Widget layoutquicknav.json: describes the Quick Navigation Elements and linkstopnav.json: describes the TopNavigation elements and links



