Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of judging the tag of dedecms template

Shulou Source: shulou.com Published: 2022-06-02 05:06:15 10月04日 Update

This article mainly introduces the method of judging dedecms template tags, which is very detailed and has a certain reference value. Friends who are interested must finish reading it!

How to judge the dedecms template tag?

Dedecms template tags can be judged, but depending on which tag, some tags can not be judged. The source file must be changed. Here is an example that interested friends can refer to.

Depending on which label it is, some tags cannot be judged. The source file must be changed

Commonly used loop,autoindex, etc.

Add: runphp= "yes" to the label.

For example: [field:pubdate runphp='yes'] $a = "" .strftime ('% mmura% dacheng day3 me). "; $b=strftime ('% mmury% daimyo penalty me); $ntime = time (); $day3 = 3600 * 24; if (($ntime-@ me) < $strftime) @ me = $a; else @ me = $b; [/ field:pubdate]

[field:global name=autoindex runphp= "yes"] if (@ me%5==0) @ me= "; else @ me="; [/ field:global] this is the judgment, the list is underlined every five lines. The above is all the content of the dedecms template tag to judge the method, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Tags templates methods interests content source files references values guys buddies frequently used more friends lines knowledge examples articles industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Microsoft Shulou Information Xiaomi