Jump to content

processwire v 3.0.25 InputfieldPageName.module modification not working


Recommended Posts

Posted

Hi,

to enter some character conversion on url for Turkish language i was modifying  InputfieldPageName.module  file.

It was working fine. But on v3 modification of this file not working.

 

        'ź' => 'z',
        'ş' => 's',
        'ğ' => 'g',
        'ı' => 'i',
        'İ' => 'i',

 

i added these characters

when i enter title url become empty character not i instead of ı

 

is it related with .htaccess file ? because i edited it for use utf8 characters like arabic character urls

Posted

Why do you modify core module? You can enter those in the backend on the configuration of this module.

  • Like 2
Posted

from admin panel

modules -> configure -> InputfieldPageName 

 

click on it and its just give info about plugin.

can you sgive me some documentatşon link about this modle configuration

Posted

Now i understand the problem,

when i click on pagename module configuration from admin panel

it says on top :  Character replacements configuration is disabled because $config->pageNameCharset is UTF8.

 

because of that configuration window not opening.

i remove  $config->pageNameCharset line from site/config.php file then it works.

i would like to use both of  them together.

i mean arabic or foreign language characters on url and also modification of some characters like s instead of ş

so, i put  $config->pageNameCharset line again and i add extra characters to $config->pageNameWhitelist.

now:  ş ->ş

desire ş->s

 

 

 

Posted

Using the UTF-8 page-names is exactly for the reason not to replace those characters. There's no option to mix those behaviors by now. 

  • Like 2

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
  • Recently Browsing   0 members

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