【问题标题】:TYPO3 9.5 LTS route enhancer with f:selectTYPO3 9.5 LTS 路由增强器,带 f:select
【发布时间】:2018-11-27 07:32:20
【问题描述】:

我正在使用一个简单的扩展,它在 f:select 中显示域对象的属性列表。使用下拉菜单后,表单重定向到控制器操作,存储库根据参数选择的属性获取所有记录。

<f:form class="filter-select" name="filter-select" method="post" action="showByProperty" pageUid="{settings.detailShowByProperty}">
<f:form.select name="filter-form" options="{properties}" optionLabelField="title" optionValueField="uid" prependOptionLabel="Please choose..." prependOptionValue="0"  />
    <button>
        Show matching records
    </button>

如何使用带有选择字段的路由增强器来创建如下网址:

http:www.mysite.com/detailpage/property

尤其是我不知道如何附加属性/参数。

提前致谢!

【问题讨论】:

    标签: typo3-9.x


    【解决方案1】:

    这行不通。发送表单完全由客户端/浏览器处理。唯一的选择是将表单发送到另一个操作,该操作使用 uriBuilder 和表单数据作为参数创建重定向以获取说话的 url。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多