Displaying Topic 0 only

Displaying Topic 0 only

by Huw Smith -
Number of replies: 1

Im trying to edit my theme so that it only displays topic 0.

Also, I'd like to be able to remove the "Jump To" button as well.

I'm struggling to do this, can anyone help me out?

Average of ratings: -
In reply to Huw Smith

Re: Displaying Topic 0 only

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
#1 >Im trying to edit my theme so that it only displays topic 0.

No need to edit your theme for that. In TEacher edit mode, click on the little eye in the right column next to hide each unwanted topic.

#2 >I'd like to be able to remove the "Jump To" button

In your theme's header.html file:

<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?>
<div id="header">
<div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div>

replace above line with

<div class="headermenu"><?php echo user_login_string($usercourse, $USER) ?></div>

In your theme's footer.html file:

you can remove:

    <div class="navbar">
        <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
        <div class="menu"><?php echo $menu; ?></div>
    </div>

Joseph

PS I did just that (#2) in my orangechoc theme.