Skip to content

How to use the partial view feature in the liquid template #17707

@gaojianzhuang

Description

@gaojianzhuang

OrchardCore version: 2.1.6

Background:
We have many liquid template files and some of them has a similar logic. I hope I can define a partial view with a liquid template file and use them in other liquid templates files.

For example:
I have a filter box liquid template, I want to use it in other template. I can use it with the codes just like below:

{% render 'FilterBox' %}

Anyone can give some suggestions ? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions