Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Allow Fast edit for custom widget
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anthony Coutant  
View profile  
 More options Apr 22 2012, 4:59 pm
From: Anthony Coutant <anthony.cout...@gmail.com>
Date: Sun, 22 Apr 2012 13:59:34 -0700 (PDT)
Local: Sun, Apr 22 2012 4:59 pm
Subject: Allow Fast edit for custom widget

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 !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony Coutant  
View profile  
 More options May 2 2012, 2:16 pm
From: Anthony Coutant <anthony.cout...@gmail.com>
Date: Wed, 2 May 2012 11:16:56 -0700 (PDT)
Local: Wed, May 2 2012 2:16 pm
Subject: Re: Allow Fast edit for custom widget

Hi again,

I have found some code to hide some fields in some conditions :

if(($user = $this->getService('user')) && !$user->can('widget_edit'))
    {
      $this->changeToHidden('aaa');
      $this->widgetSchema['aaa']->setAttribute('readonly', true);
      //unset($this['aaa']);
    }

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 !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4levels  
View profile  
 More options May 2 2012, 2:33 pm
From: 4levels <4lev...@gmail.com>
Date: Wed, 2 May 2012 20:33:41 +0200
Local: Wed, May 2 2012 2:33 pm
Subject: Re: [diem-users] Re: Allow Fast edit for custom widget

Hi Anthony,

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony Coutant  
View profile  
 More options May 6 2012, 6:20 pm
From: Anthony Coutant <anthony.cout...@gmail.com>
Date: Sun, 6 May 2012 15:20:19 -0700 (PDT)
Local: Sun, May 6 2012 6:20 pm
Subject: Re: [diem-users] Re: Allow Fast edit for custom widget

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 ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »