programmatically set the activation or not of the first level pages in portofino > 4.2.3

26 views
Skip to first unread message

trifi85

unread,
May 18, 2022, 1:55:39 AM5/18/22
to manydesigns-portofino
Good morning everyone, is there a way to programmatically set the activation or not of the first level pages (actions / admin / root-page / children), maybe through the portofino properties? I await yours Thanks

Alessio Stalla

unread,
May 21, 2022, 8:33:16 AM5/21/22
to manydesigns-portofino
Hi, there is no specific API to do this, but you can modify pageInstance.page.permissions and save the resulting object (DispatcherLogic.savePage).

In Portofino 5 those would be actionInstance.actionDescriptor instead of pageInstance.page and ActionLogic instead of DispatcherLogic.
Reply all
Reply to author
Forward
0 new messages