left-column

left-column

by Dali SALHI -
Number of replies: 7
Hello,
I'm new to moodle and i am having problems in dealing with left-column: in fact i want to change the initial content of left-column with a new content. To make things more clear, i have a menu that i want to insert in left-column. Although, i rename left column to the id of my menu in the styles-layout file but nothing heppened.

Can anyone help me please?

Average of ratings: -
In reply to Dali SALHI

Re: left-column

by Mary Evans -
More information is needed to answer your question. How have you created your menu? Have you added the menu as a new HTML side block in your left column? If you did this you need to find the 'inst' number of the side-block before you can style it. Using Firebug in FireFox is a useful Add-On to help you find this inst number.

Hope this answers your question?

Mary



In reply to Mary Evans

Re: left-column

by Dali SALHI -
Hi Mary,
Thank you for your response.
In fact I added my menu in a div tag in header.html .
The blocks of the menu represents cells of a general table that represents the menu. My problem is that i don't know how i can put the menu in the HTML tag that contains left-column. and what makes things more difficult is that i don't have access to tag of left-column(everything is done using php).
About Firebug, i am currently using it but i couldn't find the inst number .

Thank you Again

Dali
In reply to Dali SALHI

Re: left-column

by Mary Evans -
Hi Dali,

Below is an image of my Test Moodle on my home computer. It shows a small menu in the left column. I made this by adding an HTML block on my home page. Then configured it using the HTML Editor in that block and added my very simple menu HTML code... (The 'Add block' is usually found bottom right of your page.)

<div id="mymenu">
<ul>
<li><a href="#">menu item</a></li>
<li><a href="#">menu item</a></li>
<li><a href="#">menu item</a></li>
<li><a href="#">menu item</a></li>
</ul>
</div>

I then saved the changes. Then using the direction arrows on the block I moved it to the top left column position. I did all this in Home page with Editing ON.

To style this menu block I would have to add the necessary CSS to my theme's CSS file.



I hope this helps?

Mary
Attachment tote-bag-menu.jpg
In reply to Mary Evans

Re: left-column

by Dali SALHI -
Hi Mary,
Thanks again for your quick response.

I tried to follow the instructions that you gave me. I managed to create a block and i copied the menu into this block. The problem is that the menu doesn't show up in the page neither in the course page. Using Firebug, i noticed that in the administation the left-column tag contains the HTML of the menu but in the course page it is always empty.

Also, my menu uses javascript and a function that i defined in the header.html file, will it work in this case or not?

Dali.
In reply to Dali SALHI

Re: left-column

by Mary Evans -
Here are some Moodle Docs which may be helpful to you...

http://docs.moodle.org/en/Blocks_FAQ

http://docs.moodle.org/en/Sticky_blocks

Note with Sticky Blocks: When you create a Sticky Block you need to position it before you move off the page where you set it, as once it is fixed you can't move it unless you go back to the Sticky Block set up page!

Try setting up your own menu Block and then find it's INST number then style it in CSS from there.


Mary
In reply to Mary Evans

Re: left-column

by Dali SALHI -
Hi Mary,

Thank you so much. In fact i managed to solve the problem using , this time, sticky blocks.

Thanks again.

Dali