当前位置:网站首页>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"?>
边栏推荐
- How can UI automated testing get out of trouble? How to embody the value?
- QT: QSS custom qsplitter instance
- 游戏测试相关 测试一个英雄的技能(春招被问比较多的一道题)
- [true question of the Blue Bridge Cup trials 44] scratch eliminate the skeleton Legion children programming explanation of the true question of the Blue Bridge Cup trials
- (二)进制
- Oracle收回权限 & 创建角色
- Game test related tests a hero's skills (spring moves are asked more questions)
- T5 的尝试
- My understanding of testing (summarized by senior testers)
- 1. Hal driven development
猜你喜欢
面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
Use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
Snownlp emotion analysis
. Net core - a queuing system for wechat official account
How to realize automatic testing in embedded software testing?
字节跳动大裁员,测试工程师差点遭团灭:大厂招人背后的套路,有多可怕?
T5 的尝试
Overview of testing theory
2021 reading summary (continuously updating)
ByteDance layoffs, test engineers were almost destroyed: how terrible is the routine behind the recruitment of large factories?
随机推荐
值得关注的15种软件测试趋势
Solve the problem that pycharm Chinese input method does not follow
Game test related tests a hero's skills (spring moves are asked more questions)
QT: QSS custom qtreeview instance
11. Provider service registration of Nacos service registration source code analysis
你真的需要自动化测试吗?
ORACLE 11G 单机冷备数据库
IIS修改配置信息后不生效
Logstash backup tracks the data records reported
今晚要修稿子準備發佈。但是,仍卡在這裡,也許你需要的是一個段子。
Word line and bit line
Struct function & function pointer
Using activity to realize a simple inputable dialog box
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func mai
Encapsulation attempt of network request framework of retro + kotlin + MVVM
QT: QSS custom qsplitter instance
How did I grow up in the past eight years as a test engineer of meituan? I hope technicians can gain something after reading it
Do you really need automated testing?
[true question of the Blue Bridge Cup trials 44] scratch eliminate the skeleton Legion children programming explanation of the true question of the Blue Bridge Cup trials
软件测试(测试用例)编写之俗手、本手、妙手