ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


how to alter content side menu


  • 2006-09-28 08:25:42

    how to alter content side menu

    I wish to alter a small part of the side menu where the content structure is. what I wish to do is to add a class to the item you are currently viewing, to be able to style this better.

    now the current item is identified with the STRONG tag, so that could be styled. problem is if you're at a child item, as the parent item of that is also marked with the STRONG tag, and gets the same style.

    so what I wish to do is
    a) remove the STRONG tag from parent items, or rather
    b) add a class="current" to the STRONG tag on the current item.

    ...but where is the side menu code created? which file can I alter to do this? I can't seem to find it anywhere...

  • 2006-09-28 18:20:12

    Re: how to alter content side menu?

    I think its coming from:
    include/classes/ContentManager.class.php

    There's also the sidemenu HTML files you could look at:
    /include/html/dropdowns/

  • 2006-09-29 08:41:31

    Re: how to alter content side menu?

    thanks Greg, you are right:

    it's in include/classes/ContentManager.class.php

    you alter line 624 to do this. part of that line looks like this:

    [php]<strong title="'.$content['title'].'">';[/php]

    I altered that to:

    [php]<strong class="current" title="'.$content['title'].'">';[/php]

    and then the current position can be style by using the following CSS

    [php]#side-menu strong.current {

    style goes here

    }
    [/php]

  • 2006-09-29 08:42:44

    Re: how to alter content side menu?

    oh, ignore the php start and end tags in the examples above.