adding vertical slide menu to concrete 5

Permalink
Good day
Need some help adding vertical slide menu to concrete 5 ;
I have done the following –
Created the following folder \blocks\autonav\templates\vertical_menu in where I have added the .css file.
Added the .js file in \js folder

I have updated the header_required.php (I copied the file from the concrete elements folder in to the /elements folder and update the file in root)
I added the following code:
$this->addHeaderItem($html->javascript('cssverticalmenu.js'));
$this->addHeaderItem($html->css('..\blocks\autonav\templates\vertical_menucssverticalmenu.css'));

But not working?

Now my question is where and what must be update so that the .js menu will work.

Thanks
Newbie

 
ScottC replied on at Permalink Reply
ScottC
by giving a full path to the css and the js in the theme itself (under header required since you are probably dependent on jquery) then if all is good there I would then either omit html helper and provide paths built off of an instance of the view and getBlockTypePath().'js/jsfile.js and applicable css in the directory structure you have.

You don't necessarily need to use the html helpers, but they do help you omit some typing :) and do a bunch of file exists depending on how the block is added, either through a block install or a package(seems like everything is moving to packages anyways).
vincent replied on at Permalink Reply
Must I update the hearder_requered pages with the following?
$this->addHeaderItem($html->javascript('cssverticalmenu.js'));
How would I chages above code?
and how would I point to the .css file?
I am not goimhg right - all I need is a vertical menu with submenus?
Thanks