changing the cornflower breadcrumbs

changing the cornflower breadcrumbs

per Sam Rudd -
Nombre de respostes: 10

Hi,

   Does anybody have any ideas on how to change the breadcrumbs in cornflower from a vertical list to the normal horizontal standard? Any help is most welcome x

Mitjana de qualificacions: -
En resposta a Sam Rudd

Re: changing the cornflower breadcrumbs

per Timothy Takemoto -
Breadcrumb lists go verticle when the theme is failing to "inherit" css instructions from the standard theme, usually because someone has deleted it.

If you upload the standard theme again to the themes folder then the breadcrumbs should return to the horizontal.

Timothy
En resposta a Timothy Takemoto

Re: changing the cornflower breadcrumbs

per Sam Rudd -

Sorry if I appear dense.. I'm not quite sure what you mean.. do you mean that I need to change the theme to the standard theme..? I think the standard theme is in the theme folder allready, I haven't removed any.

Thanx

Sam x

En resposta a Sam Rudd

Re: changing the cornflower breadcrumbs

per Joseph Rézeau -
Imatge Core developers Imatge Particularly helpful Moodlers Imatge Plugin developers Imatge Testers Imatge Translators
Sam,
Have you read this thread?
Joseph
En resposta a Joseph Rézeau

Re: changing the cornflower breadcrumbs

per Sam Rudd -

Hi I have but I'm not sure how this applies to changing the breadcrumbs from being presented in a vertical layout as opposed to the standard horizontal layout? Thanx

Sam x

En resposta a Sam Rudd

Re: changing the cornflower breadcrumbs

per Joseph Rézeau -
Imatge Core developers Imatge Particularly helpful Moodlers Imatge Plugin developers Imatge Testers Imatge Translators

Hi Sam,

Sorry I sent you on a wrong track.blush

I suppose you are using Moodle 1.6+. Starting with 1.6 a number of changes have been made to the Moodle interface, to support better accessibility. You can see some of these changes e.g. in moodle\theme\standard\header.html


<?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
if ($home) { // This is what gets printed on the home page only
?>
<div id="header-home" class="clearfix">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?>
<div id="header" class="clearfix">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } ?>
<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
if ($navigation) { // This is the navigation bar with breadcrumbs ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div>
</div>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line
?>
<hr size="1" noshade="noshade" />
<?php } ?>

Unfortunately, the necessary changes have not been made to the cornflower theme which, however, continues to be distributed with 1.6 and 1.7 Moodle packages. I have reported this as bug MDL-7335.

In the meantime, if you insist on using the cornflower theme, you could carefully compare the header.html files in both the standard and the cornflower folders, and try to work out the necessary "accessibility" changes which will restore the horizontal breadcrumb (see attached, not perfect however, for lack of time).

All the best,

Joseph

Fitxer adjunt image-0000.jpg
En resposta a Sam Rudd

Re: changing the cornflower breadcrumbs

per Jeffery Watkins -
The Cornflower theme is from 1.5. I need to update and get into CVS. I can e-mail you a zipped copy to make it easier for you.


Edit: Joseph: I maintain the Cornflower theme and will have changes committed to CVS soon.

Is anyone maintaining the other "standard" themes?

Jeff
En resposta a Jeffery Watkins

Re: changing the cornflower breadcrumbs

per Jeffery Watkins -
Here is an updated Cornflower theme for 1.6

Will also commit changes to CVS.

Jeff
En resposta a Jeffery Watkins

Re: changing the cornflower breadcrumbs

per Sam Rudd -
Thank you thats fantastic! Only one small thing the login status in the top right is on the top border of the header ... any ideas where I can go to move it... I will investigate but anything you know is a great help! thanx again x
Fitxer adjunt status.gif
En resposta a Sam Rudd

Re: changing the cornflower breadcrumbs

per Jeffery Watkins -
Here is the updated styles_layout.css file. Replace your old one in the Cornflower theme folder with this one and it will fix the problem.

Jeff