Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
|
Drop Down Menu Apple style |
| Written by kksou | |||||
| Thursday, 09 October 2008 | |||||
|
The Drop Down Menu Apple style is a very neat and cool javascript-based drop down menu provided by www.dynamicdrive.com. Unique Features
Note that you might find that the plugin does not work right out of the box. You might need to tweak the css file a bit. However, after trying out numerous Drop Down Menus out there, I find that this is one of the better implementations that are free. The code is relatively light-weight. The interface is clean and responsive. And it supports infinite levels of sub menus! (If you see something that is even better, let me know...) That's why I still decide to go ahead and release this plugin. I would suggest you try this on a standard Joomla installation first (Joomla 1.0 ot Joomla 1.5). Once it works on your site, you can switch to your template and see if it works. If it doesn't, then follow some of the suggestions below to tweak the css file. Latest Versionv1.0.4 (for Joomla 1.0) and v1.5.4 (for Joomla 1.5) Fixed the warning message "Undefined property: Plugin_DropDownMenuApplestyle::$menu_height in DropDownMenuApplestyle.lib.php on line 126" DemoThe follow shows a live multi-level drop down menu. Play with it to have a feel of the menu in action. Sample CodeYou may use the sample code below to try out the menu. After installing the plugin, just copy and paste the following into your content item and you should see the menu:
{DropDown_Menu_Apple_style}
<a href="test1.html">Test1</a>
+ <a href="#">Item 1a</a>
+ <a href="#">Item 2a</a>
+ <a href="#">Item Folder 3a</a>
++ <a href="#">Sub Item 3.1a</a>
++ <a href="#">Sub Item 3.2a</a>
++ <a href="#">Sub Item 3.3a</a>
++ <a href="#">Sub Item 3.4a</a>
+ <a href="#">Item 4a</a>
+ <a href="#">Item Folder 5a</a>
++ <a href="#">Sub Item 5.1a</a>
++ <a href="#">Item Folder 5.2a</a>
+++ <a href="#">Sub Item 5.2.1a</a>
+++ <a href="#">Sub Item 5.2.2a</a>
+++ <a href="#">Sub Item 5.2.3a</a>
+++ <a href="#">Sub Item 5.2.4a</a>
+ <a href="#">Item 6a</a>
<a href="test2.html">Test2</a>
+ <a href="#">Item 1b</a>
+ <a href="#">Item 2b</a>
+ <a href="#">Item Folder 3b</a>
++ <a href="#">Sub Item 3.1b</a>
++ <a href="#">Sub Item 3.2b</a>
++ <a href="#">Sub Item 3.3b</a>
++ <a href="#">Sub Item 3.4b</a>
+ <a href="#">Item 4b</a>
+ <a href="#">Item Folder 5b</a>
++ <a href="#">Sub Item 5.1b</a>
++ <a href="#">Item Folder 5.2b</a>
+++ <a href="#">Sub Item 5.2.1b</a>
+++ <a href="#">Sub Item 5.2.2b</a>
+++ <a href="#">Sub Item 5.2.3b</a>
+ <a href="#">Item 6b</a>
<a href="test3.html">Test3</a>
<a href="http://www.kksou.com">Test4</a>
+ <a href="test31.html">test4.1</a>
+ <a href="test32.html">test4.2</a>
+ <a href="test33.html">test4.3</a>
{/DropDown_Menu_Apple_style}
DownloadExtremely Important: Please make sure you read the Read Me First! if you want to make this plugin work. 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! Read Me First!I've tweaked the original code a bit so that it now works inside Joomla. However, while it works on the default template for Joomla 1.0 (i.e. rhuk_solarflare_ii) and Joomla 1.5 (i.e. rhuk_milkyway), you might find that it doesn't work right out of the box when used with your site template. Don't worry. The javascript code itself is ok. You should actually see the menus and submenus displayed. But it might not be positioned in the right place. All you need is to add or modify a couple of lines in the css file of the plugin to make it work. So, please make sure you read the following if you want to make this plugin work with your template.
Note that if you have downloaded the original version from dynamicdrive.com, the css file Tweaking the CSSAs mentioned above, you might need to do some tweaking to the CSS file to make the plugin work with your template. Below are the additional css codes I've added to make the original version work with the default template of Joomla 1.0 and 1.5. Please use them as reference. If you really cannot figure out what to add to make the plugin work with your template, you may post your request on the Forum. I'm sure there will be some CSS experts out there who are willing to offer some advice.
table.contentpaneopen li {
margin-bottom: 0px !important;
}
#main2 ul li {
padding: 0;
margin: 0;
line-height: 1em;
}
#main2 ul {
list-style-type: none;
padding: 0;
margin: 0;
}
#main2 {
position: static !important;
}
How to use the "Drop Down Menu Apple style" pluginImportant: If you're using Joomla 1.5.8, please refer to the article:
{DropDown_Menu_Apple_style}
... menu items ...
{/DropDown_Menu_Apple_style}
{DropDown_Menu_Apple_style}
<a href="test1.html">Test1</a>
+ <a href="#">Item 1a</a>
+ <a href="#">Item 2a</a>
+ <a href="#">Item Folder 3a</a>
++ <a href="#">Sub Item 3.1a</a>
++ <a href="#">Sub Item 3.2a</a>
++ <a href="#">Sub Item 3.3a</a>
++ <a href="#">Sub Item 3.4a</a>
+ <a href="#">Item 4a</a>
+ <a href="#">Item Folder 5a</a>
++ <a href="#">Sub Item 5.1a</a>
++ <a href="#">Item Folder 5.2a</a>
+++ <a href="#">Sub Item 5.2.1a</a>
+++ <a href="#">Sub Item 5.2.2a</a>
+++ <a href="#">Sub Item 5.2.3a</a>
+++ <a href="#">Sub Item 5.2.4a</a>
+ <a href="#">Item 6a</a>
{/DropDown_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}
Note that this is a global setting that applies to all menus. To set the reveal animate as "true" for the current content item (regardless of the setting in the Parameters page), use the following:
{DropDown_Menu_Apple_style revealanimate:true}
... menu items ...
{/DropDown_Menu_Apple_style}
{DropDown_Menu_Apple_style clear_both:1}
... menu items ...
{/DropDown_Menu_Apple_style}
Menu 1 definition:
{DropDown_Menu_Apple_style menu_id:menu1}
... menu items ...
{/DropDown_Menu_Apple_style}
Menu 2 definition:
{DropDown_Menu_Apple_style menu_id:menu2}
... menu items ...
{/DropDown_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}
Version History
You can now display two or more menus in the same content item!. Fixed the warning message "Undefined property: Plugin_DropDownMenuApplestyle::$menu_height in DropDownMenuApplestyle.lib.php on line 126" Questions? Problems?If you still have problems getting the plugin to work with your templates, feel free to post your questions in the Forum. User reviews Average user ratings: 5.0 (from 1 user)Note: You have to be a registered member to leave a comment. Free registration here. |
|||||
| < Prev | Next > |
|---|



October 16, 2008 5:22am
This is a menu I have been waiting for two year for Joomla! lol
I will test this but I know that you as always have done it!
King of menus!