Navigation:  "The Jet Engine" PHP Application Framework > Creating a Jet Engine Application > Required Files >

menu.json

Previous pageReturn to chapter overview

menu.json

 

Use this file to define your menu items.   These will automatically show up in the admin center's main menu accross the top

 

This is a "Json" file --- a javascript object that both the admin center and the front-end can parse effectively.  It follows a very specific format:

 

The whole thing is enclosed in square brackets: [ ]
Each item or setting definition is enclosed in curly braces: { }
Each piece of the definition is a colon separated list using quotes to surround the values.  The first value is the "key" name, the second value is the data value for that key.
Statck up multiple setting definitions by using commas.

 

The configuration setting definition uses the following keys:

 

prompt: The wording shown on the menu

 

url: The url to open up when this option is clicked.  Use [PROGRAM] to specify the admin.php program's URL automagically.

 

 

 


 

[

 

   {

       "prompt":"Blog Admin",

       "url":"[PROGRAM]?admin=blog&action=blog_admin"

   },

 

   {

       "prompt":"Mass Emailer",

       "url":"[PROGRAM]?admin=blog&action=send_mass_email"

   }

 

]


This help file was created with an unregistered evaluation copy of Help & Manual. © EC Software. All rights reserved. This message will not appear if you compile this help file with the registered version of Help & Manual.