DedeCMS template common tags

DedeCMS template common tags

I have been searching for the commonly used tags in DedeCMS templates for a long time. Since this is something I will use frequently, I will prepare it and use it slowly.

{dede:global.cfg_webname/} site name
{dede:global.cfg_basehost/} site url (backend settings)
{dede:global.cfg_cmsurl/} The actual URL of the site (recommended by Qiqi)
{dede:global.cfg_memberurl/} Member Center Address
{dede:global.cfg_dataurl/} site data directory address
{dede:global.cfg_templeturl/} template directory address
{dede:global.cfg_powerby/} Bottom copyright
{dede:global.cfg_beian/} Record information

{dede:field.description function='html2text(@me)'/} Site description
{dede:field.phpurl/} site plus directory site address
{dede:field.title/} Title
{dede:field.keywords/} Keywords

{dede:flink row='24′/}Friendly Links

{dede:field.content/} Column content

{dede:field.position/} Current position
{dede:field.pubdate function=”MyDate('Ymd H:i',@me)”/} Time
{dede:field.source/} Source
{dede:field.writer/} Author
<script src=”{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}” type='text/javascript' language=”javascript”></script> Number of clicks
{dede:field.body/} Article content
{dede:adminname/} Editor in Charge
{dede:pagebreak/} Page number
{dede:prenext get='pre'/} Previous article
{dede:prenext get='next'/} Next article

navigation
{dede:channel type='self' currentstyle=”<span><a href='~typelink~' class='thisclass'>~typename~</a></span>”}
<span><a href='[field:typeurl/]'>[field:typename/]</a></span>{/dede:channel}

{dede:include filename=”*.htm”/} calls the template file
{dede:memberinfos}
<a href=”[field:spaceurl /]“><img src=”[field:face/]” width=”52″ height=”52″ /></a> Avatar
<a href='[field:spaceurl /]'>[field:uname/]</a> Username
<a href=”[field:spaceurl /]”>View details</a>
<a href=”[field:spaceurl /]&action=guestbook”>Send message</a>
<a href=”[field:spaceurl /]&action=newfriend”>Add as friend</a>
User rank:</small>[field:rankname /]
Registration time:</small>[field:jointime function="MyDate('Ymd H:m',@me)"/]
Last login:</small>[field:logintime function="MyDate('Ymd H:m',@me)"/]
{/dede:memberinfos}

<a href=”{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}” target=”_blank”>Collection</a>
<a href=”{dede:field name='phpurl'/}/erraddsave.php?aid={dede:field.id/}&title={dede:field.title/}” target=”_blank”>Find an error</a>
<a href=”{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}” target=”_blank”>Recommend</a>
<a href=”#” onClick=”window.print();”>Print</a>

Document List
{dede:arclist titlelen=42 row=10}
<li><a href=”[field:arcurl/]”>[field:title/]</a>
<p>[field:description function='cn_substr(@me,80)'/]…</p>
</li>{/dede:arclist}

<<:  Fu Wei's talk about group site SEO series 4: How do those who do group site solve the content problem?

>>:  Baidu bidding sem data case analysis, how to conduct bidding data analysis?

Recommend

How to make users addicted to your product? These 4 steps are required

What would happen if users fell in love with prod...

Qingming Outing Season | How to have fun in nature without going wild?

Audit expert: Li Guangwang Director of the Natura...

2019 Kuaishou and Douyin User Research Report!

The following is the full report: (Reply "DK...

《Infinite Flow》Basic knowledge of infinite flow

"Infinite Flow" Introduction to the bas...

Don’t underestimate allergies, some severe allergies can be life-threatening!

Sneezing, red eyes, runny nose Rash, itching, and...

One picture to understand|A full moon story of a "business trip" in space

October 16, 2021 00:23 Shenzhou 13 manned spacecr...