Accordion Menu Apple style |
| Written by kksou | ||||||||||||||
| Tuesday, 30 September 2008 | ||||||||||||||
The Apple style Accordion Menu is a very neat and cool javascript-based menu provided by www.dynamicdrive.com. In case you're wondering what an "Apple style Accordion Menu" is, just take a look at the Table of Content appearing on the right of this paragraph. Take a look at Demo 1 and Demo 2. You can even include images in the menu. Pretty cool, isn't it? What I've done is to wrap the original code from www.dynamicdrive.com into a Joomla plugin/mambot so that you can easily include the Apple style Accordion Menu in any of your content item. Variations of the MenuYou can now easily change the look and feel of the menu through css. Included in the standard installation of this plugin are two variations:
Other MenusLatest Versionv1.0.12 (for Joomla 1.0) and v1.5.12 (for Joomla 1.5) Conform to joomla.org guidelines. Unique Features
How to use the "Accordion Menu Apple style" pluginImportant: If you're using Joomla 1.5.8, please refer to the article:How to enter HTML tags, javascript and PHP codes in Joomla 1.5.8? Otherwise you might find that all your HTML tags, Javascript and PHP scripts will be removed the moment you click the Save or Apply button.
{Accordion_Menu_Apple_style}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style}
<a href="http://www.site1.com">General</a>
- <a href="url1">Introduction</a>
- <a href="url2">Unique Features</a>
- <a href="url3">How to Use</a>
- <a href="url4">Demo</a>
<a href="http://www.site1.com/links">Links</a>
- <a href="http://www.google.com">Google</a>
- <a href="http://www.yahoo.com">Yahoo</a>
- <a href="http://www.joomla.org/">Joomla</a>
- <a href="http://www.kksou.com/php-gtk2/Joomla/Accordion-Menu-Apple-style.php#demo">Demo</a>
{/Accordion_Menu_Apple_style}
- <a href="url"><img src="img_url" border=0 /></a> - <img src="img_url" border=0 />
{Accordion_Menu_Apple_style 60}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style 60 float:left}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style 60 float:right}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style 60 float:right10}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style}
<a href="http://www.site1.com/links" target=_blank>Links</a>
- <a href="http://www.google.com" target=_blank>Google</a>
- <a href="http://www.yahoo.com" target=_blank>Yahoo</a>
- <a href="http://www.joomla.org/" target=_blank>Joomla</a>
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style}
This is a plain text level 1 menu item
- <a href="http://www.google.com" target=_blank>Google</a>
- <a href="http://www.yahoo.com" target=_blank>Yahoo</a>
- <a href="http://www.joomla.org/" target=_blank>Joomla</a>
{/Accordion_Menu_Apple_style}
Note that this is a global setting that applies to all menus. To set the reveal type as "click" for the current content item (regardless of the setting in the Parameters page), use the following:
{Accordion_Menu_Apple_style 60 float:right revealtype:click}
... menu items ...
{/Accordion_Menu_Apple_style}
To set the reveal type as "mouseover" for the current content item (regardless of the setting in the Parameters page), use the following:
{Accordion_Menu_Apple_style 60 float:right revealtype:mouseover}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style 60 width:200}
... menu items ...
{/Accordion_Menu_Apple_style}
Customizing the menu with CSS
{Accordion_Menu_Apple_style 60 float:right css:your_css_file.css}
... menu items ...
{/Accordion_Menu_Apple_style}
Accordion Menu Apple style moduleIf you wish to include the Apple style Accordion Menu into a module (as oppose to another content item), use the following module which I've written: Accordion Menu Apple style module. Include the Apple style Accordion Menu into another content item => use this plugin. Include the Apple style Accordion Menu into another module => use the Accordion Menu Apple style module. DownloadRemove the "Powered by" linksIf you find the plugin useful and would like to use the plugin without the "Powered-by" links, you may do so by purchasing a "Powered-by" removal license for only USD $10 per site. Secured payment is processed by 2checkout.com. All major credit cards are accepted, including Visa, Mastercard and American Express, etc. You can also pay by PayPal. Once the transaction is completed, you will be given a link to download the version with the "Powered by" links removed. How to install (Joomla 1.0.x)
You are now ready to use this plugin! How to install (Joomla 1.5.x)
You are now ready to use this plugin! Version History
Added one more parameter: Width of Menu This is useful when you want to include graphics in your menu. You can adjust the width of the menu to fit your image. In case you didn't notice it. There's also another parameter Reveal Type. The default is "mouseover". This mean that the submenu automatically reveal when your mouse is over the level 1 menu. If you set the reveal type as "click". Then the user need to click on the level 1 menu to reveal the level 2 menus. You can now easily change the style of the menu (including font style, size, foreground color, background color, etc.) by editing the css file directly. The css file is located in the folder You can set the reveal type as "click" or "mouseover" in the Parameters page in the Plugin Manager. This is the global setting that applies to all. This latest version now allows you to overwrite the global setting in your content item:
{Accordion_Menu_Apple_style 60 float:right revealtype:click}
... menu items ...
{/Accordion_Menu_Apple_style}
{Accordion_Menu_Apple_style 60 float:right revealtype:mouseover}
... menu items ...
{/Accordion_Menu_Apple_style}
Released October 6, 2008 You can now select different css files for different menus with the following syntax:
{Accordion_Menu_Apple_style 60 float:right css:your_css_file.css}
... menu items ...
{/Accordion_Menu_Apple_style}
Note that your css file should be placed in the folder Released October 7, 2008 You can now overwrite the global setting of the menu width locally. See here for details. Released December 9, 2008
FAQ (Frequently Asked Questions)Q1: I want the link to launch to a new tab or new window when the user clicks on the click. A1: Use the following use the following syntax:
{Accordion_Menu_Apple_style}
[url=http://www.site1.com/links]Links[/url]
- [url=http://www.google.com 1]Google[/url]
- [url=http://www.yahoo.com 1]Yahoo[/url]
- [url=http://www.joomla.org/ 1]Joomla[/url]
{/Accordion_Menu_Apple_style}
Q2: Can I have more than one menu in the same page? A2: By right, you should have only one menu per page. However, go ahead and try it. You can actually put two or menus in the same page. There are two "problems" here, though:
|
||||||||||||||
| < Prev | Next > |
|---|










Comments
This is a plugin. As the name suggests, a plugin is for use within a Joomla article.
So what you need to do is to create a new article and then place the tags inside anywhere in the article where you want the menu to appear.
Regards,
/kksou
I use the plg on www.betzenstein.de since 2008. Yesterday we moved to a new vServer. Especially we changes from php5.2 to php5.3.
I updated your plg to the latest version 1.5.12 under Joomla 1.5.26.
Apparently my css file does not get a call from the plg anymore.
Please, what can I do to fix this issue ..?
Best regards
Steffen
There are too many possibilities? Can you do some testing on your side and provide more clues e.g. what you see on the screen? Any error messages? etc.
Regards,
/kksou
RSS feed for comments to this post