Navigation: How to insert a .js menu?

Permalink
Hello,
I am new to C5, and currently running 5.3.1
I have created a theme, and seem to have all the parts working as i want, except the navigation.

I want to use a .js for navigation, like i have designed in the css html layout.
But i can't seem to make it work in C5

I have tried to use:
A direct http path to the .js
I have tried to use
<?=$this->getThemePath()?>

and a physical path of the server
Nothing seems to work to display what i want to see

I have enclosed the C5 theme and the CSS site as i mean it to look for comparison.

2 Attachments

mickie
 
mickie replied on at Permalink Reply
mickie
I have tried all kinds of things.
Googled all over about inserting js into php, and nothing i have tried works.

I am really at my wits end here.
I only know enough php to cut and paste
and make small edits.
If anyone can help me out?

I would really appreciate it.
I know i could replace the nav with code from another template. But i really wanted it to look like i have it in the css version if possible.

Thanks in advance
synlag replied on at Permalink Reply
synlag
hi,

sth like
<script type="text/javascript" src="<?=$this->getThemePath()?>/javascript/jquery.corner.js"></script>

should work, if you have a directory javasript in your theme folder.
You could also try
<?php
$html = Loader::helper('html');
$this->addHeaderItem($html->javascript('jquery.corner.js'));
?>
mickie replied on at Permalink Reply
mickie
First, thank You very much for trying.
I tried the first method before posting, and then i tried the second method. Neither of them work.

With each method, when i try to add the auto nav block, nothing shows up on the page, or even in edit mode. All i get is a thin outlined space that is gray, but no buttons, or text for the pages.

I guess i am just going to have to use a more basic menu so that it works.

Thank You so very much for your assistance.