I want to add a new state to the article list filter on the search tool. The dropdown, has the states, Published, Unpublished, Archived, etc.
How do I add another state to the dropdown? Is there some file I have to change to achieve that?
I have found the file
filters.php in the path
But it only has an array with the filters, but where does theses values come from?
$data = $displayData; // Load the form filters $filters = $data['view']->filterForm->getGroup('filter'); ?> <?php if ($filters) : ?> <?php foreach ($filters as $fieldName => $field) : ?> <?php if ($fieldName != 'filter_search') : ?> <div class="js-stools-field-filter"> <?php echo $field->input; ?> </div> <?php endif; ?> <?php endforeach; ?> <?php endif; ?>