在 Crafter CMS 2.5 文档中,类 in 类 > groovy 是什么意思?
In Crafter CMS 2.5 Documentation what does Classes in Classes > groovy mean?
在 Crafter CMS 2.5 文档中,Classes > groovy
中的 类 是什么意思?
You might notice that we're importing a utils.DateUtils class. This
class is not part of Crafter CMS, but instead it is a Groovy class
specific to the site. To be able to use this class, you should place
it under Classes > groovy > utils and name it DateUtils.groovy, where
everything after the groovy directory is part of the class' package.
It's recommended for all Groovy classes to follow this convention.
我现在知道 类 指的是什么了。它是工作区中的辅助脚本、站点、静态资产文件夹旁边的一个文件夹。我想确定这个位置,因为我想添加一个自定义 groovy class。我已将其添加到此文件夹中:/data/repo/wem-projects/{SITE_NAME}/{SITE_NAME}/work-area/classes/groovy/{PACKAGE_NAME}
在 Crafter CMS 2.5 文档中,Classes > groovy
中的 类 是什么意思?
You might notice that we're importing a utils.DateUtils class. This class is not part of Crafter CMS, but instead it is a Groovy class specific to the site. To be able to use this class, you should place it under Classes > groovy > utils and name it DateUtils.groovy, where everything after the groovy directory is part of the class' package. It's recommended for all Groovy classes to follow this convention.
我现在知道 类 指的是什么了。它是工作区中的辅助脚本、站点、静态资产文件夹旁边的一个文件夹。我想确定这个位置,因为我想添加一个自定义 groovy class。我已将其添加到此文件夹中:/data/repo/wem-projects/{SITE_NAME}/{SITE_NAME}/work-area/classes/groovy/{PACKAGE_NAME}