最近搜索
没有最近搜索

Paul Leverett
已加入2021年4月16日
·
最后活动2021年10月27日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Paul Leverett
Paul Leverett 进行了评论,
This has been a really useful thread, thanks to everyone who has contributed. I added images to my categories without difficulty, and then made it work in multiple languages by using Category id instead of title. So far, so good, very pleaaed with the results. :)
But of course we always want more. I re-purposed the "promoted articles" feature and changed it a little to show "Videos" instead of promoted articles and a video camera icon after the title.
But now I would like to do something similar for highlighting articles with downloadable attachments (ie pdf manuals). Is there any way of doing something like this...?
{{title}}
{{#if promoted}}
{{/if}}
... but instead of "#if promoted" I want to use either a label or a partial text match - something like
{{#if label "manual"}}
or wilcards like..
{{#if title like "*manual*"}}
Is there anything that can help me with this?
Many thanks,
Paul
查看评论 · 已于 2018年11月21日 发布 · Paul Leverett
0
关注者
0
投票
0
评论