Home > CMS Tutorial > DEDECMS > body text

How to remove the last loop symbol in DEDECMS

藏色散人
Release: 2020-01-02 09:17:07
Original
1733 people have browsed it

How to remove the last loop symbol in DEDECMS

DEDECMS How to remove the last cycle symbol?

DEDECMS label loop call removes the last loop symbol code, friends in need can refer to it.

Recommended learning: 梦Weavercms

The Dreamweaver mark allows limited programming expansion.

The format is:

{dede:tagname runphp=’yes’} 
$aaa = @me; 
@me = “123456″; 
{/dede:tagname}
Copy after login

@me represents the value of the tag itself. Therefore, statements such as echo cannot be used in programming within the tag. All return values ​​can only be passed to @me.

In addition, because the program code occupies the content of the underlying template InnerText, the tags that require programming can only use the default InnerText.

Of course, here we are [field:global name=autoindex/], but we can program in the following way:

[field:global name=autoindex] $aaa = @me; @me = “123456″; [/field:global]
Copy after login

Here we only need a judgment, the code is as follows:

[field:global name=autoindex runphp="yes"](@me!=8)? @me=”|”:@me=”";[/field:global]
Copy after login

It means that when autoindex is equal to 8, this label is empty, otherwise it is "|".

Let’s take a look at this code in general:

{dede:arclist row=’8′ att=’3′ type=’p_w_picpath.’}[field:litpic/][field:global name=autoindex runphp="yes"](@me!=8)? @me=”|”:@me=”";[/field:global]{/dede:arclist}
Copy after login

This generates the code in the form we want. Many FLASH can be solved using this style.

The above is the detailed content of How to remove the last loop symbol in DEDECMS. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!