Adding Javascript and DHTML Menu

Permalink
I am new to CMS and woudl like to know implement my current menuing system into Concrete5. the menu requires me to enter information just after the <body> tag within the html files I cutrrently use as well as placing some javascript files in specific areas. Below is the code:

<!-- DO NOT MOVE! The following AllWebMenus code must always be placed right AFTER the BODY tag-->
<!-- ******** BEGIN ALLWEBMENUS CODE FOR mainmenu ******** -->
<span id='xawmMenuPathImg-mainmenu' style='position:absolute;top:-50px'><img name='awmMenuPathImg-mainmenu' id='awmMenuPathImg-mainmenu' src='./awmmenupath.gif' alt=''></span><script type='text/javascript'>var MenuLinkedBy='AllWebMenus [4]', awmBN='624'; awmAltUrl='';</script><script charset='UTF-8' src='./mainmenu.js' language='JavaScript1.2' type='text/javascript'></script><script type='text/javascript'>awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR mainmenu ******** -->

I know Concrete5 is a CMS and not a collection of stativ html pages, and I am not a programmer, but can edit files if I know what to edit and where the file is located.

lab3
 
Remo replied on at Permalink Reply
Remo
you should probably read the part about "building themes".

there's a file called "header.php" in most of the themes, check it out.
lab3 replied on at Permalink Reply
lab3
That was the place I needed to insert the code. Although I'm not too crazy about having to modify all the themes just to add this menu system, this did work. :-)

Thanks
Remo replied on at Permalink Reply
Remo
You just have to modify one file! That's not a lot of effort, is it?

And besides, 99% of all users create their own layout and therefore have their own copy of header.php..
ScottC replied on at Permalink Reply
ScottC
that my full.php page-type looks like this:
<? $this->inc('elements/head.php'); ?>
<body>
   <div id="container">
       <? $this->inc('elements/header.php'); ?>     
        <div class="content">
               <?
         $ac = new Area('contentFull');
         $ac->display($c);
         ?>   
        </div><!-- End content -->
      <? $this->inc('elements/footer.php'); ?>
    </div><!-- End container -->
</body>
</html>


All the stuff that I use repeatedly is used in such a way where i can edit it once no matter how many pagetypes I have.
lab3 replied on at Permalink Reply
lab3
It's just that if I decide to change to a new theme that is in the Concrete5 Marketplace, I have to remember to make the changes to any themes I may have installed.

Not a big deal, I just didn;t know if there was a method that was easier.

Thanks!
synlag replied on at Permalink Reply
synlag
I think the best way to handle this, is to create a template for auto-nav, and the js files located in /js, where it should be, to use it globally in all themes. This could all be done via packages, what'd be very user friendly.
Perhaps we'll soon see a solution of a template package at the marketplace ;)

Greetz
frz replied on at Permalink Reply
frz
i agree completely.

we could use a lot of custom templates distributed as packages.