simonkoehler/textile 问题修复 & 功能扩展

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

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

simonkoehler/textile

Composer 安装命令:

composer require simonkoehler/textile

包简介

Provides a new Markup Code content element and a ViewHelper

README 文档

README

Twitter Follow Donate

Features

  • Provides a new content element of type "Markup" wich lets you create Textile Markup language code
  • Provides a handy ViewHelper to use "<f:textile.parse>" in your own extensions!
  • Based on the "Textile" Markup parser: https://textile-lang.com/
  • Renders shortcodes of internal links to pages!

Screenshots

Official documentation:

You will find the official documentation als in German and Spanish here: https://simon-koehler.com/products/typo3-extensions/textile

Installation

Install the extension by downloading it in the extension manager or on https://extensions.typo3.org/extension/textile/.

Basic configuration

If you want to use the Markup content element:

  • Install the extension
  • Clear caches
  • Include static TypoScript Setup
  • Include Page TS from page properties
  • Create a new content element with the content element wizard

If you want to use the ViewHelper only:

  • Install the extension
  • Clear caches
  • Insert {namespace textile=SIMONKOEHLER\Textile\ViewHelpers} on top of your fluid templates
  • Use the ViewHelper like this: <textile:parse content="{bodytext}"/>

How to insert an internal link

The shortcode function is pretty simple. You can define the page UID of your desired target page, a link title, target and CSS classes. Use the syntax below in your Markup code:

Simple usage: [link:4]
Full parameters: [link:4:Labeltext:_blank:my-css-class]

Frontend output:

<a href="/yourpageslug/" target="_blank" class="my-css-class">Labeltext</a>

How to use the ViewHelper in a Fluid template

{namespace textile=SIMONKOEHLER\Textile\ViewHelpers}
<!-- Minimal ViewHelper usage -->
<textile:parse content="{bodytext}"/>

<!-- Setting a default link text if a link has no text defined -->
<textile:parse content="{bodytext}" defaultLabel="MyLabel"/>

<!-- Disable rendering of links -->
<textile:parse content="{bodytext}" disableLinks="1"/>

Support & Service

If you have any problems with the extension, please let me know! Since this is open source, I only guarantee 100% expert support when I get paid, but I also like to support the community. Please don't hesitate to open an issue here on GitHub or send a message: https://simon-koehler.com/contact

Do you want to learn TYPO3? Here's what you need:

Video Training TYPO3 9 LTS (German language) https://www.digistore24.com/redir/246076/GOCHILLA/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固