2017 © Pedro Peláez
 

neos-package term

Replace occurrences of terms with links to them

image

psmb/term

Replace occurrences of terms with links to them

  • Friday, March 24, 2017
  • by dimaip
  • Repository
  • 1 Watchers
  • 1 Stars
  • 708 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

This package will help you to automatically link all occurrences of your terms within given text. Great for SEO and stuff., (*1)

Usage

1. Install the package

composer require psmb/term

2. Add Psmb.Term:TermMixin to the nodetypes that you want to use as terms

'Your.NodeTypes:Tag':
  superTypes:
    'Psmb.Term:TermMixin': true

3. Process any text you want with Psmb.Term:ReplaceTerms TS object

E.g. if you want terms to be replaced in all Text nodes:, (*2)

prototype(Neos.Neos.NodeTypes:Text) {
    text.@process.replaceTags = Psmb.Term:ReplaceTerms
}

Processor has option absolute which would force creation of absolute uris., (*3)

4. Create term nodes

You may also fill-in their replaceVariants property for alternative spelling variants, separated by comma, supporting regexp, "+" expands into "\w*?". E.g. duck+ matches duck, ducks, ducklings etc., (*4)

The Versions

24/03 2017

dev-master

9999999-dev

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

21/03 2017

3.0.1

3.0.1.0

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

03/03 2017

3.0.0

3.0.0.0

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

01/02 2017

2.0.3

2.0.3.0

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

01/02 2017

2.0.2

2.0.2.0

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

27/12 2016

2.0.1

2.0.1.0

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

19/12 2016

1.0.x-dev

1.0.9999999.9999999-dev

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires

 

19/12 2016

1.0

1.0.0.0

Replace occurrences of terms with links to them

  Sources   Download

MIT

The Requires