External Profile Data
Umbraco Engage does not provide a built-in way to add additional data to a profile. You can store the data in any format and in any way outside of Umbraco Engage.
Last updated
Was this helpful?
Was this helpful?
import { html } from "@umbraco-cms/backoffice/external/lit";
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UMB_ENTITY_WORKSPACE_CONTEXT } from "@umbraco-cms/backoffice/workspace";
export class EngageExternalProfileDataElement extends UmbLitElement {
#profileId = '';
constructor() {
super();
this.consumeContext(UMB_ENTITY_WORKSPACE_CONTEXT, context => {
this.observe(context?.unique, unique => {
this.#profileId = unique;
});
});
}
render() {
return html`
<p>This is a custom profile view</p>
<p>Current profile id: ${this.#profileId}</p>
`;
}
}
export { EngageExternalProfileDataElement as element }
customElements.define("external-profile-data-demo", EngageExternalProfileDataElement);{
"$schema": "../../umbraco-package-schema.json",
"name": "Engage External Profile Data Demo",
"allowPublicAccess": true,
"extensions": [
{
"type": "engageExternalDataComponent",
"alias": "EngageDemo.ExternalProfileData",
"name": "External Profile Data Demo",
"weight": 100,
"js": "/App_Plugins/path/to/my-element.js"
},
]
}