[Drupal学习一]Drupal安装和基本配置[通俗易懂]

[Drupal学习一]Drupal安装和基本配置[通俗易懂]1.从官方网站上下载drupal-6.16 http://drupal.org/drupal-6.162.将下载的压缩包文件直接解压,放到apache的站点目录中。此时drupal的路径为WEB-SERVER/drupal3.访问站点http://localhost:8888/drupal/将进入drupal的安装页面。此时会提醒我们要拷贝重命名.sites/default/de…

大家好,又见面了,我是你们的朋友全栈君。1. 从官方网站上下载drupal-6.16

http://drupal.org/drupal-6.16

2. 将下载的压缩包文件直接解压,放到apache的站点目录中。此时drupal的路径为WEB-SERVER/drupal

3. 访问站点http://localhost:8888/drupal/将进入drupal的安装页面。此时会提醒我们要拷贝重命名.sites/default/default.settings.php为.sites/default/settings.php。 之后刷新页面,继续后续的安装。

4. 在Mysql数据库中建立站点的数据库。此例中取名为drupal_test_site。再返回到drupal安装页面,输入相应的数据库名称及账户信息。点击保存并继续按钮进行数据库的部署。

5. 配置站点信息。包括站点名称 管理员账户信息等,再继续。

6. 如果没有意外,会显示drupal安装成功。

注意:要是想汉化想drupal

(1).先在官网上下载中文语言包,下载之后解压,然后覆盖到已安装的drupal的根目录中、

(2).访问站点Administer -> Site building -> Modules ->将Locale这个模块启用,点击保存按钮

(3).选择语言,将默认设置为ZN。

7. visit the new site.

8. 第三方模块与核心模块

核心模块是在drupal安装之后就drupal自带的一些模块,这些模块可以在Modules中找到并自行启用或者禁用

第三方模块可以从官网上下载 下载之后需要安装到drupal/sites/all/modules中。然后在站点中进行激活配置

如DHTML Menus

具体可以参照drupal/sites/all/README.txt中的说明

9. 添加自定义的菜单(Menu)后drupal会自动添加到Blocks里面去

可在菜单设置中设置菜单的关联 如一级菜单和二级菜单的关联

10. 站点名称、站点口号Slogan等站点的基本信息可以在Site information中设置。在Themes中设置是否显示口号等信息

11. 在durpal中添加Fckeditor

Configuration

——————-

Note: this instruction assumes that you install FCKeditor in

sites/all/modules directory (recommended).

1. Unzip the files in the sites/all/modules directory. It should now

contain a fckeditor directory.

2. Download FCKeditor from http://ckeditor.com/download. Unzip the

contents of the fckeditor directory in the

sites/all/modules/fckeditor/fckeditor directory.

3. Enable the module as usual from Drupal’s admin pages.

4. Grant permissions for use of FCKeditor in

“Administer > User Management > Permissions”

Note: to enable the file browser, read also the

“How to enable the file browser” section.

5. Under “Administer > Site configuration > FCKeditor”, adjust

the fckeditor profiles. In each profile you can choose which textareas

will be replaced by FCKeditor, select default toolbar and configure

some more advanced settings.

6. For the Rich Text Editing to work you also need to configure your filters

for the users that may access Rich Text Editing.

Either grant those users Full HTML access or use the following tags:

<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr>

<br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong>

<font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code>

<cite> <embed> <object> <param> <strike> <caption>.

7. To have a better control over line breaks, you may disable Line break converter

in the chosen filter (recommended).

8. Modify the fckeditor.config.js file to custom your needs (optional).

You may copy the needed configuration lines from the default FCKeditor

configuration settings (sites/all/modules/fckeditor/fckeditor/fckconfig.js),

the lines in fckeditor.config.js will override most settings.

In fckeditor.config.js you may define your own toolbars with selected buttons.

WARNING: clear browser’s cache after you modify any of the javascript files.

If you don’t do this, you may notice that browser is ignoring all your changes.

12. 可以设置多个主题,主题都放在sites/all/themes中

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/162260.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • fastclick

    fastclickfastclick–处理移动端click事件300毫秒延迟安装:npminstallfastclick–save   之后,在main.js中引入    importFastClickfrom’fastclick’    并绑定到bodyFastClick.attach(document.body);1、兼容性iOS3及更高版本的移动SafariiOS5及更高版本的C…

    2022年6月19日
    54
  • springboot框架流程图_java流程框架

    springboot框架流程图_java流程框架这篇介绍springboot的框架流程控制(Controller)层,负责具体的业务模块流程的控制,也就是去拦截客户发来的请求。然后服务(Service)层,负责业务模块的逻辑应用设计,调用DAO层已定义的接口,去实现Service具体的实现类,也就是去和数据库(DAO)层打交道。Dao(serviceImpl)层负责与数据库进行交互设计,用来处理数据的持久化工作,DAO层的数据源配置,以及有关数据库连接的参数都在Spring的配置文件中进行配置。最后一层View层,负责前台h

    2022年8月21日
    7
  • datax(3): win环境cmd乱码「建议收藏」

    datax(3): win环境cmd乱码「建议收藏」通过前面两篇文章,大家应该已经可以安装成功datax,但是在win的cmd下竟然中文乱码。解决它!!!一,环境win10datax3.xcmdpy3.x二,现象运行python\xxx\datax.py\xxx\job.json后控制台乱码三,解决1,临时解决命令:chcp(更改该控制台的活动控制台代码页)过程:cmd下输入chcp65001改变当前代码页变为utf-8编码常用的编码及对应的码值(10进制):十进制码值 对应编码名称950 .

    2022年5月13日
    100
  • 移动端分享插件使用总结

    移动端分享插件使用总结

    2021年10月28日
    57
  • 移动端开发需要注意事项

    移动端开发需要注意事项1.webkit内核中的一些私有的meta标签<metacontent=”width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0″name=”viewport”><metacontent=”yes”name=”apple-mobile-web-app-capable”>…

    2022年6月24日
    26
  • decode encode区别_python encode函数

    decode encode区别_python encode函数encode:编码decode:解码python内部编码方式为unicode,decode将其他编码方式转换成unicode编码方式,encode将unicode转换成其他编码方式。因此unicode相当于一个中转:(1)decode->unicode->encode(2)encode->unicode->decode字符串在Python内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符…

    2022年10月7日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号