phpcms v9 標籤含義整理

來源:互聯網
上載者:User

標籤:des   style   io   ar   os   sp   java   檔案   資料   

{template "content","header"}   ----------  調用根目錄下phpcms\template\content\header檔案
{CHARSET}  -------------------------------------字元集 (gbk或者utf-8)


{if isset($SEO[‘title‘]) && !empty($SEO[‘title‘])}
{$SEO[‘title‘]}{/if}
{$SEO[‘site_title‘]}
{$SEO[‘keyword‘]}
{$SEO[‘description‘]}

-----------------------------------標題和標題seo最佳化


{CSS_PATH}  -----------------------------------地址替換為根目錄下\statics\css
{JS_PATH}--------------------------------------地址替換為根目錄下\statics\js


{pc:content  action="position" posid="9" order="id" num="10" cache="3600"}
pc標籤{pc:content 參數名="參數值"參數名="參數值"參數名="參數值"}
{loop $data $k $v}
      <li><a href="{$v[url]}">{$v[title]}</a></li>
{/loop}


pc標籤值
action="position"-------------對話方塊的類型=“內容推薦位列表”
posid="9"--------------------推薦位ID=“9”
order="id"--------------------排序類型=“id”
num="10" -------------------資料調用數量=“10”
cache="3600"----------------緩衝="3600"毫秒
{APP_PATH}-----------------項目地址
{get_siteid()}----------------
{IMG_PATH}-----------------
action="hits" 排行,熱點等
action="lists" 主要用於列表等。
catid="$catid" 當前欄目ID   指定數字,即為指定的欄目
num=""  調用文章的數量
order="id DESC" 按ID降序排列
order="id ASC"  按ID升序排列
order="views DESC" 
sort=""
thumb="1" 縮圖
return=""
page="$page" 需要分頁
每當列表幾行的時候出現一次這個

{if $num%2==0}   {/if}
迴圈標籤

------{loop $data $r}  {/loop}   

------{loop $info $r}  {/loop}
日期------{date(‘Y-m-d H:i:s‘,$r[inputtime])}
文章連結------{$r[url]}
文章標題------{$r[title]}
標題截取------{str_cut($r[title],40,‘...‘)}
縮圖------loop是info的時候用  {thumb($r[thumb],110,0)}     loop是data的時候用{thumb($v[thumb],90,0)}
分頁標籤------{$pages}
文章頁標籤
  標題------{$title}
  內容------{$content}
  日期------{$inputtime}
  來源------{$copyfrom}
  點擊數------<span id="hits"></span>  

  <script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
網站首頁------{siteurl($siteid)}
當前位置------{catpos($catid)}

欄目名稱------{$CAT[catname]} 

欄目拼音------{$CAT[letter]}

欄目連結------{$CAT[url]}

父欄目名稱------{$CATEGORYS[$CAT[parentid]][catname]} 

父欄目連結------{$CATEGORYS[$CAT[parentid]][url]}

 

上上級欄目名稱------{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]}

上上級欄目連結------{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]}

 

一級父欄目列表

{pc:content action="category" catid="0" num="34" siteid="$siteid" order="listorder ASC"}
      {loop $data $r}
            <li><a href="{$r[url]}">{$r[catname]}</a></li>
      {/loop}
{/pc}

 

同級欄目列表

{pc:content action="category" catid="$parentid" num="12" siteid="$siteid" order="listorder ASC"}
      {loop $data $r}
            <li><a href="{$r[url]}">{$r[catname]}</a></li>
       {/loop}
{/pc}

 

組圖列表

{loop $photos $r} 

<li><a href="{$r[url]}"><img src="{thumb($r[url], 75, 45, 0)}" alt="{$r[alt]}" /></a></li>

{/loop}

注釋:其中$photos為自訂群組圖欄位,{$r[url]}為圖片地址,{thumb($r[url], 75, 45, 0)}為圖片縮圖,{$r[alt]}為圖片描述

phpcms v9 標籤含義整理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.