ShortCode Menu

The way how to use shortcodes with Menu Manager
on Wednesday 28 August 2019
comments: 0

DESCRIPTION

This menu adds possibility to use shortcodes directly in Menu manager.

No configuration is needed.

Reasons for this:

1. power of e107 menu manager  (visibility, configuration, templating).

2. you can use custom menus, but with Tinymce plugin there could be parse issues. With custom menu you create page too, so easier way is better.

3. you can use theme shortcodes, but you can't have them as menu 

4. there are menus with parameters, but they are missing configuration in Menu manager.

Shortly, this saves theme development time. 

Negative:

for now you need to click on configuration button to see menu parameters (I have feature request for this )

- you need to know how shortcodes look and how to set them.  For this I am creating list of available shortcodes on my site

Example:

Chapter menu (page/chapter_menu.php).  You can add it Menu manager (It's listed there). No parameters. 

You can insert it to theme.php this way:

{MENU: path=page/chapter_menu} to have the same result as in Menu manager.

You can use {MENU: path=page/chapter_menu&book=2} to display just chapters of book 2, but only hardcoded.

OR

you can add shortcode menu in Menu manager, click on configuration and insert shortcode there. This way each your menu can have a different caption (you can set there too) or can be without caption. 

Third parameter is 'id' for table_render() function.

Author note.  This menu was used mainly for elements shortcodes. The new version of JM Elements plugin has its own menu for any element, but you can still use it this way. 

D35ce09ac805

 

 

0 Comments

Latest Downloads

JM Download plugin 1.2
in Category: JM Download plugin

JM Download plugin 1.2

2 weeks ago

Plugin for extending the core Download plugin. Version 1.3 on Github Replaced JM_Download plugin, Latest Releases by Father Barry,  Top Downloads menu by SecretR, AACGC Download Tracker by M@CH!N3 V 
Read more..

JM Download plugin 1.2
JM Core plugin 1.6.0
in Category: e107 plugins

JM Core plugin 1.6.0

1 month ago

The version used on this site. It fixes some core limitation via the plugin, no core changes. Check Readme at first.  Version 1.6.1 on github What is inside? - fix for missing titles in the m 
Read more..

JM Core plugin 1.6.0
ReCaptcha plugin 1.3
in Category: ReCaptcha plugin

ReCaptcha plugin 1.3

1 month ago

No CAPTCHA reCAPTCHA Captcha replacement for e107 v2.2 or higher with shortcodes.  Added shortcodes for replacing contact secure image shortcodes. Possibility to hide it from logged users.
Read more..

ReCaptcha plugin 1.3