[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

raeburn raeburn at source.lon-capa.org
Wed Sep 27 10:07:47 EDT 2023


raeburn		Wed Sep 27 14:07:47 2023 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Breadcrumbs trail for Syllabus in Supplemental Content set to use Minimal
    template.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.536 loncom/interface/lonmenu.pm:1.537
--- loncom/interface/lonmenu.pm:1.536	Fri Sep  8 18:02:23 2023
+++ loncom/interface/lonmenu.pm	Wed Sep 27 14:07:47 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.536 2023/09/08 18:02:23 raeburn Exp $
+# $Id: lonmenu.pm,v 1.537 2023/09/27 14:07:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -968,6 +968,18 @@
                     $$showncrumbsref = 1;
                 }
                 return $trail;
+            } elsif (($resurl eq '/public'.$courseurl.'/syllabus') &&
+                     ($env{'form.folderpath'})) {
+                if ($env{'form.title'}) {
+                    $title = $env{'form.title'};
+                } else {
+                    $title = 'Syllabus';
+                }
+                &prepare_functions($resurl,$forcereg,$group,undef,undef,1,$hostname);
+                $title = &HTML::Entities::encode($title,'\'"<>&');
+                my ($trail) =
+                    &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1,1);
+                return $trail;
             }
             unless ($env{'request.state'} eq 'construct') {
                 &Apache::lonhtmlcommon::clear_breadcrumbs();




More information about the LON-CAPA-cvs mailing list