Jump to content

Module category list selection in back office


Recommended Posts

Hello,

I am new in module developement but I follow the documentation to get a new module to work with a render form.

I can just display one textbox in the display form and I need to add a selection of categories. I found this code that works perfectly but without saving the selected values.

 
public function getContent() {
   $categoryTree = new HelperTreeCategories('categories-tree', $this->l('Check the category to display the link'));
  $categoryTree->setUseCheckBox(1);
  return $categoryTree.$this->displayForm();
}
How can I submit this form to retrieve the selected categories ?

 

Thanks in advance helping me,

Jean

 

 

Edited by polaije (see edit history)
Link to comment
Share on other sites

I forgot to say that I am in PS 1.7 but my module is using the old 1.4 structure without render form.

The result on the form is what I expect (see jpg attached) but now I want to retrieve the selected categories. How is the $categoryTree structured ?

Jean

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...