Creating Menu Options
Now that you have a new menu, you can add options to it.
In the Menus area of the Admin Menus page:
- Select Actions > Menu options for the menu you created.
- On the Admin Menu page, click the Manage menu tab.
- In the Menu Options area of the page, click and drag the New Option menu item into the Menu builder area
You are ready to create the first menu option. Every menu needs a way back home, right? - In the blank menu option you added, enter the following information:
No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId, id, or src.- Label: Type
Home
. This is the name of the option that will display. - URL or ((page name)): Type
HomePage
. This will create a link to the HomePage.This is the actual URL to the page.
Note
By default, your site's home page is the wiki page named HomePage. You can change this to be any wiki page that you want — or even a different feature (such as a blog or article). Later you will learn how to configure a custom home page. - Label: Type
- Click Save Options. Tiki saves the menu option and reloads the page.
- Click the Preview tab to display a preview of the menu. The preview shows the menu title and the link to the home page.
Note
Use the Appearance options to simulate the menu with different Tiki options.
Tip
Tiki includes the Smarty code that you'll need in order to display the menu in a module or page.
Sections
You can group similar menu options in a single section. Let's create a section that will contain a link for each feature.
- Enter the following information to the fields in the Edit Menu Options area.
- Name: Enter the name Features. This is the name of the section that will display.
- Group: Enter Anonymous. This menu section will appear for all users.
- URL: Leave this blank.
- Type: Select section level 0.
- Position: Enter 20.
Tip
Always give yourself extra "space" between menu options. This is helpful if you need to add or move options later. By default, TIki increments each menu option by 10. - Click Save. Tiki saves the menu option and reloads the page.
File not found.
Items
Now, add a menu item to the section.
- Enter the following information to the fields in the Edit Menu Options area.
- Name: Enter the name Wiki Pages. This is the name of the section that will display.
- Group: Enter Anonymous. This menu section will appear for all users.
- URL: Type tiki-listpages.php. This is the actual URL to the page.
- Position: Enter 10.
Tip
You can use the Some Useful URLs area to automatically enter this information. From the Wiki field, select List Pages. - Click Save. Tiki saves the menu option and reloads the page. Again, if you look on the Preview tab, you should see the following:
File not found.
Note
You may need to move your mouse to the Features option in order to dsiplay its sub-option, Wiki pages.
Repeat this procedure to add the following options under the Features section:
- News (URL = tiki-view_articles.php)
- Submit News (URL = tiki-edit_submission.php)
- File Galleries (URL = tiki-list_file_gallery.php)
- Blogs (URL = tiki-list_blogs.php)
- Forums (URL = tiki-forums.php}
The Manage tab of your Main Menu should appear similar to this:
File not found.
If you look on the Preview tab, your Main Menu should look similar to this:
File not found.
Note
At this point, the menu is still not visible outside of the menu admin preview. For that, you need to add the menu to a module (that's the next page in this tutorial)...