March 5th, 2007
CDC Clean Archives
Category: WordPress, Author: Nicky, Popularity: 7%上次说到使用CDC Clean Archives替换掉臃肿的ELA,CDC Clean Archives也是一个Ajax归档插件,看来喜欢上他的人也不少,特点就是清爽漂亮,查看起来也比较方便,这次把它的详细安装方法说一下,再附上我的一个Archives模板例子,可以根据自己的需要添加CSS样式。
CDC Clean Archives 安装使用方法:
1、到这里下载CDC Clean Archives .60,解压后上传到plugins目录,然后激活。
2、新建一个模板文件,例如:archives.php
在你需要显示的位置加入:
(去掉?前的空格)
然后再加入:
<!--
window.onload = function() {
// Pick your classes
var myStretch = document.getElementsByClassName('stretch');
var myStretcher = document.getElementsByClassName('stretched');
// Create the accordian
var myAccordion = new fx.Accordion(myStretch, myStretcher, {opacity: true, duration: 800});
// Scroll Links
myAccordion.showThisHideOpen(myStretcher[0]);
}
//-->
</script>
3、到后台Write - Write Page,新建一个页面(Page),在模板(Page Template)里面选择刚才做好的Archives即可。
参考模板archives.php下载。
最后再重复一下:
CDC Clean Archives在WP 2.1中也会把Page当成文章处理,和Michael修改ELA的方法一样,打开cdc_clean_archives.php,查找:
post_status='publish'
替换为:
post_type='post' AND post_status='publish'
即可。
Tags:Archives, Plugin, WordPress.
评论数量(7) | Add Comments
本文网址:http://www.osxcn.com/wordpress/cdc-clean-archives.html


语句错误了:
少了个分号好像…囧
是应该加一个,漏了。
我到是习惯了ELA,改天有时间也去弄个玩玩
very good plugin.
the short point is that it will take you a moment to scroll down if you got many entries to view in the same archive
the author said this will be improved next time.
sounds great!
升级到213
ff浏览月份链接错误
多谢提醒,作者已经停止开发了,准备换用 Clean Archives Reloaded。
原来在留言本里 Phoebus Osuns 也提醒了,英文没有太注意。
试了试 Clean Archives Reloaded 确实要好用一些,综合了 Clean Archives 和 CDC Clean Archives,可以选择喜欢的显示方式。
is it possible to send me this archive.php to my email adress?
i´ve got some problems using this plugin and would need some help if its possible