Schema Breadcrumb
Categories
Component ID
2590225
Component name
Schema Breadcrumb
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
About
This is a simple module that adds schema attributes to breadcrumbs in Drupal 7.
I made this module for use on my Drupal 7 sites and decided to release it to bring this functionality to Drupal 7. I am aware that Drupal 8 uses Schema in core therefore i wont be releasing this module for Drupal 8.
Installation
To install this module you install it as you would any other module then you must edit your template.php file.
Clone the module from git using:git clone --branch 7.x-1.x http://git.drupal.org/sandbox/CameronLamb/2590225.git
In the theme you are using edit the template.php file and edit or add the theme_breadcrumb function as so:
function theme_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
return theme('schema_breadcrumb', array(
'attributes' => array(
'class' => array('breadcrumb'),
),
'items' => $breadcrumb,
'type' => 'ol',
)
);
}
