shel/neos-reports

Neos CMS 节点数据报告生成器

安装数: 9,241

依赖关系: 0

建议者: 0

安全: 0

星标: 7

关注者: 2

分支: 0

开放性问题: 0

语言:JavaScript

类型:neos 插件

1.2.0 2023-11-16 13:44 UTC

This package is auto-updated.

Last update: 2024-09-16 15:23:21 UTC


README

本软件包为 NeosCMS 提供一个 Excel 报告生成器。

您可以通过 yaml 配置报告配置文件,每个配置文件可以定义应包含哪些节点类型及其列。一个可选的起始点允许您只导出网站的部分。

后端模块显示所有配置的配置文件列表,并允许导出它们。

安装

在您的 Neos 项目中运行以下命令

composer require shel/neos-reports

或将包作为依赖项添加到您的 site-package。

报告预设的配置示例

Shel:
  Neos:
    Reports:
      presets: 
        myReport:
          label: 'My Report'
          startingPoint: '/sites'
          filenamePrefix: 'My report'
          dateTimeFormats: 
            input: 'd.m.Y'
            values: 'd.m.Y H:i'
            filename: 'Y-m-d_H-i'
          nodeTypes:
            My.Vendor:Content.Event:
              label: 'Events'
              sortBy: 'title'
              properties:
                - title
                - category
                - startDate
                - startTime
                - endDate
                - endTime
                - location
                - image
              expressions:
                # Get title from first content element
                Headline: "${q(node).children('content').first().property('title')}"
  
            My.Vendor:Document.News:
              label: 'News'
              sortBy: 'title'
              properties:
                - title
                - publicationDateTime
              expressions:
                # Get text from the first content node in main content collection and remove html tags
                Text: "${String.stripTags(q(node).children('main').children('[instanceof My.Vendor:Content.Text]').first().property('content'))}"
  
            My.Vendor:Content.text:
              sortBy: 'text'
              properties:
                - text

贡献

欢迎贡献。

对于代码贡献,请创建一个分支,并针对此存储库最低维护的分支(目前为 main)创建 PR。

许可证

许可证