HI ya,
I’m having a strange issue where some settings in the upload_preferences config array are not applied.
I am using the NSM bootstrap for my site config.
Here is my upload_preferences declaration:
'upload_preferences' => array(
array(
'name'=>'Tiles',
'server_path'=> NSM_BASEPATH . '/uploads/tiles/',
'url'=> NSM_SITE_URL . '/uploads/tiles/'
),
array(
'name'=>'Products',
'server_path'=> NSM_BASEPATH . '/uploads/products/',
'url'=> NSM_SITE_URL . '/uploads/products/'
),
array(
'name'=>'Files',
'server_path'=> NSM_BASEPATH . '/uploads/files/',
'url'=> NSM_SITE_URL . '/uploads/files/'
),
),in the CP the Products(id 1), Files(id 2) load fine - but Tiles(id 3) is not applied (database value is loaded).
If I change the order of the array in upload_preferences, then all sorts of stuff goes wrong in the CP. for e.g. both Files & Tiles are labeled as Tiles.
Is anyone else having issues like this?
Cheers