承接 namelesscoder/newsflux 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

namelesscoder/newsflux

Composer 安装命令:

composer require namelesscoder/newsflux

包简介

Provides integration between the Flux API and EXT:news'

README 文档

README

Provides Flux forms integrations for EXT:news - allows defining <flux:form> in an EXT:news controller template to add/modify the FlexForm used by EXT:news.

What does it do?

In essence: puts the definitions of form fields your editors use when inserting EXT:news plugin instances, into the template that is rendered by the controller. Ideal when your overridden EXT:news templates need additional user-configurable options which are not part of the default EXT:news FlexForm - lets you define such form fields directly in the template that requires such values.

The integration is built using standard Flux integrations with minimal adaptations in key places. It consists of a single class file (around 25 lines of code) and one line of code to register this class, which is all that is necessary to connect Flux to EXT:news.

Installation

This extension is only available through composer/Packagist:

composer require namelesscoder/newsflux

Afterwards, either execute:

./typo3/cli_dispatch.phpsh extbase extension:install newsflux

Or, activate the extension in the Extension Manager.

There are no other officially supported installation methods.

Configuration

There is no configuration for this extension. The integrations only trigger if you actually define a form in the templates you override from EXT:news and this form will contain all your configuration.

To consume TypoScript variables in your form such variables *must be addded to the plugin.tx_news.settings scope - which is already where you would define variables you would use as {settings} in your EXT:news templates, including additional variables beyond those EXT:news defines.

How to use the feature

The integration works by making a connection between the template file that would be rendered by the plugin instance and the form that is displayed in the "Plugin options" FlexForm field - which then allows Flux to read a flux:form if one is defined in the template.

This means that your point of integration is your overridden templates which you added to the template paths of EXT:news just like you normally would. This also means that you must override the controller template if for example you need the variable in a Partial template rendered via that controller action. In other words: you cannot define a flux:form in a Partial template or a Layout - it must be in one of the List.html, Detail.html etc. templates.

Once the flux:form is defined this integration will automatically add the sheets/fields you define inside that flux:form to the data structure provided by EXT:news. The merging is done by recursively replacing any existing fields, e.g. if you define a sheet or field that exists in the default data structure then that sheet or field is overridden with the one you define.

Example

An example flux:form integrated into the List.html template to allow selecting a CSS class name:

{namespace n=GeorgRinger\News\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
<f:layout name="General" />
<!--
	=====================
    Templates/News/List.html
-->

<f:section name="Configuration">
	<flux:form id="extended">
	    <flux:form.sheet name="extended" label="Extended fields">
		    <flux:field.select name="settings.myCssClass" label="Special CSS class"
		                       items="normal,special,awesome" />
        </flux:form.sheet>
	</flux:form>
</f:section>

<f:section name="content">
    <div class="{settings.myCssClass}">
        ...
    </div>
</f:section>

To briefly explain this template:

  • The Configuration section is added to an overridden template
  • Configuration section has a flux:form is added which has a single sheet named/labeled "Extended fields"
  • The variable editors will enter in this field can then be used in the standard output section

All features known from the Flux ViewHelper API can be used and will behave in the same way you are used to from extensions such as fluidcontent and fluidpages.

namelesscoder/newsflux 适用场景与选型建议

namelesscoder/newsflux 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 09 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「extension」 「news」 「flux」 「typo3」 「fluid」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 namelesscoder/newsflux 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 namelesscoder/newsflux 我们能提供哪些服务?
定制开发 / 二次开发

基于 namelesscoder/newsflux 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-09-12