flownative/anchorlinks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

flownative/anchorlinks

最新稳定版本:2.0.1

Composer 安装命令:

composer require flownative/anchorlinks

包简介

Create links to headlines or sections in Neos

README 文档

README

MIT license Packagist Maintenance level: Friendship

Flownative.Anchorlinks

Create anchor links to any content element on the page.

Setup

composer require 'flownative/anchorlinks'

Add the Flownative.Anchorlinks:AnchorMixin mixin to any nodetype that you would want to link to.

E.g. this code will add such ability to every Content nodetype:

'Neos.Neos:Content':
  superTypes:
    'Flownative.Anchorlinks:AnchorMixin': true

Add the Flownative.Anchorlinks:AnchorWrapper processor to the same nodetype renderer to insert an anchor tag with the given id before it.

E.g.:

prototype(Neos.Neos:Content) {
    @process.prependAnchor = Flownative.Anchorlinks:AnchorWrapper
}

Usage

Choose some content node that you would like to link to, and fill in the sectionId property in the inspector.

After that you will see a button appear below the field to copy the link to this node to the clipboard.

When you click that button, the link to the given node will be copied to the clipboard. Paste it in the "insert link" field in Aloha editor and you are done!

统计信息

  • 总下载量: 124.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 5
  • Forks: 7
  • 开发语言: JavaScript

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2016-11-02