Jump to content

Recommended Posts

Posted

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?

 

Posted

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']

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...