Commit e3236976 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch '217-category-selector-does-not-work' into 'develop'

Resolve "Category selector does not work"

Closes #217

See merge request t3o/typo3.org!230
parents a2fd7f7b 4f016d6d
Pipeline #5520 passed with stages
in 3 minutes and 47 seconds
......@@ -60,30 +60,15 @@
<f:section name="Filter">
<f:if condition="{settings.templateLayout} == '2'">
<f:else>
<f:form class="event-filter">
<f:form.select
class="custom-select"
name="event_filter"
additionalAttributes="{onchange:'this.form.submit()'}">
<f:form class="event-filter">
<f:form.select class="custom-select" name="event-filter-neu" additionalAttributes="{onchange: 'location = this.value;'}">
<f:for each="{categories}" as="category">
<option value="{category.uid}">
<f:if condition="{overwriteDemand.category} == {category.uid}">
<f:then>
<f:link.action action="list" controller="Event" arguments="{overwriteDemand:{category: category}}" class="active">
{category.title}
</f:link.action>
</f:then>
<f:else>
<f:link.action action="list" controller="Event" arguments="{overwriteDemand:{category: category}}">
{category.title}
</f:link.action>
</f:else>
</f:if>
<option value="{f:uri.action(action: 'List', controller: 'Event', arguments: '{overwriteDemand:{category: category}}')}" {f:if(condition: '{overwriteDemand.category} == {category.uid}', then: 'class="active" selected="selected"')}>
{category.title}
</option>
</f:for>
</f:form.select>
</f:form>
</f:form>
</f:else>
</f:if>
</f:section>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment