Jump to content

Replacing "+" in InputfieldPageName


doolak
 Share

Recommended Posts

Hi there,

I tried to enter a replacement for the character "+" in the module settings of InputfieldPageName, but this does not work.

Did I make something wrong or does anything speak against replacing the "+" character?

Cheers, Christian

Link to comment
Share on other sites

+ is not allowed in a page name.

Yes, of course it is not allowed. When you use a "+" in the title, it is replaced by a "-" in the page name, e.g:

Page title: test 123+456

Page name: test-123-456

I would like to have the "+" replaced by something else, so I have added this in the module settings:

+=plus

In the same way I have changed the german umlauts:

ä=ae

ü=ue

ß=sz

The Umlauts work fine, but to replace the "+" does not work.

Link to comment
Share on other sites

Guess the replacing takes happen before your's, and when it's replace in js it isn't there anymore so you can't overwrite it. There's no way around other than changing the core js, or trying hook (js) into input blur somehow before page name js does its work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...