I am currently trying to make my own widget that contains both simple and advanced parameters. I would like this widget to be partly configurable (simple parameters) for front-editors.
The problem is that i don't know how to enable the fast edit behavior. Indeed, the usual pen does not display.
How can i activate that and tell diem which are the form widgets a front-editor can update ?
Thank you in advance !
PS : Really great job for all the work on Diem, that i discovered just a month ago !
The problem is that now some configuring must be missing because i don't see any "fast-edit" mode for non admin users (event front editors ...). Can someone tell me what can allow this mode ? Or where to look in the library ? I tried to look at dmFrontPlugin widget but i have not found the piece that is missing.
On Sunday, April 22, 2012 10:59:34 PM UTC+2, Anthony Coutant wrote:
> Hi,
> I am currently trying to make my own widget that contains both simple and > advanced parameters. > I would like this widget to be partly configurable (simple parameters) for > front-editors.
> The problem is that i don't know how to enable the fast edit behavior. > Indeed, the usual pen does not display.
> How can i activate that and tell diem which are the form widgets a > front-editor can update ?
> Thank you in advance !
> PS : Really great job for all the work on Diem, that i discovered just a > month ago !
The fast edit is controlled by the permission 'widget_edit' and some other
permissions (admin access etc.) Have a look at the permissions list in the
admin to get familiar with the existing ones.
Kind regards,
Erik Van Kelst
IT specialist - OpenSource developer
--
sent from my mobile phone
On May 2, 2012 8:16 PM, "Anthony Coutant" <anthony.cout...@gmail.com> wrote:
> The problem is that now some configuring must be missing because i don't
> see any "fast-edit" mode for non admin users (event front editors ...).
> Can someone tell me what can allow this mode ? Or where to look in the
> library ? I tried to look at dmFrontPlugin widget but i have not found the
> piece that is missing.
> Thank you !
> On Sunday, April 22, 2012 10:59:34 PM UTC+2, Anthony Coutant wrote:
>> Hi,
>> I am currently trying to make my own widget that contains both simple and
>> advanced parameters.
>> I would like this widget to be partly configurable (simple parameters)
>> for front-editors.
>> The problem is that i don't know how to enable the fast edit behavior.
>> Indeed, the usual pen does not display.
>> How can i activate that and tell diem which are the form widgets a
>> front-editor can update ?
>> Thank you in advance !
>> PS : Really great job for all the work on Diem, that i discovered just a
>> month ago !
I have seen that in C:\wamp\www\diem-aenomis\lib\vendor\diem\dmFrontPlugin\modules\dmWidget\lib \BasedmWidgetActions.class.php a list of actions that are called on every widget. Then, i have checked the C:\wamp\www\diem-aenomis\lib\vendor\diem\dmFrontPlugin\modules\dmWidget\con fig\security.yml file that contains every credential definition for actions.
My "superuser" profile that has the "widget_fast_edit" right through the "front_editor" role, it can edit all of core widgets such as text, image, title ... In my widget code, i don't have any code that hides form inputs if the user does not have the widget_edit role. So, by default, the superuser guy should have access to this widget edition, right ?
I tried to add my own security.yml file but it does not work. Do i have to modify the edit action of my custom widget or something ?