Portal Configuration Guides Overview
In the platform, portal Admin have the ability to configure Tools, Groups, and Pages. Portal Admin need to decide on categories for Tools, Groups, and Pages. Then, when creating a Tool, Group, or Page, assign it to the category where it belongs.
The Portal Configuration Guides Overview provides information that is essential to utilizing Pathify Portal Configuration. It is advised to begin with The Portal Configuration Guides Overview before proceeding.
In this article:
Guide Overview
Goal
Provide users with a more customized portal experience.
Objectives
- Portal Admin should review the following information to determine desired customized elements.
Outcome
- More personal portal experience for all users.
Take Note
Below is a list of tags, styles, and attributes that may be applied to different elements in the portal.
While all of these may be edited through the Pathify API, end users can only edit these on Pages directly in the portal.
Default Whitelist
The following list of standard tags, styles, and attributes applies to Announcements, Event Description, FAQs (answer), Group Description, Tasks, and User Profile "About" (field is bio
).
Allowed in body element tags
tags = [
"a"
"abbr"
"acronym"
"b"
"blockquote"
"br"
"caption"
"code"
"dd"
"div"
"dl"
"dt"
"em"
"h1"
"h2"
"h3"
"h4"
"h5"
"h6"
"hr"
"i"
"img"
"li"
"ol"
"p"
"pre"
"span"
"strong"
"table"
"tbody"
"td"
"th"
"thead"
"tr"
"ul"
]
Allowed inline styles
styles = [
"background-color"
"border-collapse"
"border-color"
"border-style"
"color"
"display"
"float"
"font-size"
"height"
"margin-left"
"margin-right"
"text-align"
"width"
]
Allowed per tag attributes
attributes = {
"a": ["href", "target", "title"]
"abbr": ["title"]
"acronym": ["title"]
"img": ["alt", "height", "src", "title", "width"]
"td": ["colspan"]
"th": ["colspan"]
"tr": ["rowspan"]
"*": ["class", "id", "style"]
}
Default Whitelist +
The Default Whitelist (as noted above) plus the following list of extra tags and attributes apply to Pages.
In the Pages editor, a user can switch to code mode and edit the HTML directly.
Extra tags
extra_tags=["iframe"]
Extra attributes
extra_attributes={
"iframe": ["allow", "frameborder", "fullsize", "src"]
}
Legacy Whitelist
The following list of Legacy Whitelist tags, styles, and attributes applies to Group Posts.
Tags
tags = [
"a"
"abbr"
"acronym"
"b"
"blockquote"
"br"
"code"
"em"
"i"
"img"
"h1"
"h2"
"h3"
"h4"
"h5"
"h6"
"li"
"ol"
"p"
"span"
"strong"
"ul"
]
Styles & attributes
styles = []
attributes = {
"a": ["href", "title"]
"abbr": ["title"]
"acronym": ["title"]
"img": ["src", "alt", "title", "width", "height"]
}
Exceptions
The following Exceptions apply to Notifications (body and title).
Notifications do not support all of the tags or attributes in the whitelists above. The following HTML tags are supported in Notifications:
“p”
“div”
“span”
“strong”
“h1”
“h2"
“h3”
“h4"
“h5”
“h6"
"small"
"em"
"br"
"ul"
"ol"
"article"
"section"
Comments
0 comments
Please sign in to leave a comment.