Drupal 安装配置文件

发布于 2024-09-08 19:41:07 字数 403 浏览 4 评论 0原文

我是 drupal 的新手,我正在尝试了解安装配置文件。

  • 安装配置文件只是添加到主 drupal 版本中的一堆模块,并与一些说明粘合在一起以方便将来安装,还是需要对它们进行自定义调整才能使用它们制作安装配置文件?

  • 我注意到一个软件包(包含安装配置文件),但维护者没有抽出时间将其更新到最新版本的 drupal。我想要自己创建安装配置文件的动机是我可以使用最新版本的 drupal 以及包含的所有其他模块的最新模块。我是否正确地假设重新创建安装配置文件就像(作为示例)自己编译 php,以便您可以获得最新的 php 版本和最新模块等?

  • 对于有 php 知识但没有 drupal 知识的人来说,这门课的相对难度是多少(简单、中等、困难)?一般开发者一天就能掌握的东西?

I'm new to drupal and I'm trying to understand installation profiles.

  • Is an installation profile just a bunch of modules that you add to the main drupal release and glue together with some instructions for ease of future installation, or do they need to be custom tweaked before an installation profile could be made out of them?

  • I noticed a package (containing an installation profile), but the maintainer didn't get around to updating it to the latest version of drupal. My incentive for wanting to create the installation profile myself is that I could use the latest version of drupal and the latest modules of all the other modules included. Am I correct in assuming that re-creating the installation profile is like (as an example) compiling php yourself so you could get the latest php version and latest modules, etc.?

  • For someone with php knowledge, but NO drupal knowledge, what is the relative difficulty of this subject (easy, medium, difficult)? Something that the average developer could master in a day?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

佞臣 2024-09-15 19:41:07
  • 安装配置文件可以包含向安装向导添加页面的自定义代码,或更改某些 Drupal 变量值的代码。安装配置文件现在可以使用 Drush make 文件,它允许下载模块(我不确定下载源是否只能是 Drupal.org,或任何网站 - 对此存在争议,并实现白名单,但我不知道它是否已实现),并对该模块应用补丁。
  • 与PHP编译的比较并不完全正确;将安装配置文件想象成一个创建可执行文件的 make 文件,只要您更改 make 文件内容,操作就会自动完成。
  • 主要的困难是了解 Drupal 中的工作是如何完成的;如果您从未为 Drupal 创建过模块,那么您应该了解有关 Drupal 安装配置文件的更多信息。这就像在为 Linux/Mac OS X 创建应用程序后,为 Windows 创建程序一样;您可以了解该编程语言,因为您已经使用过它,但您需要了解有关 Windows 编程的更多信息。
  • An installation profile can have custom code that adds pages to the installation wizard, or code that changes the values of some Drupal variables. Installation profiles can now use Drush make files, which allow to download a module (I am not sure if the download source can only be Drupal.org, or any web site — there was a debate about that, and to implement a white list, but I don't know if it has been implemented), and apply a patch to that module.
  • The comparison with PHP compilation is not completely correct; think of the installation profile like a make file that creates the executable, where the operation is automatically done all times you change the make file content.
  • The major difficulty is to know how things are done in Drupal; if you have never created a module for Drupal, you should learn something more about Drupal installation profiles. It is like creating a program for Windows, after creating applications for Linux/Mac OS X; you can know the programming language because you already used it, but you need to know something more about programming in Windows.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文