小编ber*_*ert的帖子

用于Drupal配置表单的texarea中的WYSIWYG编辑器

是否可以在texarea中使用WYSIWYG编辑器用于Drupal站点配置表单(system_settings_form).

这就是配置现在编码的方式......

$form['my_module_text_bottom'] = array(
    '#type' => 'textarea',
    '#title' => t('Some text'),
    '#default_value' => variable_get('my_module_text_bottom', 'This is configurable text found in the module configuration.'),
    '#size' => 1024,
    '#maxlength' => 1024,
    '#description' => t("Some text."),
    '#required' => TRUE,
  );
  return system_settings_form($form);
Run Code Online (Sandbox Code Playgroud)

forms configuration wysiwyg textarea drupal

5
推荐指数
1
解决办法
4387
查看次数

用于添加Drupal节点记录的配方

我正在寻找添加Drupal节点记录的方法.我确定了三张桌子.

node_revisions
nid=249  - vid + 1?
vid=248  - auto-increment

node:
nid=250  - vid + 1?
vid=249  - auto-increment

content_type_my_content
vid=248  - from node_revisions table?
nid=249  - from node table? 
Run Code Online (Sandbox Code Playgroud)

我是在正确的轨道上吗?这有辅助功能吗?

indexing drupal drupal-nodes

4
推荐指数
1
解决办法
751
查看次数

Drupal:将块分配给特定的内容类型

我创建了一个名为node-mynode.tpl.php的自定义模板.每当请求mynode类型的节点时,都会自动使用node-mynode.tpl.php.

但是,现在用户希望在这种情况下看到特定的菜单块.

问题:如何为特定内容类型分配块?

提示:我已经开始查看与Pathauto的URL别名.我怀疑一个解决方案可能就是朝这个方向发展.

drupal pathauto drupal-blocks

2
推荐指数
1
解决办法
5589
查看次数