New constants? (CMSimple_XH)

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
Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

New constants? (CMSimple_XH)

Post by Gert » Fri Oct 16, 2009 10:59 am

Hallo,

I have thought about 2 new constants:

Code: Select all

define('CMSIMPLE_ROOT', str_replace('/'.$sl.'/', "/", $sn)); //for absolute references
define('CMSIMPLE_BASE', (strtolower($cf['language']['default'])==$sl?'./':'./../')); //for relative references
Normally they should be defined in the cms.php, but if some Plugins or addons use them, they are not available without CMSimple_XH.

Should we define the constants in the index.php of the Pluginloader? So they would be available, if an user of CMSimple 3.2 updates his PL.
Gert Ebersbach | CMSimple | Templates - Plugins - Services

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

Re: New constants

Post by Holger » Fri Oct 16, 2009 11:08 am

Hmm, unsure...

but the 2nd one is definitive unnecessary because it's the same as $pth['folder']['base'] and almost every plugin must globalise $pth.

Holger

Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: New constants

Post by Gert » Fri Oct 16, 2009 11:14 am

Holger wrote:but the 2nd one is definitive unnecessary because it's the same as $pth['folder']['base']
I know, but Markus would like to have more constants ;)
Last edited by Gert on Fri Oct 16, 2009 11:26 am, edited 1 time in total.
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: New constants? (CMSimple_XH)

Post by Gert » Fri Oct 16, 2009 11:23 am

Holger wrote:Hmm, unsure...
I think, the PL will be the central point of CMSimple_XH in the future. The cms.php will be the "basic script" only, the PL will be more important than the cms.php ...
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Post Reply