Hi

i would to make an installation profile for D6 and i start a .profile file like this as default :

function site_profile_modules() {
  return array(
  //Core
  'color', 'comment', 'help', 'menu', 'taxonomy', 'dblog','locale',
  //Admin
  'admin', 'admin_theme', 'admin_menu', 'delegate_menu_admin', 'backup_migrate', 'rubik', 'tao',
  //Editor
  'fckeditor',
  //SEO
  'globalredirect', 'pathauto', 'google_analytics', 'robotstxt', 'xmlsitemap', 'nodewords',
  //CCK
  'cck', 'viewfield','imagefield', 'emfield', 'node_export', 'filefield',
  //Views
  'views', 'viewreference', 'better_exposed_filters', 'conditional_fields', 'views_bulk_operations', 'views_slideshow',
  //Formulaires - Image
  'image', 'imageapi', 'imagecache', 'webfm', 'webform', 'media_youtube', 'media_vimeo',
  //Taxonomie
  'taxonomy_csv','taxonomy_export','taxonomy_redirect','term_display',
  //UI
  'workspace','workflow','user_import',
  //Divers
'ctools','jquery_ui','mollom','transliteration','menu_breadcrumb','quicktabs','date','custom_search','jquery_update','token','l10n_update',  
  );
}

but system say that modules are missing instead of they are present...i try my profile on multisite install, perhaps there is an issue, but i don't believe it, because system discover modules and other not,like CCK...

then i would to create some content types with custom fields at install, what is the right syntax for ? this is what i try from cck export after regular text from default :

$content['fields']  = array (
  0 => 
  array (
    'label' => 'Joindre un fichier',
    'field_name' => 'field_fichier_joint_lycee',
    'type' => 'filefield',
    'widget_type' => 'filefield_widget',
    'change' => 'Modifier les informations de base',
    'weight' => '5',
    'file_extensions' => 'pdf',
    'progress_indicator' => 'bar',
    'file_path' => 'documents/lycee/[site-date-yyyy]/[site-date-ww]',
    'max_filesize_per_file' => '3M',
    'max_filesize_per_node' => '6M',
    'description' => 'Ajouter ici les fichiers pdf utiles au contenu',
    'group' => false,
    'required' => 0,
    'multiple' => '5',
    'list_field' => '0',
    'list_default' => 1,
    'description_field' => '1',
    'op' => 'Enregistrer les paramètres du champ',
    'module' => 'filefield',
    'widget_module' => 'filefield',

thanks for help because i find different ways to write syntax and not sure what is the one.

Comments

aiphes’s picture

i test my profile on multisite install on lamp ubuntu and i've this message :

The cck module is required but was not found. Please move it into the modules subdirectory.

The cck module is in /sites/all/modules and i want to install D6 in /sites/website.dev (virtual host) but i don't think it's the issue, i think about a permission issue on LAMP but not sure and no way to fix it with permission changing on cck folder..so what's could be wrong ?

thanks

Dev Server Shared Hosting
8 websites powered by drupal 6,8 & 9 - Hosted by Always Data