Being a newbie to MODx I guess I just wanted to see if it could be done and also if I could achieve this in Wayfinder. More of a learning curve really.
How I implemented this was as follows
1. Download all the files from the phatfusion
www.phatfusion.net site unzip and add to template folder
2. Add the mootools, javascript and css to the Template header
3. Create the images a bit of photoshop and save to images folder
4. The images are addded to the menu through css styling, in the file imageMenu.css (included with the download) as shown below
#imageMenu ul li.WhatWeDo a {background: url(../images/whatwedo.jpg) repeat scroll 0%;}
#imageMenu ul li.DesignAndPrint a {background: url(../images/designandprint.jpg) repeat scroll 0%;}
#imageMenu ul li.WebsiteDesign a {background: url(../images/websitedesign.jpg) repeat scroll 0%;}
#imageMenu ul li.CorporateWear a {background: url(../images/corporatewear.jpg) repeat scroll 0%;}
#imageMenu ul li.ContactUs a {background: url(../images/contactus.jpg) repeat scroll 0%;}
5.So now we have the images and the css class together
li.WhatWeDo and
url(../images/whatwedo.jpg)
6. The next step is to add the menu to the template and in order for it to work we need wayfinder to generate the different list classes this was done as follows
7. in &rowTpl add the code (Thanks to BobRay for the reply) and call it pixImageMenu
<li class="[+wf.title+]">
<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
The Idea : Create the pages/document/resources and give each one a title corresponding to the css class, Then get the title and use it to generate the custom classes using wayfinder
8.Create the pages I need and give each page a title corresponding to the css class (e.g WhatWeDo).
10.Then the wayfinder call
[!Wayfinder? &startId=`1` &rowTpl=`pixImageMenu` &sortBy=`menuindex` &level=`1`!]
11.Using sort by menuindex give me the flexibility to rearrange the menu in any way I like
The final wayfinder call in the Template is
<div id="imageMenu">
[!Wayfinder? &startId=`1` &rowTpl=`pixImageMenu` &sortBy=`menuindex` &level=`1` !]
</div>
<script type="text/javascript">
window.addEvent(’domready’, function(){
var myMenu = new ImageMenu($$(’#imageMenu a’),{openWidth:310, border:2, onOpen:function(e,i){alert(e);}});
});
</script>
Thank You