昨天顺便尝试在YLMF OS下安装drupal,可惜没成功,今晚在网上找了些教程,搞定了,在这里记录一下。懒得打字了,大部分引用官网上的内容拉……
参考:Simple install of Drupal on XAMPP
Note: If using XAMPP 1.7.2, Drupal will not install correctly. Either revert to XAMPP 1.7.1 (or earlier) or wait until a PHP 5.3 compatible version of Drupal is out.
看到水吧群里有朋友问这个,比如 创建一个NODE 并设置这个NODE 的有效时间范围,用户看这个NODE 就会出现实时跳动倒计时……
高人回答如下,记录一下:
http://drupal.org/project/jquery_countdown 初步感觉这个会比较好
http://drupal.org/project/countdowntimer
应该还有其他很多,需要的时候再找一找^^
External Links是一个很小的模块,用于区分站内链接和站外链接。使用jQuery给站外链接添加一个小的
图标,同时你也可以让外部链接在新的窗口打开(不必添加_blank)。
本站已经安装这个模块。
安装过程非常简单,先去 http://drupal.org/project/extlink 下载模块,上传到服务器并启用插件就可以了。
进入admin/settings/extlink进行设置,推荐将所有选项都选上。
Add icon to external links——给站外链接添加图标
前言
玩drupal8个多月了,计划中再花一年的时间,期望到时可以更好的掌握drupal,用它来完成自己的一些想法……
今天开始,随着自己的使用,开始有意的收集、整理、总结drupal常用的一些模块,算是自己的一个备忘录吧,顺便希望对初学者有所帮助。
这里面我会把自己遇到的问题放上来,解决了的会给出解决方法,看到的朋友也可以帮忙给出解决方法,大家一起提高^_^
“301 永久重定向”是一种对搜索引擎最友好的一种重定向方式。 你有可能会在下面几种情况下用到它:
有很多中设定301重定向的方法,下面我将就几种常用的来说明一下:
PHP 单页面重定向
你只要在 index.php 文件中加入一下代码就可以把一个静态的网页重定向到一个新的网址:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.newdomain.com/page.html");
exit();
?>
PHP 典型重定向
众所周知,在Drupal中要本地化,需要首先开启Locale模块,然后添加中文语言支持,再将中文包导入。其实还有一个很隐秘的地方可以放置翻译字符串,它在settings.php中。看下面的代码:
/**
* String overrides:
*
* To override specific strings on your site with or without enabling locale
* module, add an entry to this list. This functionality allows you to change
* a small number of your site's default English language interface strings.
*
* Remove the leading hash signs to enable.
*/
# $conf['locale_custom_strings_en'] = array(
最新评论
2 周 4 天之前
12 周 5 天之前
13 周 6 天之前
21 周 4 天之前
22 周 7 小时之前
25 周 1 天之前
26 周 6 天之前
31 周 5 天之前
33 周 6 天之前
43 周 1 天之前