Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
frontend:breadcrumb [2012/05/18 18:02]
giancarlo
frontend:breadcrumb [2012/05/25 10:20]
giancarlo
Line 53: Line 53:
 /*        $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); */ /*        $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); */
  
-        if (strlen($parent) >0) {+        if ((strlen($parent) >0) && ($level <10)) {
 /*        if (substr($matches[1],-11,6) == '- page') { */ /*        if (substr($matches[1],-11,6) == '- page') { */
           if (substr($matches[1],-11,6) != '- page') {           if (substr($matches[1],-11,6) != '- page') {
Line 59: Line 59:
 /*        } */ /*        } */
 /*        else if (strlen($matches[1]) > 20){ */ /*        else if (strlen($matches[1]) > 20){ */
-            if (strlen($matches[1]) > 20){ +            if (strlen($matches[1]) > 25){ 
-              $breadcrumbs[] = l(substr($matches[1],0,20) . '...', 'fedora/repository/' . $pid);+              $breadcrumbs[] = l(substr($matches[1],0,25) . '...', 'fedora/repository/' . $pid);
             }             }
             else {             else {
 
 
frontend/breadcrumb.txt · Last modified: 2013/05/23 11:45 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki