ujamii/externalblog

NEOS CMS 插件,用于展示外部博客的内容。

安装次数: 3,648

依赖: 0

建议者: 0

安全性: 0

星标: 1

关注者: 3

分支: 2

开放性问题: 1

类型:neos-package

v0.4.3 2023-11-06 11:25 UTC

This package is auto-updated.

Last update: 2024-09-06 13:12:21 UTC


README

Packagist

此插件添加了一个新的内容类型,用于显示来自外部博客的博客文章列表。

安装

composer req ujamii/externalblog

使用方法

该插件提供了一个新的内容节点类型 "External Blog Post List"。当您将其添加到您的网站时,您必须提供订阅源 URL(Atom 或 RSS)并可以设置显示的项目数量。

待办事项

  • 特性:多语言支持
  • 特性:外部博客文章的链接编辑器(按标题搜索,添加 URL)
  • 特性:命令控制器,用于持续将外部博客文章作为文档节点导入
    • 使这些文章可在 NEOS 网站上搜索

模板

Fusion 视图非常基础,因此您可能需要重写它

prototype(Ujamii.ExternalBlog:Component.Molecule.PostList) < prototype(Neos.Fusion:Component) {

    # note about images: props.post.firstMediaUrl will contain the absolute URL to an external image.
    # if you prefer to store this locally, use this eel helper to get as asset:
    # imageResource = ${Ujamii.ExternalBlog.importRemoteImage(this.post.firstMediaUrl, "externalblog")}
    # you can also pass the target collection name as second argument. "imported" is default
    # if you import it as NEOS asset, you can apply resize, crop and so on. 
    
    renderer = 'Whatever you like'
}

如果您想调整单个内容元素的渲染方式,只需按您喜欢的样子重写它们。所有渲染都是通过位于 Resources/Private/Fusion/Component/ 的文件完成的。

许可和贡献

GPLv3

由于这是一个开源项目,您可以通过报告错误、改进代码、编写测试或您能够为改进项目所做的任何其他事情来做出贡献。

如果您想帮我一个忙,请从我的 Amazon 愿望清单 购买一些东西。