php获取页面a标签内容_AKCMS常用标签代码整理
輕量級的CMS我覺得AKCMS算是小而強悍的,作者可以算是個極客,代碼、功能精簡,安全卻挺到位,以至于讓很多人無法很快使用他的網站程序。也有可能作者精力有限,沒有更進一步完善這套系統,現在官網都僅僅是掛著廣告和技術參考手冊。
先來感受一下這個超精簡的CMS網站程序
AKCMS常用標簽大全
標題:
日期:-- ::
來源:
作者:
時間:--
點擊:
內容:
關鍵字:
本文鏈接地址:
標簽:?[iteminhtml] [n]"}>
分類:
瀏覽:
評論:
調用網站頂級欄目
<{getcategories skipsub=$category template="[category]"}>效果
<a href='欄目連接' title='欄目名稱'>欄目名稱a>li>調用網站子欄目(情況說明:在某個欄目下顯示該欄目的子欄目)
<{getcategories rootcategory=$category template="[category]"}>效果
<a href='子欄目連接' title='子欄目名稱'>子欄目名稱a>li>面包屑 標簽 又稱 層級導航 如何 調用標簽
當前位置:首頁 [category] "}>
效果展示
獲取該欄目標題+內容
<{getitems num=$v_pagesize bandindex="1" category=$category includesubcategory="1" page=$page template='[category] [title]'}>標簽說明:$v_pagesize為自定義變量 頁面輸出條數 也可直接用數字代替
輸出效果
翻頁效果
$page _getid=$get_id template="共[total]篇 / 第$page頁[indexs]" linktemplate="[link]" baseurl="category.php?id=[_getid]&page=[page]"}>輸出
<span>共6 / 第1頁span><a class="current">1a><a href="category.php?id=1&page=2">2a>獲取當前欄目地址
"" num="1" template="[category]"}>輸出
<a href='欄目連接'>欄目名稱a>"}>怎么獲取模塊自定義字段數據
模塊中自定義字段
在內容頁面輸入相關內容
下面是在模板頁面上添加標簽
或者
輸出
XMzQwNDczODQw
怎么添加搜索頁面
1 建立search.htm模板
2 新增一個入口文件,比如:search.php
search.php只需要這么寫:
$template = 'search.htm';include("akcms_page.php");?>
上一篇
<strong>上一篇:strong><{getitems num="1" next=$id orderby="id_reverse" emptymessage='無' template="[title]"}>li>下一篇
<strong>下一篇:strong><{getitems num="1" last=$id orderby="id" emptymessage='無' template="[title]"}>li>如何讓給文章中關鍵詞增加指定連接
AK默認調用文章關鍵詞標簽是
例如:文章中 添加關鍵詞為:北京 北京王府井
模板中粘貼 輸出 :北京 北京王府井
如果想輸出為: 北京 北京王府井
那么得在后臺》》設置》》前臺設置》》內容關鍵字顯示模板
輸入: [keywords]
即可
獲取該欄目標題+內容
<{getitems num=$v_pagesize bandindex="1" category=$category includesubcategory="1" page=$page template='[category] [title]'}>標簽說明:$v_pagesize為自定義變量 頁面輸出條數 也可直接用數字代替
輸出效果
相關文章:
<{getitems category=$category num="10" related=$id skip=$id template="[title] [m]-[d]"}>
相關文章
<{getitems timelimit="1" skipcategory=$v_skipcategory keywords=$keywords orderby="id_reverse" template="[title]"}>人氣文章
<{getitems timelimit="1" category=$category orderby="pv_reverse" template="[title]"}>最新文章
<{getitems num="10" orderby="id_reverse" category=$category length="46" template="[texttitle]"}>隨機推薦
<{getitems num="10" orderby="random" category=$category length="46" template="[texttitle]"}>欄目熱點
<{getitems num="10" orderby="pv_reverse" category=$category length="46" template="[texttitle]"}>推薦專題
<{getitems bandindex="1" orderby="orderby2_reverse,id_reverse" category=$category page=$page num="50" template="([y]-[m]-[d])[title]" }>隨機選取的10篇日志
<{getitems skipcategory=$v_skipcategory orderby="random" num="10" template="[shorttitle][n]" expire="3600"}>
最近的20篇日志
<{getitems category=$category skipcategory=$v_skipcategory orderby="id_reverse" num="20" template="[shorttitle][n]" expire="3600"}>
最熱的20篇日志
"5,6" orderby="pv_reverse" num="20" template="[shorttitle][n]"}>
本分類最近的20篇日志
<{getitems category=$category orderby="id_reverse" num="20" template="[shorttitle][n]" expire="3600"}>
評論需要的調用:
版權: [powered]
定時更新調用文件 [inc]
與相關的內容
TAG:
搜索代碼1.
<form action="/akcms_search.php" name="searchform" id="searchform"><input type="hidden" value="0" name="kwtype" />
<input class="searchtxt" id="keywords" name="keywords" />
<select id="searchtype" name="searchtype">
<option value="titlekeyword" selected="selected">智能模糊搜索option>
<option value="title">僅搜索標題option>
select>
<input class="search" type="image" src="/images/so.gif" align="absmiddle" />
form>
搜索代碼2.
"/akcms_search.php" >"text" id="keywords" name="keywords" size="33" class="textinput">"submit" value="站內搜索" class="submitinput">列表目錄 ,category_list.htm
<meta http-equiv="Content-Type" content="text/html; charset=" /><title><{$categoryname}> – <{$v_sitename}>title>
<a href="/" target="_self">首頁a>li>
<{getcategories skipid=$v_skipcategory template="[category][n]"}>
<div class="youarehere"><a href="/"><{$v_sitename}>a> > <a href=""><{$categoryname}>a> > 文章列表div>
<{getitems bandindex="1" category=$category includesubcategory="1" page=$page num="10" orderby="id_reverse" template="[y]-[m]-[d][title][digest]
作者:[author] | 來源:[source] | 人氣:[pv]
"}><{getindexs page=$page template="第一頁 [indexs]最后一頁" linktemplate="[link] " baseurl="index-[page].htm"}>
欄目熱點
<{getitems num="10" orderby="pv_reverse" category=$category length="46" template="[texttitle]"}>欄目推薦
<{getitems num="10" orderby="rondom" category=$category length="46" template="[texttitle]"}>列表首頁 ,category_home.htm
<meta http-equiv="Content-Type" content="text/html; charset=" /><title><{$categoryname}> – <{$v_sitename}>title>
<a href="/" target="_self">首頁a>li>
<{getcategories skipid=$v_skipcategory template="[category][n]"}>
<div class="youarehere"><a href="/"><{$v_sitename}>a> > <a href=""><{$categoryname}>a> > 文章列表div>
<{getitems bandindex="1" category=$category page=$page colspan="4" overflow="" num="10" orderby="id_reverse" includesub="1" template="·[title][digest] 來源:[source] 作者:[author] 時間:[y]>-[m]-[d] 點擊[pageview] [m]-[d]
"}>
<a href=index-1.htm>更多a>
<{getindexs page=$page template="第一頁 [indexs]最后一頁" linktemplate="[link] " baseurl="index-[page].htm"}>
網站首頁 ,page_home.htm
網站名字:
<{getcategories skipid=$v_skipcategory template="[category][n]"}>
分類條用:
<{getcategories skipid=$v_skipcategory template="[category][n]" expire="36000"}>博客形式
<{getitems bandindex="1" orderby="id_reverse" page=$page timelimit="1" skipcategory=$v_skipcategory num="4" template="[y]年[m]月[d]日 [title][digest]標簽: [keywords]分類:[category] | 瀏覽:[pv] | 評論:[commentnum]"}>分頁:<a href=()/()>?a> [indexs]<a href=()index-[last].htm()>?a>" linktemplate="[link] " baseurl="index-[page].htm"}>
數據調用樣式,可以任意按照ID調用<{getitems category="2" num="10" expire="3600" template="[title]"}>4" num="10" orderby="id" expire="3600" template="[title]"}>
搜索頁面 ,search.htm
<title><{$keywords}>-<{$v_sitename}>title><form action="/akcms_search.php" name="searchform" id="searchform">
<input type="hidden" value="0" name="kwtype" />
<input class="searchtxt" id="keywords" name="keywords" />
<select id="searchtype" name="searchtype">
<option value="titlekeyword" selected="selected">智能模糊搜索option>
<option value="title">僅搜索標題option>
select>
<input class="search" type="image" src="/images/so.gif" align="absmiddle" />
form>
<strong>您所在的位置,search.htm:strong><a href="/"><{$v_sitename}>a> >> 與<{$keywords}>相關的內容div>
<{getitems keywords=$keywords orderby="id_reverse" num="50" template="[title] (閱讀:[pv]-)(評論:[commentnum])([y]-[m]-[d] [h]:)[digest] 閱讀全文[n]"}>
總得來講,AKCMS的易用性欠缺一些,需要有一定PHP開發基礎的程序員使用,而且現在已經開源,大家可以嘗試在其基礎上開發更多更實用的功能。
? ? ▼更多精彩推薦,請關注我▼不只關注互聯網博客地址:https://www.letus.top
總結
以上是生活随笔為你收集整理的php获取页面a标签内容_AKCMS常用标签代码整理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python谷歌浏览器驱动安装失败_阿里
- 下一篇: x9此计算机上没有hasp_为什么我在别