GithubHelp home page GithubHelp logo

dedecms's Introduction

dedecms

{dede:global.cfg_webname/}

{dede:include filename="head_new.htm"/}
{dede:include filename="footer_new.htm"/}
//某个分类名称
{dede:type typeid="9"}
   <a href="[field:typeurl/]">[field:typename/]</a>
{/dede:type}
//文章标题,网站名称
<title>{dede:field.title/} - {dede:global.cfg_webname/}</title>
//关键词
<meta name="keywords" content="{dede:field name='keywords'/}" />
//描述
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />

//文章标题
{dede:field.title/}
//文章内容
 {dede:field.body/}
 {dede:field.content/}
 //时间转换
 [field:pubdate function='strftime("%m-%d",@me)'/]
 
 //某个分类下的文章
 {dede:list pagesize='10'}
  <li> 
   <div class="inner"> 
   <img src="[field:litpic/]" style="display: block;">
	<span class="text-list-a"> <code></code><a href="[field:arcurl/]" title="[field:title/]">[field:title/]</a> </span> 
	<span class="text-list-times">[field:pubdate function="GetDateTimeMK(@me)"/]</span> 
   </div></li> 
  {/dede:list}
 {dede:pagelist listitem="index,end,pre,next,pageno" listsize="5"/}
 //某个指定分类文章
 {dede:arclist orderby=pubdate typeid=10 row=15}
         <li>
          <div class="inner">
      <img src="[field:litpic/]" style="display: block;">
            <span class="text-list-times">[field:pubdate function="MyDate('Y-m-d',@me)"/]</span>
           <span class="text-list-a">
             <code></code><a class=""  href="[field:arcurl/]"   title="[field:title/]">[field:title/]</a>
           </span>
          </div>
         </li>
         {/dede:arclist}
//上一页
{dede:prenext get='pre'/} 
//下一页
{dede:prenext get='next'/}
//分页内容
{dede:pagelist listitem="index,end,pre,next,pageno" listsize="5"/}

//分类列表
 {dede:channel typeid='4' row='99' currentstyle=" <dt class="oneClassT oneClassTopen"> <span href='~typelink~' ~rel~>~typename~</span></dt>"}
              <dt> 
               <div class="oneClassTinner"> 
                <a href="[field:typeurl/]"> <code class="open"></code> <span> [field:typename/] </span> </a> 
               </div> 
              </dt>
{/dede:channel}	

当前栏目typeid
{dede:field.typeid/}


验证码 退出:/member/index_do.php?fmdo=login&dopost=exit# 登陆:/member/index_do.php
"../include/vdimgck.php"

dedecms's People

Contributors

hendulangzi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.