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 did a deer from across the ocean end up on our national emblem?"

This is the national emblem of Antigua and Barbud...

WeChat update! You can finally block group chats

Hello my friends. I just had a day off yesterday ...

Be careful with your password! Another surprising bug in iOS 8

As the use of mobile devices becomes more widespr...

New consumer brand marketing: 1-6 months tactics

First, let me say the golden sentence: Cross-dime...

Portal website rules, how to do SEO for corporate portal website in 2020?

With the advent of 2020, a lot of changes have ta...

What are the product methods to improve user retention?

Recently I saw a written test question that requi...