Skip to content
Snippets Groups Projects
Commit 91e55b4c authored by Lily Yan's avatar Lily Yan
Browse files

Merge branch 'feature/ISTWCMS-6273-ebremner-catalog-listing-blocks' into '1.1.x'

ISTWCMS-6273: adding layout builder browser catalog list

See merge request !324
parents 62228b20 fae1c0d1
No related branches found
No related tags found
1 merge request!324ISTWCMS-6273: adding layout builder browser catalog list
langcode: en
status: true
dependencies: { }
id: uw_lbb_catalog_item_list
block_id: uw_cbl_catalog_item_listing
category: uw_bc_listings
label: 'Catalog item list'
image_path: images/layout_builder_browser/catalogitemlist.svg
image_path_base: 'theme:uw_fdsu_theme_resp'
image_alt: 'Catalog item list'
weight: 0
langcode: en
status: true
dependencies: { }
id: uw_lbb_catalog_list
block_id: uw_cbl_catalog_listing
category: uw_bc_listings
label: 'Catalog list'
image_path: images/layout_builder_browser/cataloglist.svg
image_path_base: 'theme:uw_fdsu_theme_resp'
image_alt: 'Catalog list'
weight: 0
......@@ -502,17 +502,21 @@ class UwNodeFieldValue {
break;
}
// Step through all the catalog category tags and
// fix to the correct UW URL.
foreach ($tags[$key] as $index => $value) {
// Since the drupal views uses the full title in the
// url (including all little keywords (the, is, all, of)
// we need to ensure that we include those in the url
// for the node.
$value['url'] = strtolower($value['title']);
$value['url'] = str_replace(' ', '-', $value['url']);
$tags[$key][$index]['url'] = $url . '/' . $value['url'];
// Enusre that there is a tag.
if (isset($tags[$key])) {
// Step through all the catalog category tags and
// fix to the correct UW URL.
foreach ($tags[$key] as $index => $value) {
// Since the drupal views uses the full title in the
// url (including all little keywords (the, is, all, of)
// we need to ensure that we include those in the url
// for the node.
$value['url'] = strtolower($value['title']);
$value['url'] = str_replace(' ', '-', $value['url']);
$tags[$key][$index]['url'] = $url . '/' . $value['url'];
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment