How to put shortcut on side menu back office 1.7?

digitalex

New member
XNullUser
Joined
Sep 9, 2021
Messages
11
Reaction score
0
Points
1
NullCash
4
Hello friends!

How to put shortcut of module on side menu?

I attach a pic.

Best regards
 

Attachments

  • Screenshot 2021-11-29 at 23-59-00 Painel de controlo • Grande Alternativa - Bricolage, Constru...png
    Screenshot 2021-11-29 at 23-59-00 Painel de controlo • Grande Alternativa - Bricolage, Constru...png
    17.5 KB · Views: 0

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,498
Reaction score
1,445
Points
113
NullCash
5,886
Hello friends!

How to put shortcut of module on side menu?

I attach a pic.

Best regards
I know only not easy ways. I think easy way not exist.
Firs method. Create module with tabs but....


Second method. U need free module to edit Back office menu.
Free module here You need to create controller in module that being redirect to module configurations.
That controller use in Backoffice menu editor.

Example of controller.
U have module with folder name "mymodule"

add in folder /mymodule/controllers/admin/
file adminmymodule.php

add code

class AdminmodulenameController extends ModuleAdminController
{
public function __construct()
{
// parent::initcontent();
$module = "modulename";
Tools::redirectAdmin('index.php?controller=AdminModules&configure='.$module.
'&token='.Tools::getAdminTokenLite('AdminModules'));
}
}

This AdminmodulenameController use in Backoffice menu editor.

I try without controller put direct link like /index.php?controller=AdminModules&configure=mymodule
but unfortunately, because required use &token= in link, that you can not generate from static link.

Be careful Backoffice menu editor easy to broke you Backoffice, will make backup for experiments.
Have good day.

P.S. Add your item to submenu. Because for parent menu you need controller too :)
 
Last edited:

digitalex

New member
XNullUser
Joined
Sep 9, 2021
Messages
11
Reaction score
0
Points
1
NullCash
4
I know only not easy ways. I think easy way not exist.
Firs method. Create module with tabs but....


Second method. U need free module to edit Back office menu.
Free module here *** Hidden text: cannot be quoted. ***

You need to create controller in module that being redirect to module configurations.
That controller use in Backoffice menu editor.

Example of controller.
U have module with folder name "mymodule"

add in folder /mymodule/controllers/admin/
file adminmymodule.php

add code



This AdminmodulenameController use in Backoffice menu editor.

I try without controller put direct link like /index.php?controller=AdminModules&configure=mymodule
but unfortunately, because required use &token= in link, that you can not generate from static link.

Be careful Backoffice menu editor easy to broke you Backoffice, will make backup for experiments.
Have good day.

P.S. Add your item to submenu. Because for parent menu you need controller too :)
thanks : ) i will try today to make some codes thanks again a lot , cheers
 
Top