added file field to home showrooms

This commit is contained in:
2021-08-24 23:23:08 +02:00
parent 12f7bacc26
commit 94fe587324
6 changed files with 42 additions and 3 deletions

View File

@@ -403,3 +403,11 @@ function materiotheme_preprocess_field__node__field_showrooms__frontpage(array &
"href" => '/' . $variables['element']['#language'] . '/showrooms'
);
}
function materiotheme_preprocess_file_link(array &$variables) {
$url = $variables['link']['#url'];
$attributes = $url->getOption('attributes');
$attributes['target'] = '_blank';
$url->setOption('attributes', $attributes);
$t="t";
}