How to edit the Main Menu Navigation Adding New links?

How to edit the Main Menu Navigation Adding New links?

by AmmA Centre -
Number of replies: 13

I am new to moodle and I wasn't the one who set this up in my work. Although I have been left to deal with running it. I have added a new category to my moodle and need to edit the main navigation menu bar across the top of the page. I don't know where to start doing this!

 

Somone help? 

Average of ratings: -
In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by C D -

Hello

What version of Moodle are you running?

In reply to C D

Re: How to edit the Main Menu Navigation Adding New links?

by AmmA Centre -

I'm going to sound really stupid but I don't know how to check that..  lol... ii'm almost certain its 1.9 but as I said I don't know how to check that for definate.. 

 

In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by Philip Percival -

Assuming that you are in with fairly high privileges, you do not have to, in any version of moodle.

After creating a new category, you need to create a new course in the category, then assign students to the course.

The new course will automatically appear on their navigation.

If it is a case of a course in which people have to self enrol, then the course should appear on the list of available courses.  How it will apear does depend on some of the settings under administration.

In reply to Philip Percival

Re: How to edit the Main Menu Navigation Adding New links?

by C D -

Erm, Phillip...Going by the Op I am presuming they are talking about the physical header menu, ie the 'home' button etc etc.

If you are running moodle 1.9, you may have a seperate menu.php in your moodle install...

If it is moodle 2, you will need to log in to the site, goto 'Site Administration/Appearance/Themes/Theme Settings' - On that page there is a section called 'Custom menu items'. That is where you do the menu.

Average of ratings: Useful (1)
In reply to C D

Re: How to edit the Main Menu Navigation Adding New links?

by AmmA Centre -

Thanks, em yeah thats what I mean, the home button etc.. I will try it now and let you know how it goes, and yes I have all access to the moodle site too..

I have the version 1.9 of moodle because when I went to change it on the moodle site through admin.. bla bla it didnt give me the option of customised menu.. 

 

I'm guessing its 1.9 and I really am not sure where to start with editing the site or where it even lies within my computer, would it be the best to do a total upgrade to 2.0 or start again? Or sould I just keep looking through these menu files in hope to find the right one to change? any advice would help..

 

Thank you so much btw.. smile

In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by C D -

If using 1.9, look in your THEME folder, see if there is a menu.php in there like ours used to have.

In reply to C D

Re: How to edit the Main Menu Navigation Adding New links?

by AmmA Centre -

no, the only php files i have are index.php and  preview.php along with a bunch of theme folders. I changed a document called topmenu.php and added in a line of html code for the new button i had to add and nothing changed.. So i am guessing there is a backend php file i need to change too. I just don't know where it is.. the guy before me has so many different installers installed in the comp that its so confusing to even find! mixed 

 

In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by C D -

Well, whwats within the topmenu.php file?

We had a seperate menu.php file where we put in the links for the menu.

In reply to C D

Re: How to edit the Main Menu Navigation Adding New links?

by AmmA Centre -

here is the topmenu.php file..  and as u can see i have added in the ICT line, but it doesnt show up on the site..?

 

<link href="menubar.css" rel="stylesheet" type="text/css" />
<div id="top_menu_date">
<a href="<?php echo $CFG->wwwroot.'/calendar/view.php' ?>"><script language="Javascript" type="text/javascript">
//<![CDATA[
<!--

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;
}

// Join it all together
today = days[now.getDay()] + " " +
date + " " +
months[now.getMonth()] + " " +
(fourdigits(now.getYear())) ;

// Print out the data.
document.write("" +today+ " ");

//-->
//]]>
</script></a>

</div>

<ul>

<li class="home"><div><a href="<?php echo $CFG->wwwroot.'/' ?>"><img width="18" height="17" src="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/home_icon.png" alt=""/></a></div>

<li><div><a href="http://www.ammacentre.org/vle/course/category.php?id=4">Image</a>
</div>

<li><div><a href="http://www.ammacentre.org/vle/course/category.php?id=10">ICT</a>
</div>

<li><div><a href="http://www.ammacentre.org/vle/course/category.php?id=5">Video</a>

</div>


<li><div><a href="http://www.ammacentre.org/vle/course/category.php?id=6">Sound / Audio</a>
</div>

<li><div><a href="http://www.ammacentre.org/vle/course/category.php?id=7">Animation</a>
</div>


<li><div><a href="http://www.ammacentre.org/vle/course/category.php?id=3">General</a>
</div>

 

Any Ideas?

In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by C D -

Look for the menubar.css, see whats in there

In reply to C D

Re: How to edit the Main Menu Navigation Adding New links?

by AmmA Centre -

I don't have one lol, or am i going about this all the wrong way? is there some simple way to do it or is my install all wrong? I'm making myself really confused and sounding really stupid lol... Would it be best if I re downloaded it and started it again? lol

In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by C D -

Which theme are you using? Or which theme is your current theme based off?

The reason I asked about the menubar.css is because it was mentioned in your topmenu.php

Let me know what theme your using and we may be able to help further.

In reply to AmmA Centre

Re: How to edit the Main Menu Navigation Adding New links?

by Rocky S -

If you need to add some links to the top horizontal bar, (i suppose this is what you want) then use the following steps.

Login > Settings > Site Administration > Appearence > Themes > Theme Settings

 

On this page

You can configure a custom menu here to be shown by themes. Each line consists of some menu text, a link URL (optional) and a tooltip title (optional), separated by pipe characters. You can specify a structure using hyphens. For example:

Moodle community|http://moodle.org -Moodle free support|http://moodle.org/support -Moodle development|http://moodle.org/development

 

Hope this solves.