mantas393 Posted January 18, 2019 Share Posted January 18, 2019 I'm writting a module, and I want user to have an ability to choose from a list of pages, similar like in "ps_mainmenu" module (I added screenshot). Could you give me some simple example, how to do it? Thanks Link to comment Share on other sites More sharing options...
tdsoft Posted January 19, 2019 Share Posted January 19, 2019 Hi, you can open file to view source for create that form: modules\ps_mainmenu\ps_mainmenu.tpl 2 there selected form are <div class="col-lg-4"> <h4 style="margin-top:5px;">{l s='Selected items' d='Modules.Mainmenu.Admin'}</h4> {$selected_links} </div> <div class="col-lg-4"> <h4 style="margin-top:5px;">{l s='Available items' d='Modules.Mainmenu.Admin'}</h4> {$choices} </div> Data loaded from file: modules\ps_mainmenu\ps_mainmenu.php 'choices' => $this->renderChoicesSelect(), 'selected_links' => $this->makeMenuOption(), You can copied and use 2 there functions for your module or required that PHP files and use it Link to comment Share on other sites More sharing options...
mrweb Posted August 29, 2019 Share Posted August 29, 2019 Hi I use Prestashop 1.7.5.2 and I need to add an item with dropdown submenu in ps_mainmenu.tpl, after the categories With the BO I can add an item (cms page) but no submenu possible Could you help me please ? Thanks! 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