renaud2263 Posted July 19, 2016 Share Posted July 19, 2016 Hi All, I just created my own back office module. In the controller I placed this : public function renderList() { $this->addRowAction('edit'); $this->addRowAction('view'); $this->addRowAction('delete'); return parent::renderList(); } Then I have these 3 buttons on the right of each line of records. My question is about the view action: I would like to open in a fancybox popup. At the moment I use the renderView : public function renderView() { $data = $this->loadObject(true); $this->tpl_view_vars = array( 'answer' => $data->answer, 'title' => $data->title ); return parent::renderView(); } So the content is displayed in the main page. How can I do to open it in a popup ? Is it neccessary to modify the view button ? How ? I suppose I must add jquery fancybox function in the view.tpl template itself ? I don't know where I can start. Thanks for help. Link to comment Share on other sites More sharing options...
renaud2263 Posted July 19, 2016 Author Share Posted July 19, 2016 I just found how to do that. I will explain if it can help. But only problem: I need to override the admin/themes/default/template/footer.tpl from my module. I tried several solution such override/controllers/admin/templates/footer.tpl or modules/mymodule/override/controllers/admin/templates/footer.tpl But it's always the native one which is loaded. Any idea ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now