Hi all .. thrilled to be bearing down on the necessary climb to MODx beginner status. [as of .96 release date!]
No stranger to being in the dark, and making it out again. I’ll be concise as possible here.
1) I’m using MODxHost for all my experiments.
2) I would like to replace the Dropdown menu in MODxHost with:
http://phatfusion.net/imagemenu/index.htm or similar.
3) I saved the phatfusion page and ended up with the index.htm and a folder containing: imageMenu.css / imageMenu.js / main.css / mootools.js
4) Did the obligatory few hours of this and that and go no result whatsoever. No surprise. No frustration!
5) Studied the index file, which includes some info. it’s down below here ...
6) i will now go back to the wiki and read and read and read...
May I ask if anyone could give me anything between, ’a brief indication as whether/how I create a TV based Chunk/Template index mods’ or even perhaps ’a fairly comprehensive shove in the right direction....’
HUGE thanks...obviously!
best wishes to ALL..
BELOW: MOST of the phatfusion index file which includes many clues for many of the gurus here I expect.
<script type="text/javascript" src="index_files/mootools.js"></script>
<link href="index_files/main.css" rel="stylesheet" type="text/css">
<link href="index_files/imageMenu.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="index_files/imageMenu.js"></script></head><body>
<div id="container">
<h1>Image Menu</h1>
<h2>Features:</h2>
<ul>
<li>onClick event keeps selected item open.</li>
<li>Click open item to close.</li>
<li>Specify a function for the onClick event.</li>
<li>Auto open when the page loads.</li>
</ul>
<h2>Usage:</h2>
<p><code>var myMenu = new ImageMenu($$(’#kwick .kwick’),{openWidth:200, onClick:demo});</code></p>
<h2>Options:</h2>
<ul>
<li><strong>onClick:</strong> a function to execute when an item is clicked.</li>
<li><strong>start:</strong> index of the item to open on menu load.</li>
<li><strong>openWidth:</strong> width in px of the items when rolled over.</li>
<li><strong>transition:</strong> see Transitions.</li>
</ul>
<h2>Example:</h2>
<div id="kwick">
<ul class="kwicks">
<li class="kwick opt1"><span>Lanscapes</span></li>
<li class="kwick opt2"><span>People</span></li>
<li class="kwick opt3"><span>Nature</span></li>
<li class="kwick opt4"><span>Urban</span></li>
<li class="kwick opt5"><span>Abstract</span></li>
</ul>
</div>
<script type="text/javascript">
var myMenu = new ImageMenu($$(’#kwick .kwick’),{openWidth:200});
</script>
</div>