Menu Generator

Navigation menu management tool

During website development you often come across situations when the Customer needs a convenient and simple-to-understand tool to fill end edit multi-level navigation menu. Working with the template via FTP or online template editor is complicated and prone to errors. That is why we've developed the Menu Generator plugin that enables main menu management by an unexperienced user without endangering the html-layout.

 

Authors: esclkm, Kalnov Alexey, Cotonti Team

Github: https://github.com/Cotonti-Extensions/menugenerator

#1. Installation

  • Unpack to your plugins folder
  • Install the plugin in AdminCP
  • Fill out the menu using the tools section
  • Place tags in the templates

Menu edit example:

#2. Tags

Tags for displaying menus in theme templates have the following format:

{PHP.MENUGENERATOR.<PATH>}

For example, from the screenshot above, the bottom menu in the "footer" (footer.tpl)

{PHP.MENUGENERATOR.F}

And the side menu (in header.tpl):

{PHP.MENUGENERATOR.LE}

All tags are global and accessible from any template.

#3. Templates

The menu can be customized using templates. Template names are formed according to the following principle:

menugenerator.<general_or_path_root>.<level>.<path>.tpl

where:

  • general_or_path_root (optional) - is word 'general' or root element.
  • level (optional) - nesting level: level0, level1, etc.
  • path (optional) - path

For example:

for the screenshot above, the menu template in the "footer" of the site will be in the menugenerator.t.tpl, and the side menu template is menugenerator.le.tpl, the first level menu template: menugenerator.le.level1.tpl

Single menu item can be designed in template: menugenerator.le.level2.le.1.30.tpl

#4. Additional (extra) fields

You can use additional fields to display additional information: description, icons, etc. Extrafields are also supported.

#5. Tags in menu templates

  • {MENU_TITLE} - menu item title
  • {MENU_HREF} - link
  • {MENU_PATH} - path (see menu filling)
  • {MENU_EXTRA} - additional text field
  • {MENU_DESC} - description
  • {MENU_ID} - ID
  • {MENU_SUBMENU} - submenu.

1. Alex300  2010-05-05 15:55
Вопрос:

Использует ли он в своей работе ф-цию sed_url и позволяет ли он выбирать ссылки мышкой, не вводя текст вручную? Например выбираешь последовательно страницы->категория->страница а оно генерирует текст ссылки.
2. Kort  2010-05-06 16:55
FYU: There will be no demos. The screenshot gives you the idea. Intersted? -- send an email. Curious? -- keep watching.
3. esclkm  2010-05-07 15:57
Alex300 - это не чудо самолет. админка дана на скриншоте.
понимаешь - есть не только категории, есть еще и форумы и плагины, сторонние скрипты, внешние ссылки.
Главное суть плагина - правильно постороить дерево ссылок - 4-5 уровневое, при наличие правильного CSS? сделать это с меньшими затратами крови,
А так же сделать различные деревья меню - для различных групп - одно для гостей, другое для админов,

Плюс - возможность сделать различные менюши в разных участках сайта
4. webitproff  2023-05-27 13:33

Если во время установки получили "Fatal error" - возможно поможет мое решение.

5. Alex300  2023-05-27 14:48

Исправлено. Спасибо.

Only registered users can post new comments