When building a separate structure of content elements using “Inheritance” or “Separate” modes for a page or FCE container element you strictly don’t need to tag these elements with a language. However, for two reasons you will have to: (continue reading…)
Archive for 七月, 2010
How to enter links in textfields without the RTE.
Internal links:
<LINK 383>Link to internal page with ID 383</LINK>
<LINK mypage>Link to internal page with alias “mypage”</LINK> (continue reading…)
WordPress插件制作
前言
最近在学习如何制作WordPress插件。在这方面,网上的资料还是不多的。我是指适合入门的资料。今天又在网上搜索了一下,发现了几篇非常不错的制作WordPress插件的教程。 (continue reading…)
Changing the default “typo3/” directory
By default TYPO3 is administrated from the directory “typo3/”. You can change (rename) that so the backend is available from another directory, eg. “my_typo3_admin_dir/”. But the frontend and backend is tied together in some ways that mean you’ll have to change parts of the source code. That is relatively easy if you follow these guidelines: (continue reading…)
剖析WordPress模板文件
在WordPress中如何按你的意愿显示页面,关键看你是否了解WordPress主题模板页面。 这里所说的主题文件是指显示页面的主题文件,而非实现评论、侧边栏等功能的主题文件。大多数用户不使用WordPress安装时自带的默认主题,他们会在互联网上下载免费主题。 这是一种设计博客版式的好方法,但不是所有主题开发者都用相同的方式编写主题。 主题的表现很大程度上取决于开发者用在主题上的开发时间和对WordPress的了解。 (continue reading…)
WordPress“伪cron”
WordPress利用“伪cron”机制实现定时任务。如果想把某些功能加到WordPress的cron里,可以使用下面的方法。 (continue reading…)
WordPress模板制作的建议
1. 了解所有的模板标签
WordPress编写代码时一定要注意模板标签。当然你也可以通过简单的PHP代码实现同样的效果,不过,还是尽可能使用WordPress的模板标签。 (continue reading…)
WordPress内置的缓存机制
WordPress可以使用插件缓存,但其实在WordPress内部也有一套缓存机制,你可以使用很多函数轻松实现缓存。 为了让大家认识和了解这个功能,我使用一个简单的例子,缓存一个feed并在前端显示。 (continue reading…)