Home  >  Article  >  CMS Tutorial  >  How to remove the last loop symbol in DEDECMS

How to remove the last loop symbol in DEDECMS

藏色散人
藏色散人Original
2020-01-02 09:17:071745browse

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}

@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]

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

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

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}

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!

Statement:
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