我在Lando 中安装了Drupal8,在lando文件中添加了phpmyAdmin服务,问题是配置的数据库在phpmyAdmin中没有显示。
name: mydrupal8
recipe: drupal8
config:
webroot: /drupal
services: # Define your services
appserver: # Create a web server container
type: php:7.2 # Specify what version of php to use
via: apache # This could be
我想以编程方式创建一个自定义内容(通过管理用户界面创建的自定义内容)。但是,在创建之前,我希望以编程方式检查我的自定义内容的字段类型
我的自定义内容包含一个字段"body“(类型为text)、一个字段"description”(类型为text)、一个int字段(类型为int)、一个附件字段(类型为fid ?)...
我用Drupal8的新api测试了几种方法,这是我的最后一次尝试。
// I get the entity object "my_custom_content"
$entity_object = NodeType::load("my_cust
我在无头模式下使用drupal8。因此,我在Drupal8上有一个后端,在JS中有一个前端。我希望drupal8中的内容URL指向前端域,而不是后端(后端没有任何模板来显示内容)。
backend.example.com/mycontent for Drupal8 www.example.com/mycontent for the前端
如何更新UI中的所有链接,使前端域取代后端域?(编辑表单上的视图或管理/内容或面包屑)。
我试图构建一个Drupal8主题,但我在资源库方面遇到了一些问题。
站点保持白色,apache错误日志抛出一个php异常:
Uncaught PHP Exception Drupal\\Core\\Asset\\Exception\\InvalidLibrariesExtendSpecificationException: "The specified library "radweiser/main-style" does not exist." at /Users/****/Sites/dev/radweiser/web/core/lib/Drupal/Cor
我有一个Drupal8站点,我已经安装了Wordpress迁移模块,它是将Wordpress站点迁移到Drupal8的依赖项。
当我开始从Wordpress导入导出的XML文件时,我会得到以下错误:
The website encountered an unexpected error. Please try again later.
当我检查错误消息页时,我发现如下:
Drupal\Core\Database\ConnectionNotDefinedException:指定的数据库连接未定义:在Drupal\Core\Database\Database::openConnection()中迁