当前位置:网站首页>Empire CMS no thumbnail smart tag (e:loop) two ways to judge whether there is a titlepic
Empire CMS no thumbnail smart tag (e:loop) two ways to judge whether there is a titlepic
2022-07-03 11:13:00 【User 5471431】
Recently, I worked on a website project , Smart labels are used on the home page (e:loop) Implement a list of new articles , Some article title pictures (titlepic), Some articles have no title pictures (titlepic), Hope to achieve the effect shown in the figure below , You need to judge whether there is a title picture titlepic, If there is no title titilepic, Do not display or output img label , If there is a title picture titlepic, The output shows img label .
To achieve the above effect, the code is as follows ( adopt php Determine whether there is a title picture titlepic):
<?php
if($bqr[titlepic])
{
?>
// Show content when there is a title picture
<?php
}
else
{
?>
// Show content when there is no title picture
<?php
}
?>Another way , It's not titilepic First , Output default picture address :
<?=$bqr[titlepic]?$bqr[titlepic]:"http://www.fangzhanba.com/e/data/images/notimg.gif"?>边栏推荐
- 【蓝桥杯选拔赛真题44】Scratch消灭骷髅军团 少儿编程scratch蓝桥杯选拔赛真题讲解
- Latest sales volume of pinduoduo
- The role and necessity of implementing serializable interface
- I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it
- 触摸与屏幕自动旋转调试
- 10. Nacos source code construction
- Clion debug
- Hal - General
- A simple method of adding dividing lines in recyclerview
- Multiple IO transfer - preamble
猜你喜欢

How to realize automatic testing in embedded software testing?

Error installing the specified version of pilot

你真的需要自动化测试吗?

Communication software development and Application

I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it

面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩

2021 reading summary (continuously updating)

Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)

历经一个月,终于拿到金蝶Offer!分享一下四面面经+复习资料

【obs】obs的ini格式的ConfigFile
随机推荐
Clion debug
AMS Series 1 - AMS startup process
Qt:qss custom qmenubar instance
Snownlp emotion analysis
File upload and download test point
Qt:qss custom qpprogressbar instance
英特尔13代酷睿旗舰曝光,单核5.5GHz
有赞CTO崔玉松:有赞Jarvis核心目标是使产品变得更加聪明和可靠
Solution: jupyter notebook does not pop up the default browser
大厂技术专家:工程师如何提升沟通能力?
T5 attempt
Qt:qss custom qstatusbar instance
. Net core - a queuing system for wechat official account
Probability theory: application of convolution in calculating moving average
项目管理精华读书笔记(六)
TypeScript学习总结
php服务器 与redis交互大量CLOSE_WAIT分析
The normal one inch is 25.4 cm, and the image field is 16 cm
What experience is there only one test in the company? Listen to what they say
In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test