codeq / replacewithshy
Replace || with ­
Installs: 1 508
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/neos: ~2.0 || ~3.0 || ~4.0 || dev-master
This package is auto-updated.
Last update: 2024-11-08 07:36:15 UTC
README
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
-
Install with
composer require codeq/ReplaceWithShy
-
Wrap any object with
||
with­
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