Closed rahmanjalayer closed 5 years ago
is there no one can help me??!!!!! :(
You can just add additional custom attributes to your TreeModel as described here with appropriate validation rules.
Then you can just include these additional attributes as inputs in your tree node form that will be automatically parsed by the NodeController.
To add additional editable inputs for these custom inputs, just set them your custom view and configure in nodeAdditionalViews
I don't want to add the additional parameters as inputs in my tree. I want to make work them in background.
I'm using tree view in my project. I want to set a new param in treeView widget like follow:
as you can see above, "calledFrom" param is added. I want to access to this in nodeController. for this reason, I've added follow code in TreeView class:
public $calledFrom = false;
then I edited at renderDetail function:to make long story short, I've added "calledFrom" variable every where which "isAdmin" is used. but I can't access it within nodeController/actionManage. I know my description is complicated. but I would be thankful, if you could help me to define a new param and use it in nodeController/actionManage.