Home > CMS Tutorial > DEDECMS > When adding text, add the word [Picture] after the title.

When adding text, add the word [Picture] after the title.

(*-*)浩
Release: 2020-01-07 15:14:20
Original
2610 people have browsed it

When adding text, add the word [Picture] after the title.

dedecms allows articles with pictures to add the word [Picture] after the title. If there is no picture, do not add

. Add to the corresponding position looped out under the arclist tag

Default thumbnails in .php etc.

[field:litpic runphp='yes']
$imgurl = @me;
if(@me=="")@me="";else{
$imglink = '【图】';
@me=$imglink;
}
[/field:litpic]
Copy after login

This statement

If it is in the list page Call and comment out the

in include/arc.listview.class.php to handle the

if($this->Fields['litpic'] == '-' || $this->Fields['litpic'] == '')
            {
                $this->Fields['litpic'] = $GLOBALS['cfg_cmspath'].'/images/defaultpic.gif';
            }
Copy after login
below some special fields

The above is the detailed content of When adding text, add the word [Picture] after the title.. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template