Automatic Nodetitles模块的安装设置

Automatic Nodetitles 模块非常一个小巧、方便。通过简单的设置可以实现自动标题和隐藏标题输入框。

接下来我简单讲解一下安装和设置

共同的:
Drupal 版本:6.4
Automatic Nodetitles 版本:6.x-1.0

所需要的模块:
Token 版本:6.x-1.11

Token 模块安装很简单,启用后无须设置。

下载解压Automatic Nodetitles模块,我们得到目录auto_nodetitle
上传或复制到 /sites/all/modules 目录

URL到:admin/build/modules
即:管理-->站点构建-->模块

在模块列表中找到 Automatic Nodetitles 并在启用选框中选中,保存生效。

Automatic Nodetitles 模块是在内容类型中控制的

我们拿内容类型: blog 为例

URL到:admin/content/types
即:管理-->内容管理 -->内容类型

在 内容类型 列表找到 blog 点击 “ 编辑 ” 连接

打开 “ 编辑 ” 连接后,如下图

图1

点击图1所示 Automatic title generation 选项卡展开,看图2

图2

默认情况下是禁用的,如果我们要对 内容类型 blog 起作用就需要选择后2项
Automatically generate the title and hide the title field (自动生成标题并隐藏标题输入栏)

Automatically generate the title and hide the title field(如果标题栏为空就自动生成标题)

选择那个都可以,看个人需要了。我们这里选择第2项
Automatically generate the title and hide the title field(如果标题栏为空就自动生成标题)

Pattern for the title:
你可以在文本域内输入自动标题的样式,这里就使用到 Token 模块

点击图3所示:Replacement patterns

图3

就能看到很多可以替换的变量

在这里我使用了:
[author-name] [date]

如图4所示

图4

最后保存内容类型,就完毕了。

好了,赶快去创建一篇blog看看效果吧!

附件大小
auto_nodetitle_01.png2.81 KB
auto_nodetitle_02.png8.83 KB
auto_nodetitle_03.png795 个字节
auto_nodetitle_04.png6.51 KB

评论

请问有类似的插件,可以对评论有效的吗?

请问有类似的插件,可以对评论有效的吗?

这个模块对我来讲意义不大,所以很少关注相关的模块,建议你去

这个模块对我来讲意义不大,所以很少关注相关的模块,建议你去drupal.org找找,或者到中文站 drupalchina.org 发帖子问问