WEB开发网
开发学院CMS教程其它CMS akcms一些标签,在模板中作站调用 阅读

akcms一些标签,在模板中作站调用

 2012-03-20 11:18:57 来源:WEB开发网   
核心提示:[digest]精华等级八 getcomments(取评论)参数template 模板itemid 对应文章IDorderby 排序方式模板[itemid] 对应文章ID[username] 用户名[title] 题目[message] 内容[dateline] 时间[ip] IP地址[secretip] 最后一位隐藏
[digest]精华等级

八 getcomments(取评论)
参数
template 模板
itemid 对应文章ID
orderby 排序方式

模板
[itemid] 对应文章ID
[username] 用户名
[title] 题目
[message] 内容
[dateline] 时间
[ip] IP地址
[secretip] 最后一位隐藏的IP地址
[id] 排序ID
[y]年
[m]月
[d]日
[h]时
[i]分
[s]秒
[sy]短格式年
[sm]短格式月
[sd]短格式日

九 akinclude(包含文件)
参数
file 要包含的文件名

十 akincludeurl
参数
url 要包含的目标URL

第八章 扩展接口


第九章 二次开发
1 rewrite规则的书写
AKCMS目录结构

==========================================================
内容页面内可以使用的变量
$home 首页地址http://www.akcms.com/或者/
$id 文章ID
$title 题目
$shorttitle 短题目
$texttitle 无样式题目
$textshorttitle 无样式短题目
$data 正文内容
$keyword 关键字
$digest 摘要
$categoryname 分类名
$category 分类编号
$categorypath 分类首页,常见用法<a href="<{$categorypath}>"><{$categoryname}></a>
$pageview PV
============================================================
栏目页面可以使用的变量

$home 未支持
$categoryname 分类名
$category 分类编号

,rss.htm (建立个RSS的后缀文件调用数据生成) 馒头的有伪静态的 可以下载馒头的博客模板

<?xml version="1.0" encoding="GBK" ?>
<?xml-stylesheet type="text/xsl" href="rss.xslt"?>
<!-- generator="FEEDCREATOR_VERSION" -->
<rss version="2.0">
<channel>
<title>qqxiake</title>
<description>qqq</description>
<link>http://127.0.0.1/</link>
<lastBuildDate><{gettime}></lastBuildDate>
<generator></generator>
<language>zh-cn</language>
<copyright>Copyright 1996 - 2008 qq Inc. All Rights Reserved.</copyright>
<pubDate><{gettime}></pubDate>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/webarch" />
<{getitems timelimit="1" num="20" orderby="id_reverse" skipcategory=$v_skipcategory template="<item>[n]<title>[title]</title>[n]<link>[url]</link>[n]<description><![CDATA[[digest]]]></description>[n]<author>yubosun@foxmail.com(yubosun)</author>[n]<category>[category]</category>[n]<comments>[url]#comment</comments>[n]<pubDate>[D], [d] [M] [y] [h]::[s] +0800</pubDate>[n]<guid>[url]</guid>[n]</item>[n]"}>
</channel>
</rss>

上一页  3 4 5 6 7 8 

Tags:akcms

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接