103 Posts
Osep45
4 years ago
2
Topic

Hello,

I have in my site a content type with fields : image and one multiple list who attributes a tag to the image.

I created a slicked list for displaying images on my articles.

I would like in my article 1, images from content type with tag1 selected are displaying, in my article 2, images from content type with tag2 selected are displaying etc...

I put the multiple list in my search type and I created a module to display the slicked list in my articles. But I would like to create a module different for each article : how can I specify to the module for my article 1 displaying only images with tag 1, to the module for my article 2 displaying only images with tag 2, etc...?

 Thanks for your answer !

Get a VIP membership
1283 Posts
Bucklash
4 years ago
0
Level 1

If i understand you correctly:

IF the search is the same,

but the output is different....

create search form

create new search with no form (i.e. mysearch) BUT 

- do create a view (item or list) with tag1i.e. tag1view’

- do create a view (item or list) with tag2 i.e. ‘tag2view’

... so far this now means 3 search and lists (1 x search, 2 x view)

In each module you can choose a different view to the search. 

3 years ago
0
Level 1

Hi Osep45,  

I would advice to user a SEBLOD Field List instead of a Module in the Content View of article, to display the Image list.

With that you can pass dynamicaly the tag to the search form:  

tag_filer=article_tag
  • tag_filter is the field in the Image Search Form
  • article_tag is the field in the content view of the article

Regards.

Get a VIP membership