开发者

Detect last plugin in 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜