Home>Support>Process raw widgets that have come from the Page Builder front end

Process raw widgets that have come from the Page Builder front end

Hello,

hope I’m not wrong with this post like I’m pretty new in WP and Page Builder use…

Problem:
it looks like the ‘update’ method can not really be used for custom widgets like the old_instance variable is not available.
In fact, after editing a widget from the Page Builder, it will launch the siteorigin_panels_process_raw_widgets function (autosave process ?) and use the update method:

$widgets[$i] = $the_widget->update( $widgets[$i], $widgets[$i] );

So no old instance available like both parameters are the same $widgets[$i] variable…

I found a (dirty and not secure) workaround for this issue, but maybe it can be fixed for future Page Builder releases.
An option to allow (or not) the autosave process would be probably the easiest solution or/and better allow to access the old_instance variable during the autosave process…

If my frenglish is not understandable, I can try to explain better… Just let me know. ;)
Thanks in advance for a short answer/info about this issue.

Cheers
Laurent

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 2 months ago Laurent Dorier (Lolo Irie)

    Any comment about ?

    About an other minor thing I did a pull request on github… But no idea if it was a good idea or full useless to do it without asking you before…

    Cheers
    Laurent

    • 8 years, 1 month ago Laurent Dorier (Lolo Irie)

      This minor modif allow for example something like following…

      Basic usage:
      CSS rules allow different layout for each widget…

      Advanced usage:
      Using PHP/JS/CSS, different functions for each widget depending of users, like here

      Admin view: All green => Can edit/remove/duplicate all widgets
      Admin view

      Editor view: Can only green widget(s)
      Editor view

  2. 8 years, 1 month ago Laurent Dorier (Lolo Irie)

    Up…

  3. 8 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Laurent,

    Very sorry about the delay! I’m going to forward this to the development team to see if they have any idea.

  4. 8 years, 1 month ago Laurent Dorier (Lolo Irie)

    Hi
    any news about ?

  5. 8 years, 13 days ago Laurent Dorier (Lolo Irie)

    Up again… ;)

  6. 8 years, 13 days ago Alex S
    Hi, I Work Here

    Hi Laurent,

    Ideally, could you please bump this? The developers will see that while only support people will see this.

    • 8 years, 12 days ago Laurent Dorier (Lolo Irie)

      Hi Alex,

      one more time, thanks a lot for your great support here !!!
      I missed you reported that on github, and will bump it (and maybe my pull request as well)… and continue to play with this great plugin.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More