Category in breadcrumb moodle 1.9 - we still get 'array'

Category in breadcrumb moodle 1.9 - we still get 'array'

Peter Birdsall發表於
Number of replies: 40

We use the code pasted below in the header.html file of our custom theme to show the categories in the breadcrumb (navigation). We have removed the " 's around $navigation as is required in 1.9, however when we leave the code for the category, the course still appears as 'array' in the breadcrumb. Can someone please point out what we need to change in the category bit...? Thanks

Here is the code:

<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.

if ($navigation) { // This is the navigation bar with breadcrumbs

/////////////////////////////////////////////////////////////////////

// to add the category name in the breadcrumb //

/////////////////////////////////////////////////////////////////////

global $course, $category;

if (is_object($course)) {

$nav = $navigation;

if ($cattree = get_record("course_categories", "id", $course->category)) {

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

if (isset($cattree->name)) {

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

while ($cattree->parent) {

$cattree = get_record("course_categories", "id", $cattree->parent);

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

}

} else if (is_object($category)) {

//$nav = $navigation; // If you want the string 'course categories' in the breadcrumb, use this.

$nav = $category->name; // If you don't want the string 'course categories' in the breadcrumb, use this.

if ($cattree = $category) {

while ($cattree->parent) {

$cattree = get_record("course_categories", "id", $cattree->parent);

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

}

} else {

$nav = $navigation;

}

$navigation = $nav;

/////////////////////////////////////////////////////////////////////

// end of: to add the category name in the breadcrumb //

/////////////////////////////////////////////////////////////////////

?>

<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

?><?php } ?>

<!-- END OF HEADER -->

<div id="content" style="padding : 10px">

評比平均分數: -
In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Steve Power發表於

Peter

Did you resolve this? I am just moving to 1.9 and I have the same problem with the same added breadcrumb code (no surprises then).

Regards
Steve

In reply to Steve Power

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Steve Power發表於

Well to answer myself in case it helps Peter or anyone else.

In 1.9 the themes have changed and this appears to include the navigation. $navigation is now an array and it is properly dealt with in a fumction in weblib called print_navigation.

My quick hack is to set $nav to the value of the course shortname instead of setting it to $navigation which of course fails with the ARRAY warning. This is in the third line after Peter's comment block so

$nav = navigation;

becomes:

$nav = $course->shortname;

Of course the proper thing to do would be to use the print_navigation function but that is a bigger hack in that it means changing weblib.

HTH
Steve

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Andy Tagliani發表於
See your line (thats right)
<div class="breadcrumb"><?php print_navigation($navigation); ?></div>
so i did not understand if it not works on your moodle?

Now see my line (see the red colored signs i delete them and that solve my problems)
<div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>

I must change this line in the header.html of my theme. In the most cases in the 3rd party themes.

Andy
評比平均分數:Useful (2)
In reply to Andy Tagliani

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Jeff Wood發表於
Thanks Andy - worked for me big grin

Jeff
In reply to Jeff Wood

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Andy Tagliani發表於
You welcome Jeff, we must thank the WinMerge Software, here i see the differences 眨眼

Andy
In reply to Andy Tagliani

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Pablo José Acuña發表於
I've upgrade from 1.8.3 to 1.9.3+ and this little change in header.html worked for me to.

Thank you Andy!!!
In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Peter Birdsall發表於

Hello all

Thanks for all this input. I've been so busy recently that I missed your input.

Fixing this had been on our list for a while, but we had lots on, so left it, but it seems so simple! 微笑

This is a great solution for the "header" version of this usage, and I think more people will be pleased with it.

Thanks again,

Peter

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Osvaldo Pinco發表於
Hello. Maybe I'm missing some information here but can't solve this problem.

I'm using Imagine2 theme, no "s around $navigation as advised, but still getting "array" in breadcrumb. Please help.
In reply to Osvaldo Pinco

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Ralf Martins發表於
Same here using Imagine2. Tried to solve the problem using the described fix (quotes) but still get the "array".
Steve's solution is okay for a while but disables the breadcrumb for easy navigation (breadcrumb only with text instead of links).

Probably Julian as the creator of this theme has an idea to solve this?

Best regards.


In reply to Ralf Martins

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Skip Marshall發表於

We're using a version of Imagine2.  We used the code below to fix the breadcrumb issue.  This was borrowed from the standard header.html file.

Replace lines 131-165 in header.html (in the Imagine folder) with the following:

<?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 align="right" style="margin-right: 65px; margin-top: 4px;"><?php echo $menu ?></div>
    </div>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line
?>
        <hr />
<?php } ?></div></div>

This should remove the 'array' issue.  Hope this helps.

Skip

In reply to Ralf Martins

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Alex Kurucz發表於
Hello!

The solution is very simple. Just change the line:
$nav = $navigation; (third line after Peter's comment block)

of Peter's solution to:

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "
."href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";


Then you get the Breadcrubs with coursecategories and link!

Here is Peter's hack with my additions - it works on http://kurse.roteskreuz.at :

<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.

if ($navigation) { // This is the navigation bar with breadcrumbs

/////////////////////////////////////////////////////////////////////

// to add the category name in the breadcrumb //

/////////////////////////////////////////////////////////////////////

global $course, $category;

if (is_object($course)) {

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "
."href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";


if ($cattree = get_record("course_categories", "id", $course->category)) {

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

if (isset($cattree->name)) {

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

while ($cattree->parent) {

$cattree = get_record("course_categories", "id", $cattree->parent);

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

}

} else if (is_object($category)) {

//$nav = $navigation; // If you want the string 'course categories' in the breadcrumb, use this.

$nav = $category->name; // If you don't want the string 'course categories' in the breadcrumb, use this.

if ($cattree = $category) {

while ($cattree->parent) {

$cattree = get_record("course_categories", "id", $cattree->parent);

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

}

} else {

$nav = $navigation;

}

$navigation = $nav;

/////////////////////////////////////////////////////////////////////

// end of: to add the category name in the breadcrumb //

/////////////////////////////////////////////////////////////////////

?>

<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

?><?php } ?>

<!-- END OF HEADER -->



Alex




In reply to Alex Kurucz

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Peter Birdsall發表於

Thanks Alex

This is the fix.

Now one can easily back-navigate to the course area from a forum, or activity. With the previous fixes, the course link in the breadcrumb wasn't working, only the category.

Breadcrumb shows categories, and links current course as usual. (Theme Header in Moodle 1.9)

Peter

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Lori Bakken發表於
Ok,

That kind of works. It shows the course as a link with categories, but it doesn't show anything after that. So for example

Home -> Category 1 -> Category 1.1 -> My Course (linked)

but if you click into a forum or activity it should show
Home -> Category 1 -> Category 1.1 -> My Course (linked) -> Forum -> My Discussion

but it only shows
Home -> Category 1 -> Category 1.1 -> My Course (linked)

How do we get it to show the activity as well or the current page that we are on.

TIA
In reply to Lori Bakken

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Eduardo Aspe發表於
Same Question here.

Im still missing the activity and name
any way to fix it?
In reply to Alex Kurucz

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Frank Dixon發表於
Put this in the Aardvark 1.4 theme. Works mostly. It removed the breadcrumbs from the site home page (argh).

Also removes the activity info as others described.
In reply to Frank Dixon

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Frank Dixon發表於
Ok, so apparently the home page has never had nor intended to have the site name in the aardvark theme.
Anyhoo, will keep plugging away.
In reply to Osvaldo Pinco

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Dean Dal Broi發表於

Hi Osvaldo,

I managed to fix the Imagine2 theme using alex's code. Replace lines 129-164 of the header.html file with the following code:

                    <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
                   
                    if ($navigation) { // This is the navigation bar with breadcrumbs
                   
                    /////////////////////////////////////////////////////////////////////
                   
                    // to add the category name in the breadcrumb //
                   
                    /////////////////////////////////////////////////////////////////////
                   
                    global $course, $category;
                   
                    if (is_object($course)) {
                   
                    $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "
                    ."href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
                   
                    if ($cattree = get_record("course_categories", "id", $course->category)) {
                   
                    $linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";
                   
                    if (isset($cattree->name)) {
                   
                    $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "
                   
                    ."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "
                   
                    .$nav;
                   
                    }
                   
                    while ($cattree->parent) {
                   
                    $cattree = get_record("course_categories", "id", $cattree->parent);
                   
                    $linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";
                   
                    $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "
                   
                    ."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "
                   
                    .$nav;
                   
                    }
                   
                    }
                   
                    } else if (is_object($category)) {
                   
                    //$nav = $navigation; // If you want the string 'course categories' in the breadcrumb, use this.
                   
                    $nav = $category->name; // If you don't want the string 'course categories' in the breadcrumb, use this.
                   
                    if ($cattree = $category) {
                   
                    while ($cattree->parent) {
                   
                    $cattree = get_record("course_categories", "id", $cattree->parent);
                   
                    $linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";
                   
                    $nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "
                   
                    ."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "
                   
                    .$nav;
                   
                    }
                   
                    }
                   
                    } else {
                   
                    $nav = $navigation;
                   
                    }
                   
                    $navigation = $nav;
                   
                    /////////////////////////////////////////////////////////////////////
                   
                    // end of: to add the category name in the breadcrumb //
                   
                    /////////////////////////////////////////////////////////////////////
                   
                    ?>
                   
                    <div class="navbar clearfix">
                   
                    <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
                   
                    </div>
                   
                    <?php } else if ($heading) { // If no navigation, but a heading, then print a line
                   
                    ?><?php } ?>

It should work a treat! maintaining the course categorys in the breadcrum as with moodle 1.8

In reply to Dean Dal Broi

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Michael Tudor發表於
I just downloaded the latest version of the imagine2 theme and tried your fix but I cant seem to get it to work. It completely breaks the page so that it wont even load up until I restore the original file.

Is there any chance that you could upload your header.hmtl file for me to take a look at?
In reply to Michael Tudor

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Hi,

I have just tried this with experiece247v41 and I can get it to work, but within a course the resources underneath the course name no longer appear in the breadcrumb trail and the course name is hyperlinked even when you are at the top level of the course.

Ideas?

Cheers,

Gareth

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Peter Birdsall發表於

It seems that there is still no solution to the breadcrumb showing the complete trail (i.e ...category, course, activity, etc..) A solution to this would be greatly appreciated as not being able to return to the forum from a post, via the breadcrumb, for instance, is irritating users. Any ideas?

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Steven A發表於
Me too, Peter. I've tried the hacks mentioned here and elsewhere to get the breadcrumbs working all the way down to the activity and forum level in Clouds V3, and still no dice. I would also appreciate a solution very much.

In reply to Steven A

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Steven A發表於
I've found a solution after a good few hours of trial and error. Please bear in mind that I have relatively no idea of what I'm doing. However, the solution did work for me.

Situation: Upgrading from 1.8 to 1.9 caused the loss of breadcrumbs in the Clouds V3 theme.

Fix: First, I copied the following code from the standard theme into the Clouds V3 header.html file just above the line <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>:

<?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
?>
<?php } ?>

This got the breadcrumbs back, but caused everything in the navbar to be doubled like this:

Site > Course > Forums > etc.
Site > Course > Forums > etc.

Obviously not an ideal situation.

I then dug into the header.html file and found the following php instances that were part of the original theme: $navigation, $button.

Obviously, we don't need two $navigation and $button instances, (one set from the original theme and one set from the added code from the standard theme).

Removing the <?php print_navigation($navigation); ?> and <?php echo $button; ?> that were part of the original theme solved the problem of doubling.

I understand that fiddling around like this inside the header.html file isn't the ideal situation, but I had to do something, and nothing's broken around the site as far as I can tell.
評比平均分數:Useful (2)
In reply to Steven A

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Peter Birdsall發表於

Hello Steven

This indeed solves the problem that you mention, however still does not help us gain the full breadcrumbs when adapted to show the *category*.

Somewhere there is something that is stopping the full category (forums, activities, etc) showing. In case anyone wants to take a look at it: here is the code again:

<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.

if ($navigation) { // This is the navigation bar with breadcrumbs

/////////////////////////////////////////////////////////////////////

// to add the category name in the breadcrumb //

/////////////////////////////////////////////////////////////////////

global $course, $category;

if (is_object($course)) {

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";

if ($cattree = get_record("course_categories", "id", $course->category)) {

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

if (isset($cattree->name)) {

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

while ($cattree->parent) {

$cattree = get_record("course_categories", "id", $cattree->parent);

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

}

} else if (is_object($category)) {

//$nav = $navigation; // If you want the string 'course categories' in the breadcrumb, use this.

$nav = $category->name; // If you don't want the string 'course categories' in the breadcrumb, use this.

if ($cattree = $category) {

while ($cattree->parent) {

$cattree = get_record("course_categories", "id", $cattree->parent);

$linkcss = $cattree->visible ? "" : " class=\"dimmed\" ";

$nav = "<a $linkcss title=\"".htmlspecialchars($cattree->name)."\" "

."href=\"$CFG->wwwroot/course/category.php?id=$cattree->id\">$cattree->name</a> -> "

.$nav;

}

}

} else {

$nav = $navigation;

}

$navigation = $nav;

/////////////////////////////////////////////////////////////////////

// end of: to add the category name in the breadcrumb //

/////////////////////////////////////////////////////////////////////

?>

<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

?><?php } ?>

<!-- END OF HEADER -->

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

chihuei lu發表於
Hi,
I input Peter's code into my header.html. Everything works fine on course pages. However, the database and book links are shown incorrectly in breadcrumb. Before I input the code to display categories in breadcrumb, it was like this,
Home-> Database-> MyData

after, it is like this now,

Home-> Home

What should I do?
In reply to Steven A

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Steven A

回應: Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Yang Joann發表於

Dear Steven:

Thank you for your sharing, I used the same theme of clods, and modify header as you suggestion. Thing works find but one thing as attachment! Will that be possible to modify to make it looks better instead of kind of mass...

Thank you for sharing

Joann

附件 2009-01-13_114511.jpg
In reply to Yang Joann

Re: 回應: Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Daniel Brittle發表於

Hi,

This has wiorked brilliantly for me, however i minor amend i would like to make would be instead of shownig the course shortname which in my case is a rather odd looking code, i would like to show the course name, does anyone know the syntax that i would need to use to make this work?

I presume i just need to alter:

    $nav = $course->shortname;

but i dont know what to change short name to, i know id throws up the id number but cannot get anything to show the course name.

Thanks in advance,

Daniel.

In reply to Daniel Brittle

Re: 回應: Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Daniel Brittle發表於

To answer my own stupid question if anyone else has this problem then simply change 'shortname' to 'fullname' and this should work fine!

Thanks,

Daniel

In reply to Peter Birdsall

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Frank Dixon發表於
Ok, figured out a much simpler (and imo better) way to do this. It involves adding the following code into the "build_navigation" function definition in the lib/weblib.php file.

I've highlighted the new code and shown it in context in the existing code.

function build_navigation($extranavlinks, $cm = null) {
global $CFG, $COURSE;

if (is_string($extranavlinks)) {
if ($extranavlinks == '') {
$extranavlinks = array();
} else {
$extranavlinks = array(array('name' => $extranavlinks, 'link' => '', 'type' => 'title'));
}
}

$navlinks = array();

//Site name
if ($site = get_site()) {
$navlinks[] = array(
'name' => format_string($site->shortname),
'link' => "$CFG->wwwroot/",
'type' => 'home');
}

// Categrory Name, if appropriate.
if (isset($COURSE->category) && $COURSE->id != SITEID) {
$categoryid = trim(get_string($COURSE->category),"[]");
$sql = "SELECT `name` FROM `mdl_course_categories` WHERE `id` = $categoryid";
$categoryname = get_record_sql($sql);
$navlinks[] = array(
'name' => format_string($categoryname->name),
'link' => "$CFG->wwwroot/course/category.php?id=$COURSE->category",
'type' => 'category');
}

// Course name, if appropriate.
if (isset($COURSE) && $COURSE->id != SITEID) {
$navlinks[] = array(
'name' => format_string($COURSE->shortname),
'link' => "$CFG->wwwroot/course/view.php?id=$COURSE->id",
'type' => 'course');
}

Doing this here preserves the full original functionality of the breadcrumbs header. I'm sure there is a smoother way of doing this as well if you want to define a $CATEGORY global variable and simply call it here.
In reply to Frank Dixon

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Mary Evans發表於
Hi Frank,

Changing any code in core files is a NO! NO! as these will be lost in upgrades.

If you want a particular setting adding to core files then why not bring this to the attention of the Moodle Developers in a Moodle Tracker issue as an improvement to navigation.

Mary

In reply to Mary Evans

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Frank Dixon發表於
yea, I know it will be lost. I was just trying to figure out the simplest way. I may just put it in the tracker once I get it sorted just the way I like it (I want to figure out how to make category shortnames, global category variable, etc)

In reply to Mary Evans

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Frank Dixon發表於
added it to the tracker.

http://tracker.moodle.org/browse/MDL-23731

Hopefully someone a bit more familiar with the moodle source can clean it up a bit. IF ya like it, vote for it :D
評比平均分數:Useful (1)
In reply to Frank Dixon

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Monica Franz發表於

By the way it seems to work with 1.9.8. as well!

I tried the header version but nothing showed up, your patch works well.

Now I'd have to figure out how to show all the categories "above/in front of" the one before the course.

Cheers,

Monica

In reply to Frank Dixon

Re: Category in breadcrumb moodle 1.9 - we still get 'array'

Sam Hemelryk發表於
Hi guys,

I've just closed MDL-21022, unfortunately this will not make it into the 1.9 branch, it was decided that the fix version for this is Moodle 2.0 and that it won't be included in earlier versions.
If you have a look at MDL-21022 you will see Martin's thoughts on this matter.

Thank you all very much for looking into it, and the code that would be required to add the immediate category, I've tested the code, cleaned it up a little and attached it as a patch on MDL-23731.

Cheers
Sam
評比平均分數:Useful (1)