Jump to content

Choose from a list of pages in admin panel


Recommended Posts

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

  • 7 months later...

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

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...