[Snippet] CoolMenu
#1
Posted 04 January 2008 - 01:19 PM
File Submitter: Dean
File Submitted: 4 Jan 2008
File Category: Menus & Navigation
CoolMenu Files
Click here to download this file
#2
Posted 13 June 2008 - 12:13 AM
Dean, on Jan 4 2008, 06:19 AM, said:
File Submitter: Dean
File Submitted: 4 Jan 2008
File Category: Menus & Navigation
CoolMenu Files
Click here to download this file
Dean - nicely documented - thank you! and yes it is indeed Cool.
Richard
#3
Posted 15 July 2008 - 12:31 AM
#4
Posted 15 July 2008 - 12:51 AM
tecsbrain, on Jul 14 2008, 08:31 PM, said:
Try Googling "CoolMenu" and I'm sure you'll find the original source of this menu, prior to its being integrated into Etomite... This should be the correct page...
#5
Posted 15 July 2008 - 10:36 AM
On the bottom of that page I find "Sites: Viagra". Therefore I closed that page right away as I'm not certain if it is a hacked, corrupted, viral page or just a joke.
#6
Posted 15 July 2008 - 11:51 AM
Quote
#7
Posted 27 February 2009 - 01:12 AM
A cool menu indeed. I had a few probs with it though, although these are CoolMenu probs, not the snippet.
One quick question though, when I edited the snippet to change the urls of the menu i tried $etomite->makeURL() but got an error. I noticed in the code that it had been changed slightly so I altered the call as $funcEtomite->makeURL() and it worked fine. Could you explain very briefly what is going on in that snippet so the etomite calls are changed? Thank you.
This is what I was doing around line 78
// added make url for link in altered row below
$url=$funcEtomite->makeURL('22','','?getcatID='.$child['id']);
// orig $output .= ".makeMenu('".$child['id']."CM','".$parent."CM','".$child['pagetitle']."','[~".$child['id']."~]')\n";
$output .= ".makeMenu('".$child['id']."CM','".$parent."CM','".$child['pagetitle']."','".$url."')\n";
Paul.
#8
Posted 27 February 2009 - 02:16 AM
// example of using the global $etomite object within a snippets local function
function someFunc()
{
global $etomite;
$url = $etomite->makeURL($etomite->documentIdentifier);
/* more code here */
}
Hope this helps..
Hmmm... Seems that the snippet appears to have been submitted in 2008 yet the date in the snippet reflects 2004...Migration into the new snippet library, perhaps...
#9
Posted 12 October 2009 - 09:32 PM
I have uploaded the cool_menu folder within the assets/site/ folder, I have added the chunk within the <head> tags, and yet, no menu.
You can see what I mean by looking at a test page I have created here. Notice the bottom of the page, where it actually reads [[CoolMenu]].
Can anyone share any light into this? Any help would be greatly appreciated.
Thanks,
Rodrigo
#10
Posted 12 October 2009 - 09:39 PM
#11
Posted 14 October 2009 - 05:18 PM
DeanC, on 12 October 2009 - 09:39 PM, said:
Yes, I did, as well as copying the chunk as a new chunk, and called it CoolMenu. So I have a new snippet and a new chunk each called CoolMenu. And yet, the page outputs text, rather than the snippet itself.
Any ideas?
#12
Posted 14 October 2009 - 08:39 PM
I've not looked at the Coolmenu snippet, but maybe there is a clash between the snippet and chunk caused by them having the same name? maybe try using a different name for one. (This is just a guess, I wouldn't be surprised to find its irrelevant, but this would be the second thing I'd check in this case)
#13
Posted 15 October 2009 - 03:15 AM
Those are great suggestions. However, I actually made sure to use the snippet without the chunk, i.e., I used the chunk code on the template instead. And this did not work either. Obviously, I also used te chunk with and without the same name, to no avail.
Finally, I cleaned AND turned the cache off, and still nothing.
Here is one more clue: the site is hosted with Network Solutions. The root of the site is /htdocs/home/. However, in the NetSol control panel the domain directs all resources directly to the /htdocs/home/ directory, so in essence, the the root directory is just "/". Anyway, I tried using all combinations of roots, and none worked.
I have no idea if the above has anything to do with my not displaying the snippet, but does anyone have any other suggestions?
Thanks in advance,
Rodrigo
#14
Posted 15 October 2009 - 12:50 PM
#15
Posted 15 October 2009 - 02:51 PM
Ralph, on 15 October 2009 - 12:50 PM, said:
I tried removing the {{FixInertTags}} from the template, but that did not work either. There was no instance of [!FixInertTags!], just {{FixInertTags}.
Does anyone have a working sample of CoolMenu with Etomite? What version are you using?
Thanks,
Rodrigo
#16
Posted 15 October 2009 - 05:11 PM
#17
Posted 15 October 2009 - 08:47 PM
#18
Posted 15 October 2009 - 10:38 PM
#19
Posted 15 October 2009 - 11:25 PM
#20
Posted 16 October 2009 - 01:24 PM
Here is what I did...
Uploaded the cool_menu subdirectory to asstes/site/cool_menu...
Saved snippet.txt as a snippet named CoolMenu...
Saved chunk.txt as a chunk named CoolMenu...
Added the {{CoolMenu}} chunk call into the head of my site template...
Added the [!CoolMenu!] snippet call into a document even though it would normally be placed in the site template...
Pointed my browser to the document containing the snippet call and the menu displayed...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











