Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Change folder of asset path in _config.php


Reply


2 Posts   837 Views

Avatar
Bundschuh

Community Member, 10 Posts

8 March 2012 at 5:49am

Edited: 08/03/2012 5:50am

Is it possible to change the asset path with a static setter of a class in the _config.php?
I imaging something like:

SomeSneakyAssetClass::set_root_path('/webroot/fileadmin/');

TIA Bundschuh

Avatar
novaweb

Community Member, 115 Posts

8 March 2012 at 9:15am

Not an answer but related: http://www.silverstripe.org/general-questions/show/7393