XH 1.6: $tx[meta][codepage]

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

XH 1.6: $tx[meta][codepage]

Post by cmb » Tue Nov 06, 2012 11:00 am

Hello Community,

since CMSimple_XH 1.5 $tx[meta][codepage] has to be "UTF-8". Otherwise saving from the editor will fail, if non UTF-8 characters are contained in the page heading. In CMSimple_XH 1.5 a check is made, if $tx[meta][codepage] is UTF-8.

I suggest removing this option from the language files for XH 1.6. As it might be used by plugins, we can define it hard coded after inclusion of the language file in cms.php, and suppress it for Settings->Language.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: XH 1.6: $tx[meta][codepage]

Post by Tata » Tue Nov 06, 2012 1:22 pm

+1
Maybe there are more variables still remaining which could eventually be hardcoded?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: XH 1.6: $tx[meta][codepage]

Post by cmb » Tue Nov 06, 2012 2:09 pm

Tata wrote:Maybe there are more variables still remaining which could eventually be hardcoded?
While working on my branch for 1.6 (that will only be a suggestion for a cleaning step, before proceeding with new features), I've already removed $cf[plugins][folder] and $cf[functions][file] completely. $cf[scripting][regexp] should probably be hardcoded (might be used by plugins). I assume nobody has ever changed these config options--at least I don't see any reason to make this configurable.
Christoph M. Becker – Plugins for CMSimple_XH

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: XH 1.6: $tx[meta][codepage]

Post by Holger » Tue Nov 06, 2012 3:17 pm

cmb wrote:I suggest removing this option from the language files for XH 1.6. As it might be used by plugins, we can define it hard coded after inclusion of the language file in cms.php, and suppress it for Settings->Language.
+1
cmb wrote:I've already removed $cf[plugins][folder] and $cf[functions][file] completely
+1
cmb wrote:$cf[scripting][regexp] should probably be hardcoded (might be used by plugins)
+1

Holger

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: XH 1.6: $tx[meta][codepage]

Post by cmb » Tue Nov 06, 2012 3:29 pm

Please note that the general issue of removing/hardcoding config options is related to svasti's suggestion to hide some options: http://cmsimpleforum.com/viewtopic.php? ... 009#p29897.
Christoph M. Becker – Plugins for CMSimple_XH

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: XH 1.6: $tx[meta][codepage]

Post by Holger » Wed Nov 07, 2012 11:06 am

Hi Christoph,
cmb wrote:While working on my branch for 1.6
Today I had a first look at your branch:
Whow! That cleanup looks very promising :!:

KR
Holger

Post Reply