Jump to content

Plugin Widget Order


Blesta Addons

Recommended Posts

we have a plugin widget, that is well rendered and working, the only issue we have that this widget not remember the area placed in it last time as other widget. and every time we change place area, after a page reload it return to the first place in the area_1 .

is their any think we should look to it?

 

Link to comment
Share on other sites

We have found the solution, it not mentioned in the docs and it should be,  the widget id should be semilar to the widget path .

for example the widget path is : widget/cashbox/admin_widget the widget create id attribute should be some thing like :

        $this->Widget->create(
			$this->_('AdminWidget.index.boxtitle', true), 
			['id'=>'widget_cashbox_admin_widget'],
			$this->Html->ifSet($render_section, null)
		);

so if you put anything else the order will not work, 

['id'=>'cashbox_widget_admin']

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...