02-25-2020 10:57 AM
I want to add a dropdown list to the existing dialog where the value is forwarded like in Aikau. I don't know where to begin. I've taken a look at this https://www.alfresco.com/abn/adf/docs/content-services/dialogs/library.dialog/ and looked for "adf-library-dialog".
siteService.config.widgetsForCreateSiteDialogOverrides = [
{
id: "SELECT_PROJECT_TEMPLATE",
name: "alfresco/forms/controls/Select",
targetPosition: "START",
config: {
fieldId: "SELECT_PROJECT_TEMPLATE",
label: "TestTitle",
name: "ph:customTemplateProperty",
value: standardTemplate,
optionsConfig: {
fixed: options
}
}
}
];
02-26-2020 12:07 PM
Hi @phivuu-2,
What do you mean with "the value is forwarded like in Aikau"?
Are you looking to get one of the values from an external source?
Which is your goal?
Cheers.
02-27-2020 03:57 AM
Hi,
The goal is to retrieve the value in repository(sites.post.json.js). With Aikau it was possible with ph:customTemplateProperty.
siteService.config.widgetsForCreateSiteDialogOverrides = [
{
id: "SELECT_PROJECT_TEMPLATE",
name: "alfresco/forms/controls/Select",
targetPosition: "START",
config: {
fieldId: "SELECT_PROJECT_TEMPLATE",
label: "TestTitle",
name: "ph:customTemplateProperty",
value: standardTemplate,
optionsConfig: {
fixed: options
}
}
}
];
I've gotten some advice on Gitter which I'm looking into now. If I have understood correctly I need to do the following:
Explore our Alfresco products with the links below. Use labels to filter content by product module.