Portal definitions and components
How Servicely chooses the portal a user sees, what a portal definition controls, and how portal components and pages are built.
A portal definition is the record that decides what the Service Portal looks like and holds for a set of users. It sets the home page, styling, catalog categories and knowledge bases. This page explains how definitions and components work, for administrators planning more than one portal.
What a portal definition holds
Portal definitions are listed under Portal & search → Portal → Portal definitions in the Administration workspace. The Portal application ships one definition, Default, described as the definition used when no other applies. Its Home page is Default v2.

The definition form has five tabs: Base, Security, Styles, Colors and CSS. Name and Key sit in the General panel on the right.
| Tab | Fields | What they control |
|---|---|---|
| General panel | Name, Key | Identify the definition. |
| Base | Description | Describes the definition. |
| Base | Active | Only active definitions are considered. |
| Base | Default | Marks the fallback definition. |
| Base | Admin eligible | Marks a definition administrators can land on, when the instance opts in. |
| Base | Home page | The portal page shown first. |
| Base | Order | Decides which definition wins when several apply. The lowest order wins. |
| Base | Catalog categories | Limits the catalog categories shown. When empty, every category the user can see is shown. |
| Base | Knowledge bases | Limits the knowledge bases shown. When empty, every knowledge base the user can see is shown. |
| Security | Roles, Groups, EntitlementScript | Decide who the definition applies to. |
| Styles | Base style, Logo resource, Background image resource | The portal’s look. |
| Colors | Primary, secondary, info, warning, danger and success colours, each with light, dark and bright variants | The portal’s colour scheme. |
| Colors | Menu, site header and table colours | The colours of the menu, header and tables. |
| CSS | CSS | Extra styling for the portal. |
How the portal for a user is chosen
Servicely picks one effective definition each time the portal loads.
| Who is signed in | Definition used |
|---|---|
| Nobody | The definition marked Default. |
| An administrator | The Default definition. If the application property portal.admin.landing.use_eligible_flag is true, the lowest-order definition marked Admin eligible is used instead, falling back to Default. The property is false by default. |
| Any other user | The lowest-order active definition that applies to the user. If none applies, the user’s saved definition, then Default. |
A definition applies to a user when every condition it sets is met:
- if it lists Groups, the user is a member of one of them
- if it lists Roles, the user has one of them
- if it has an entitlement script, the script does not return false
Administrators hold every role, so role-limited definitions would otherwise match them first. That is why administrators get Default unless the instance opts in to Admin eligible.
Components and pages
A portal page is a kind of dashboard laid out from portal components. Portal pages share the tab and grid spacing of dashboards. The Portal & search → Portal menu lists Portal pages, Portal components, Portal styles and Named styles.
A portal component is a reusable block, such as the announcements component. Its form has the tabs Base, Security, Template, Component, Styles, Server script and Parameters.
| Part of the component | What it is |
|---|---|
| Name, Key, Description | Identify the component. |
| Category | Basic, Advanced, Page, Layout, Data, Chart, Report or Other. |
| Template, Component, Styles | The markup, client code and styles that render it. |
| Server script | Code that runs on the server and supplies the component’s data. |
| Parameters | Values a page passes to the component. |
| Roles, Groups, Entitlement script | Decide who sees the component, using the same rules as definitions. Administrators always see components. |
Portal components that render as widgets follow the modern-light widget standard. Their styles use the theme’s colour tokens, so they follow the active theme and the instance branding. If one component fails, the rest of the page still renders.
Modal components are components that open in a dialog. They are listed under Forms, lists & navigation → Components → Modal components. One example is CreateFromTemplate, which lists the templates available for a table.