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 write “textured” copy? Here are 3 ways

Copywriting with texture can give people enough r...

Why does Nokia dare to sell its new Android 7.0 phone for 1,699 yuan?

Nokia was once the undisputed king of the mobile ...

The secret behind the popularity of live streaming marketing

To put it bluntly, live streaming is still a show...

Android 9.0 upgrade is too slow, Google wants users to test Android Q directly

Although after Google released Android 9.0 this y...

Congratulations to Chen Dong, Liu Yang, and Cai Xuzhe!

CPC Central Committee State Council Central Milit...

The Gansu earthquake also triggered another disaster...

At 23:59 on December 18, a 6.2-magnitude earthqua...

A brief discussion on RabbitMQ's delay queue

Part 01. What is a delay queue? Delay queues repr...

Why should we advertise on CCTV?

Why do we advertise on CCTV? Since the era of sel...

iPhone 7 "No Service" Issue Can Be Repaired? Wishful Thinking

"Apple is in trouble again: iPhone 7 has ...