开发者

Detect last plugin in a placeholder

开发者 https://www.devze.com 2023-02-22 14:44 出处:网络
Is there a way to detect the last (o开发者_开发知识库r first) plugin that has been placed inside a placeholder?

Is there a way to detect the last (o开发者_开发知识库r first) plugin that has been placed inside a placeholder?

I want to add a class="last" to my plugin template in case of the last plugin.


Give this a try:

{% if plugin.last %} This is the last plugin for current placeholder {% endif %}

(plugin.first should also work)

0

精彩评论

暂无评论...
验证码 换一张
取 消