techdivision/card
Composer 安装命令:
composer require techdivision/card
包简介
Card / Teaser NodeTypes for Neos CMS - Content Cards (edit in-place), Document Cards (reference to a document) and Social Cards (links to external websites)
关键字:
README 文档
README
Available Card Packages
Card - the basics
Card decks - aggregate cards beautifully
Card shuffle - deck filtering
Bootstrap 4 styling for cards
Materialize styling for cards
TechDivision.Card - Cards for structuring information
Use this package if you
- only want the very basic card features
- know how to apply css classes and styling on your own
Cards are one of the primary means of structuring information on a website clearly, distinctly and mobile-friendly. They actually are the modern way of what has been called "teaser", "box" et al. in the past. This package integrates cards into neos in a way that is easy to use and splitted into some packages, so that you only have to install what you need.
Resources:
https://material.io/components/cards
https://materializecss.com/cards.html
For editors
When installed, TechDivision.Card comes with two new NodeTypes - and a new editing mode.
Content Cards
Content Cards are plain content NodeTypes. They are not for reuse but have a card look and feel.
It can be used e.g. to show different product features.

Document Cards
Document Cards are basically references to other pages and are highly reusable.
You cannot edit information here, but in the document itself.
This can be easily used to improve in-site-navigation by putting together document cards
that introduce your products and link to them on different places within your website -
but keep your data centralized.

Social Cards
Social Cards are links to other websites that carry either opengraph or twittercard meta information.
The card will display an image, title and description and link over to the page.
We do not set target _blank, but we do add a noopener attribute if you plan to add a target yourself.
You can easily use this to link to newspapers, github or other pages connected with your website.

Card Mode
In order to edit your cards, there is a new editing mode where you can preview your document card
in different sizes.

For Developers
Installation
TechDivision.Card is available via packagist. Add "techdivision/card" : "~1.0" to the require section of the composer.json
or run composer require techdivision/card.
This only installs the very basic card features. If you dont know what you do, we recommend using one of the other card packages instead.
Configuration
There is not much to configure, as TechDivision.Card runs out of the box. A few options are:
NodeTypes Diagramm
This is an overview over the NodeTypes and how they work together:

Adding/Removing the CardMixin
By default, we add the Mixin to Neos.NodeTypes:Page - so that you can start working.
If you do not want this behavior, use the following code:
Neos.NodeTypes:Page:
superTypes:
'TechDivision.Card:CardMixin': false
If you have your own Document NodeType, add the Mixin as follows:
Your.Awesome.Package:SpecialDocumentNode:
superTypes:
'TechDivision.Card:CardMixin': true
'TechDivision.Card:Constraint.Card.Document': true
The NodeType TechDivision.Card:Constraint.Card.Document is used for references and other constraints.
Add your own CardMode stylesheets
The CardMode contains very basic styling. Feel free to add your own:
prototype(TechDivision.Card:CardModePage) {
head.stylesheets.cardModeStylesheet.stylesheet.path = 'resource://Your.Awesome.Package/Public/Styles/CardMode.css'
}
Develop your own styles
We added a set of afx-augmenters that you can use to easily change card styles.
Best practice is to create your own package that overrides styles and components as you need.
Put your techdivision/card* dependencies into that package's composer.json.
Contribution
We will be happy to receive pull requests - dont hesitate!
techdivision/card 适用场景与选型建议
techdivision/card 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.95k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2019 年 10 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「filter」 「card」 「Neos」 「teaser」 「nodetypes」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 techdivision/card 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 techdivision/card 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 techdivision/card 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An improved history backend module for Neos
Nova searchable filter for belongsTo relationships.
Create link to static resources with cache-breaking segment based on md5 of the file
Settings Card for Laravel Nova.
Symfony DataGridBundle
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
统计信息
- 总下载量: 3.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 33
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-10-04

