October/Winter CMS超链接的处理

OctoberCMS的超链接处理

<a href="{{ ''| page }}">Current page with current filter slugs</a>
<a href="{{ ''| page(false) }}">Current page without any filter slugs (except default value)</a>
<a href="{{ ''| page({ filter_slug:slug_var, filter_id:id_var }) }}">Current page with needle filter slugs</a>
<a href="{{ detailsPage|page({ (detailsUrlParameter): attribute(record, detailsKeyColumn) }) }}">{{ record.title }}</a>

其中{{ detailsPage|page({ (detailsUrlParameter): attribute(record, detailsKeyColumn) }) }}适用于BuilderList组件,detailsPage等参数需要在component中正确配置。

Post Comment