codeq/replacewithshy

Last activity 11 May 2018 1507
composer require codeq/replacewithshy

Replace || with ­

1.0.2

Version
1.0.2
Type
neos-package
Release Date
Apr 30, 2018 13:22
Source
git
Distribution
zip
Requires
  • neos/neos: ~2.0 || ~3.0 || ~4.0 || dev-master
MIT c26b50d9f08e49dab60a6bc705f2d025217cce06

DEPRECATED IN FAVOR OF carbon/hyphen

Optional word-breaks are hard to enter in Neos CMS. This Neos package provides a helper to replace occurences of || with the Soft hyphen ­.

Thanks jonnitto for developing this code, which I just packaged.

Installation

Most of the time you want to use this package within your site package. Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:

composer require codeq/replacewithshy --no-update

The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilà! Your desired package is now installed correctly.

Usage

  1. Install with composer require codeq/ReplaceWithShy

  2. Wrap any object with ||with &shy to repalace in its output, e.g. you would probably want to normalize full page output like this:

prototype(Page) {
    titleTag.content.@process.shy = CodeQ.ReplaceWithShy:ReplaceWithShy
    body.@process.shy = CodeQ.ReplaceWithShy:ReplaceWithShy
}

License

Licensed under MIT, see LICENSE

The content of the readme is provided by Github
The same vendor provides 28 package(s).