Skip to content

how to use filter option ? #98

@henry63

Description

@henry63

(modifies, i solved the problem - mostly).

First, thank you for this fantastic theme.

Then, I have troubles with filterOptions. However, it might be more a feature request.

I try to have a list of tags in one filter (here : red) : {label: 'red',tags: ['red', 'orange', 'raspberry']}

Is there a way to achieve this ?

Here is my gallery code

{< 
gallery match="images/*" 
sortOrder="asc" 
rowHeight="80" 
margins="0" 
filterOptions="[{label: 'All'}, {label: 'red',tags: ['red', 'orange', 'raspberry']} ,{label: 'green', tags: 'green'} ]"
thumbnailResizeOptions="100x100 q90 Lanczos" 
showExif=true  
previewType="blur" 
embedPreview=true 
loadJQuery=true 
>}}

and a metadata file

{
    "Name": "IMG_6772.jpeg",
    "Title": "",
    "tags": [
        "red"
     ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions