Quote in the title of the pages

Allgemeines
Post Reply
Doc
Posts: 31
Joined: Fri 25. Dec 2015, 09:20

Quote in the title of the pages

Post by Doc » Mon 8. Feb 2021, 15:38

Hello

I have a problem with the quote in the title of the pages.
For example with a page title: Caroline's farm, I have in pagedata.php:

Code: Select all

$page_data[]['url'] = 'Caroline-%23039%3Bs-farm';
and calling the url gives my website:

Code: Select all

/?Caroline-#039;s-farm
However, I use in the language file $tx['urichar'] to transform the quote into - (and as a word separator -)
How to avoid this transformation of the code?

This by working with Pagemanager.

Cordially Daniel.

Doc
Posts: 31
Joined: Fri 25. Dec 2015, 09:20

Re: Quote in the title of the pages

Post by Doc » Mon 8. Feb 2021, 16:02

I finally put at the beginning tx['urichar'][] in the language file:

Code: Select all

$tx['urichar']['org']="#039;,...";

Code: Select all

$tx['urichar']['new']=",...";

Gert
Posts: 1531
Joined: Sun 18. Nov 2012, 14:18

Re: Quote in the title of the pages

Post by Gert » Mon 8. Feb 2021, 17:27

Hello,

I tried it in a testpage - no problems:

https://www.ge-webdesign.de/test53/

But I did not play around with $tx['urichar']['org'] or $tx['urichar']['new'] ...

Gert

=================================

PS: Here are my pagedata:

Code: Select all

################## Page Data ############
$page_data[0]['url'] = 'Welcome_to_CMSimple_5';
$page_data[0]['last_edit'] = '1591877609';
$page_data[0]['description'] = 'Caroline\'s farm';
$page_data[0]['keywords'] = '';
$page_data[0]['title'] = 'Caroline\'s farm';
$page_data[0]['robots'] = '';
$page_data[0]['heading'] = 'Caroline\'s farm';
$page_data[0]['show_heading'] = '1';
$page_data[0]['template'] = '0';
$page_data[0]['published'] = '1';
$page_data[0]['show_last_edit'] = '0';
$page_data[0]['linked_to_menu'] = '1';
$page_data[0]['header_location'] = '';
$page_data[0]['use_header_location'] = '0';
$page_data[0]['csrf_token'] = '60215e4fbde969.64761570';
$page_data[0]['sitetitle'] = 'Caroline\'s farm';
$page_data[0]['show_sitetitle'] = '1';

//----------
$page_data[1]['url'] = 'Caroline%27s_Farm';
$page_data[1]['last_edit'] = '1612800877';
$page_data[1]['description'] = 'Caroline\'s Farm';
$page_data[1]['keywords'] = '';
$page_data[1]['title'] = 'Caroline\'s Farm';
$page_data[1]['robots'] = '';
$page_data[1]['heading'] = '';
$page_data[1]['show_heading'] = '0';
$page_data[1]['template'] = '0';
$page_data[1]['published'] = '1';
$page_data[1]['show_last_edit'] = '0';
$page_data[1]['linked_to_menu'] = '1';
$page_data[1]['header_location'] = '';
$page_data[1]['use_header_location'] = '0';
$page_data[1]['sitetitle'] = 'Caroline\'s Farm';
$page_data[1]['show_sitetitle'] = '1';
$page_data[1]['csrf_token'] = '6021647e6c7f63.19065333';

...
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Doc
Posts: 31
Joined: Fri 25. Dec 2015, 09:20

Re: Quote in the title of the pages

Post by Doc » Mon 8. Feb 2021, 18:03

I don't know what to tell you. I just installed the version offered for download.
I changed the title of the Welcome to CMSimple 5 page to Welcome to CMSimple'5 and I have the problem explained above.
This by working with Pagemanager.
Daniel

Gert
Posts: 1531
Joined: Sun 18. Nov 2012, 14:18

Re: Quote in the title of the pages

Post by Gert » Mon 8. Feb 2021, 18:30

Doc wrote:
Mon 8. Feb 2021, 18:03
This by working with Pagemanager.
Ok - now I see. I thought you have set an alternateve Pagetitle by pagedata-tab.

You are right - it's not a nice URL. I will have a look for a solution,

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Gert
Posts: 1531
Joined: Sun 18. Nov 2012, 14:18

Re: Quote in the title of the pages

Post by Gert » Mon 8. Feb 2021, 19:42

Hi Doc,

your solution with $tx['urichar'][...] seems to be the best. I use the complete ' (with &):

Code: Select all

$tx['urichar']['org']="',...";
But in your case, I'm not sure, if it is necessary:

That is => That's
I am => I'm

But:

The Farm of Caroline => Carolines Farm

So it is in German,

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Doc
Posts: 31
Joined: Fri 25. Dec 2015, 09:20

Re: Quote in the title of the pages

Post by Doc » Mon 8. Feb 2021, 21:13

I think the right solution is with the &

Code: Select all

$tx['urichar']['org']="',...";
In my case, it actually works with or without the & (it all depends on what you write after in $tx['urichar']['org'] and $tx['urichar']['new']
Daniel.

Post Reply