fixed thematiques display

This commit is contained in:
2021-03-03 17:55:32 +01:00
parent 72ea56e313
commit 6485e3e27b
8 changed files with 611 additions and 134 deletions

View File

@@ -1,28 +1,32 @@
fragment SearchResultFields on SearchResult {
fragment SearchResultFields on SearchResultInterface {
id
uuid
bundle
path
title
short_description
reference
path
images{
url
alt
style_cardmedium_url
style_hd_url
}
visuels{
url
alt
style_cardmedium_url
style_hd_url
}
samples{
showroom{
name
id
... on Materiau{
images{
url
alt
style_cardmedium_url
style_hd_url
}
reference
samples{
showroom{
name
id
}
location
}
}
... on Thematique {
images{
url
alt
style_cardmedium_url
style_hd_url
}
location
}
}

View File

@@ -11,7 +11,7 @@
</header>
<section class="images" v-switcher>
<figure
v-for="(img, index) in item.visuels"
v-for="(img, index) in item.images"
:key="img.url"
>
<img
@@ -28,7 +28,7 @@
</figure>
</section>
<CoolLightBox
:items="item.visuels"
:items="item.images"
:index="lightbox_index"
srcName="style_hd_url"
:loop="true"
@@ -54,7 +54,7 @@ export default {
blanksrc:`${drupalSettings.path.themePath}/assets/img/blank.gif`,
// loadingFlag: false,
lightbox_index: null,
alias: this.item.path.replace(/^.?\/thematique\//g, '')
alias: this.item.path.replace(/^.*\/thematique\//g, '')
}
},
// computed: {
@@ -98,7 +98,7 @@ export default {
// }
// },
openThematique (e) {
console.log('openThematique', e);
console.log('openThematique', e, this.alias);
this.$router.push({
name:`thematique`,
params: { alias:this.alias }