Sfoglia il codice sorgente

pa #670: deplacement des fichiers dans files/fgcf

- champ prestataire/logo
- champ thematique/logo
- pas de migration automatique des champs existants
FGM 13 anni fa
parent
commit
2befade68b
3 ha cambiato i file con 18 aggiunte e 20 eliminazioni
  1. 2 2
      fgcf.features.content.inc
  2. 15 18
      fgcf.features.inc
  3. 1 0
      fgcf.info

+ 2 - 2
fgcf.features.content.inc

@@ -879,7 +879,7 @@ o|Oui',
     'description_field' => '0',
     'widget' => array(
       'file_extensions' => 'png gif jpg jpeg',
-      'file_path' => '',
+      'file_path' => 'fgcf',
       'progress_indicator' => 'bar',
       'max_filesize_per_file' => '1M',
       'max_filesize_per_node' => '',
@@ -946,7 +946,7 @@ o|Oui',
     'description_field' => '0',
     'widget' => array(
       'file_extensions' => 'png gif jpg jpeg',
-      'file_path' => '',
+      'file_path' => 'fgcf',
       'progress_indicator' => 'bar',
       'max_filesize_per_file' => '',
       'max_filesize_per_node' => '',

+ 15 - 18
fgcf.features.inc

@@ -5,49 +5,46 @@
  */
 function fgcf_imagecache_default_presets() {
   $items = array(
-    'prestataire_logo_full' => array(
-      'presetname' => 'prestataire_logo_full',
+    'fgcf_theme_logo_liste' => array (
+      'presetname' => 'fgcf_theme_logo_liste',
       'actions' => array(
         '0' => array(
           'weight' => '0',
           'module' => 'imagecache',
           'action' => 'imagecache_scale',
           'data' => array(
-            'width' => '200',
-            'height' => '200',
+            'width' => '60',
+            'height' => '60',
             'upscale' => 1,
           ),
         ),
       ),
     ),
-    'prestataire_logo_liste' => array(
-      'presetname' => 'prestataire_logo_liste',
+    'prestataire_logo_full' => array(
+      'presetname' => 'prestataire_logo_full',
       'actions' => array(
         '0' => array(
           'weight' => '0',
           'module' => 'imagecache',
           'action' => 'imagecache_scale',
           'data' => array(
-            'width' => '160',
-            'height' => '48',
+            'width' => '200',
+            'height' => '200',
             'upscale' => 1,
           ),
         ),
       ),
     ),
-    'fgcf_theme_logo_liste' => array (
-      'presetname' => 'fgcf_theme_logo_liste',
-      'actions' =>
-      array (
-        0 =>
-        array (
+    'prestataire_logo_liste' => array(
+      'presetname' => 'prestataire_logo_liste',
+      'actions' => array(
+        '0' => array(
           'weight' => '0',
           'module' => 'imagecache',
           'action' => 'imagecache_scale',
-          'data' =>
-          array (
-            'width' => '60',
-            'height' => '60',
+          'data' => array(
+            'width' => '160',
+            'height' => '48',
             'upscale' => 1,
           ),
         ),

+ 1 - 0
fgcf.info

@@ -31,6 +31,7 @@ features[content][] = "fgcf_prestataire-field_fgcf_prestataire_logo"
 features[content][] = "fgcf_thematique-field_fgcf_thematique_logo"
 features[fieldgroup][] = "fgcf_fiche-group_fgcf_fiche_meta"
 features[fieldgroup][] = "fgcf_prestataire-group_prestataire_branding"
+features[imagecache][] = "fgcf_theme_logo_liste"
 features[imagecache][] = "prestataire_logo_full"
 features[imagecache][] = "prestataire_logo_liste"
 features[node][] = "fgcf_fiche"