permission is gone after defining widget function
Posted: Thu May 13, 2010 5:44 pm
I had a fieldname_permissions() to return array('edit'=>0), and the html looks like this:
Health Care<input type="hidden" name="category_id" value="2" id="category_id" />
However, when I created the widget function block__fieldname_widget(), the permission is gone. and the html looks exaclty same as echoed from the widget function, instead of pulling out the value from the record:
<select name="subcategory_id" id="subcategory_id">
<option value="">Please Select ...</option>
</select>
Does somebody knows how to use the permission in the widget function? Thanks.
Health Care<input type="hidden" name="category_id" value="2" id="category_id" />
However, when I created the widget function block__fieldname_widget(), the permission is gone. and the html looks exaclty same as echoed from the widget function, instead of pulling out the value from the record:
<select name="subcategory_id" id="subcategory_id">
<option value="">Please Select ...</option>
</select>
Does somebody knows how to use the permission in the widget function? Thanks.