[gelöst] Inhaltstypen klonen – gibt es ein Modul?
Eingetragen von wrestler (216)
am 07.02.2012 - 10:14 Uhr in
am 07.02.2012 - 10:14 Uhr in
Guten Tag
Ich möchte eine Menge Inhaltstypen klonen, gibts hierfür ein Modul oder sonst einen Trick?
The Wrestler
- Anmelden oder Registrieren um Kommentare zu schreiben
Modul "Bundle copy"
am 07.02.2012 - 10:33 Uhr
Damit geht's per Copy&Paste (auch gut für Sicherungskopien oder zum Übertragen von Inhaltstypen auf eine andere Installation).
http://drupalmodules.com/module/bundle-copy
(Dort lohnt auch immer ein Blick auf die "Related Modules".)
PS:
Bei zu vielen nahezu identische Inhaltstypen in einer Installation solltest du dir vielleicht überlegen, die Differenzierung anders hinzukriegen, z.B. mit Taxonomie.
Vielen Dank! Habe das Modul
am 07.02.2012 - 11:57 Uhr
Vielen Dank! Habe das Modul installiert. Wenn ich einen Inhaltstyp exportiere, kommt eine Fehlermeldung:
Notice: Undefined variable: output in ctools_var_export() (line 837 of /var/www/web165/html/drupal/sites/all/modules/ctools/includes/export.inc).
Weisst du, woran das liegen könnte?
Kein Bug vom Modul
am 07.02.2012 - 14:24 Uhr
Kommt bei mir auch, scheint aber kein Bug vom Modul zu sein, und der Export und Import funktionieren: http://drupal.org/node/1341082
Kannst du also einfach ignorieren.
Ok. Demnach verhalt ich mich
am 07.02.2012 - 15:03 Uhr
Ok. Demnach verhalt ich mich wohl etwas ungeschickt, d.h. wie muss ich beim Klonen genau vorgehen?
So hab ichs gemacht: exportieren > Code kopiert > Importieren > Code eingefügt und importiert.
Dabei hats mir aber den bisherigen Contenttyp überschrieben und war somit gleich weit.
Vor Import umbenennen
am 07.02.2012 - 18:24 Uhr
sollte klappen ...
Es kommt schon die Meldung,
am 07.02.2012 - 18:28 Uhr
Es kommt schon die Meldung, dass alles geklappt hat… bei mir gibts dann aber keinen neuen Inhaltstyp…
Alten Inhaltstyp umbenennen
am 07.02.2012 - 21:20 Uhr
Sonst probier doch mal, den vorhandenen Inhaltstyp umzubenennen, ehe du den Klon importierst.
[gelöst] Habs nun geschafft.
am 23.02.2012 - 15:03 Uhr
[gelöst] Habs nun geschafft. Habe den Inhlaltstyp-Titel im Texteditor mit Suchen/Ersetzen geändert… funktioniert. Vielen Dank. Das Modul ist eine grosse Hilfe!
Bitte im ersten Posting als [gelöst] markieren
am 24.02.2012 - 08:54 Uhr
Vielen Dank!
Bundle copy
am 24.02.2012 - 19:32 Uhr
Hallo,
habe versucht mit dem Modul Bundle Copy meine Media-Gallery zu klonen. Leider hat das überhaupt nicht funktioniert sondern nur einen Mega Crash verursacht.
Der Inhaltstyp sieht folgendermaßen aus
was muß ich an der Exportdatei genau ändern um diesen Inhaltstyp zu klonen und die gleichen Eigenschaften wie Access control usw. nutzen zu können
Du musst mit Suchen/Ersetzen
am 25.02.2012 - 10:43 Uhr
Du musst mit Suchen/Ersetzen den Namen deines Inhaltstypen ändern. Beispiel von mir: news (bestehender Inhaltstyp) > news_intern (neuer Inhaltstyp), danach unter Importieren einfügen.
Bundle Copy
am 25.02.2012 - 12:24 Uhr
also bei mir will es nicht funktionieren. Nach dem Importieren wird angezeigt das der Import erfolgreich war. Aber es gibt keinen neuen Inhaltstypen!
So sieht bei mir der originale Inhaltstyp aus.
habe schon alles mögliche versucht mit suchen und ersetzen alles umzubenennen. Abers scheinbar mache ich da jedesmal Fehler. Kann mir jemand sagen wo genau ich umbenennen muss und wo nicht. Wie schon gesagt es handelt sich ja eigentlich um ein komplettes Modul das diesen Inhaltstyp erzeugt hat. Und ich möchte dieses Modul klonen da es keine Möglochkeit gibt bei neu angelegten Gallerien auszuwählen wer was sehen darf. Das geht nur für die gesamte Gallerie mit Acces Control.
und hier ist der gesamte Code der Exportdatei,
------------------------------------------------------------------------
$data = array(
'bundles' => array(
'media_gallery' => (object) array(
'type' => 'media_gallery',
'name' => 'Bildergalerie',
'base' => 'media_gallery',
'module' => 'media_gallery',
'description' => 'Bildergalerie für den Offenen Bereich (allle können diese Bilder sehen)',
'help' => 'Zuerst eine neue Bildergalerie erstellen Titel vergeben z.B.( 01.03.2012 B3-Wohnungsbrand o.Ä.) und speichern.
Anschließend auf der neu aufmachenden Seite add Media auswählen.
Dann können die Bilder von der lokalen Festplatte aus hochgeladen werden. (Achtung Reiter "Sichern" muß ausgewählt sein, sonst wenn Library ausgewählt wurde werden nur die Bilder die schon auf dem Server liegen angezeigt)',
'has_title' => '1',
'title_label' => 'Title',
'custom' => '0',
'modified' => '1',
'locked' => '1',
'disabled' => FALSE,
'orig_type' => 'media_gallery',
'disabled_changed' => FALSE,
'bc_entity_type' => 'node',
),
),
'fields' => array(
'media_gallery_allow_download' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_allow_download_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_allow_download' => array(
'value' => 'media_gallery_allow_download_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_allow_download' => array(
'value' => 'media_gallery_allow_download_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_allow_download',
'type' => 'list_boolean',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_block_columns' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_block_columns_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_block_columns' => array(
'value' => 'media_gallery_block_columns_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_block_columns' => array(
'value' => 'media_gallery_block_columns_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_block_columns',
'type' => 'list_float',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'float',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_block_rows' => array(
'entity_types' => array(),
'translatable' => '0',
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_block_rows' => array(
'value' => 'media_gallery_block_rows_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_block_rows' => array(
'value' => 'media_gallery_block_rows_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(),
'field_name' => 'media_gallery_block_rows',
'type' => 'number_integer',
'module' => 'number',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_collection' => array(
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'gallery_collections',
'parent' => 0,
),
),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_collection' => array(
'tid' => 'media_gallery_collection_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_collection' => array(
'tid' => 'media_gallery_collection_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'media_gallery_collection',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_columns' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_columns_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_columns' => array(
'value' => 'media_gallery_columns_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_columns' => array(
'value' => 'media_gallery_columns_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_columns',
'type' => 'list_float',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'float',
'not null' => FALSE,
),
),
'bundles' => array(
'taxonomy_term' => array(
0 => 'gallery_collections',
),
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_description' => array(
'entity_types' => array(),
'translatable' => '0',
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_description' => array(
'value' => 'media_gallery_description_value',
'format' => 'media_gallery_description_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_description' => array(
'value' => 'media_gallery_description_value',
'format' => 'media_gallery_description_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'media_gallery_description',
'type' => 'text_long',
'module' => 'text',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_expose_block' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_expose_block_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_expose_block' => array(
'value' => 'media_gallery_expose_block_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_expose_block' => array(
'value' => 'media_gallery_expose_block_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_expose_block',
'type' => 'list_boolean',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_format' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_format_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_format' => array(
'value' => 'media_gallery_format_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_format' => array(
'value' => 'media_gallery_format_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_format',
'type' => 'list_text',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_image_info_where' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_image_info_placement_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_image_info_where' => array(
'value' => 'media_gallery_image_info_where_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_image_info_where' => array(
'value' => 'media_gallery_image_info_where_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_image_info_where',
'type' => 'list_text',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'taxonomy_term' => array(
0 => 'gallery_collections',
),
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_lightbox_extras' => array(
'settings' => array(
'allowed_values_function' => '_media_gallery_get_lightbox_extras_values',
'allowed_values' => array(),
),
'entity_types' => array(),
'translatable' => '0',
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_lightbox_extras' => array(
'value' => 'media_gallery_lightbox_extras_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_lightbox_extras' => array(
'value' => 'media_gallery_lightbox_extras_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'media_gallery_lightbox_extras',
'type' => 'list_boolean',
'module' => 'list',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_media' => array(
'entity_types' => array(),
'translatable' => '0',
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_media' => array(
'fid' => 'media_gallery_media_fid',
'title' => 'media_gallery_media_title',
'data' => 'media_gallery_media_data',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_media' => array(
'fid' => 'media_gallery_media_fid',
'title' => 'media_gallery_media_title',
'data' => 'media_gallery_media_data',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'field_name' => 'media_gallery_media',
'type' => 'media',
'module' => 'media',
'active' => '1',
'locked' => '1',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'fid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'data' => array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
),
),
'bundles' => array(
'node' => array(
0 => 'media_gallery',
),
),
),
'media_gallery_rows' => array(
'entity_types' => array(),
'translatable' => '0',
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_media_gallery_rows' => array(
'value' => 'media_gallery_rows_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_media_gallery_rows' => array(
'value' => 'media_gallery_rows_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(),
'field_name' => 'media_gallery_rows',
'type' => 'number_integer',
'module' => 'number',
'active' => '1',
'locked' => '1',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
),
),
'bundles' => array(
'taxonomy_term' => array(
0 => 'gallery_collections',
),
'node' => array(
0 => 'media_gallery',
),
),
),
),
'instances' => array(
'media_gallery_allow_download' => array(
0 => array(
'label' => 'Allow downloading of the original image',
'description' => 'Display a "download original image" link',
'default_value' => array(
0 => array(
'value' => 1,
),
),
'widget' => array(
'type' => 'options_onoff',
'settings' => array(
'display_label' => 0,
),
'weight' => 7,
'module' => 'options',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 8,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 8,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 8,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 8,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'required' => FALSE,
'field_name' => 'media_gallery_allow_download',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_block_columns' => array(
0 => array(
'label' => 'Number of columns',
'default_value' => array(
0 => array(
'value' => 2,
),
),
'required' => TRUE,
'widget' => array(
'type' => 'options_select',
'settings' => array(),
'weight' => 9,
'module' => 'options',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 10,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 10,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 10,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 10,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'description' => '',
'field_name' => 'media_gallery_block_columns',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_block_rows' => array(
0 => array(
'label' => 'Number of rows',
'default_value' => array(
0 => array(
'value' => 3,
),
),
'required' => TRUE,
'settings' => array(
'min' => 1,
'max' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'type' => 'number',
'settings' => array(),
'weight' => 10,
'module' => 'number',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 11,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 11,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 11,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 11,
),
),
'description' => '',
'field_name' => 'media_gallery_block_rows',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_collection' => array(
0 => array(
'label' => 'Gallery collection',
'default_value' => array(
0 => array(
'tid' => '17',
),
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 12,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 12,
),
'full' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'type' => 'options_select',
'settings' => array(),
'weight' => 11,
'module' => 'options',
),
'required' => FALSE,
'description' => '',
'field_name' => 'media_gallery_collection',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_columns' => array(
0 => array(
'label' => 'Number of columns',
'default_value' => array(
0 => array(
'value' => 4,
),
),
'required' => TRUE,
'widget' => array(
'type' => 'options_select',
'settings' => array(),
'weight' => 4,
'module' => 'options',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 5,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 5,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 5,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 5,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'description' => '',
'field_name' => 'media_gallery_columns',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_description' => array(
0 => array(
'label' => 'Beschreibung',
'widget' => array(
'type' => 'text_textarea',
'settings' => array(
'rows' => 4,
),
'weight' => 0,
'module' => 'text',
),
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'type' => 'text_default',
'label' => 'hidden',
'weight' => 0,
'settings' => array(),
'module' => 'text',
),
'full' => array(
'type' => 'text_default',
'label' => 'hidden',
'weight' => 0,
'settings' => array(),
'module' => 'text',
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'weight' => 0,
'settings' => array(),
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'weight' => 0,
'settings' => array(),
),
),
'required' => FALSE,
'description' => '',
'default_value' => NULL,
'field_name' => 'media_gallery_description',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_expose_block' => array(
0 => array(
'label' => 'Create a block of most recently added media',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'widget' => array(
'type' => 'options_onoff',
'settings' => array(
'display_label' => 0,
),
'weight' => 8,
'module' => 'options',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 9,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 9,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 9,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 9,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'required' => FALSE,
'description' => '',
'field_name' => 'media_gallery_expose_block',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_format' => array(
0 => array(
'label' => 'Gallery format',
'required' => TRUE,
'default_value' => array(
0 => array(
'value' => 'lightbox',
),
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 3,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 3,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 3,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 3,
),
),
'widget' => array(
'type' => 'options_buttons',
'settings' => array(),
'weight' => 2,
'module' => 'options',
),
'settings' => array(
'user_register_form' => FALSE,
),
'description' => '',
'field_name' => 'media_gallery_format',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_image_info_where' => array(
0 => array(
'label' => 'Media information',
'required' => TRUE,
'default_value' => array(
0 => array(
'value' => 'hover',
),
),
'widget' => array(
'type' => 'options_select',
'settings' => array(),
'weight' => 6,
'module' => 'options',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 7,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 7,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 7,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 7,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'description' => '',
'field_name' => 'media_gallery_image_info_where',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_lightbox_extras' => array(
0 => array(
'label' => 'Lightbox title and description',
'description' => 'Show title and description',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'widget' => array(
'type' => 'options_onoff',
'settings' => array(
'display_label' => 0,
),
'weight' => 3,
'module' => 'options',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 4,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 4,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 4,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 4,
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'required' => FALSE,
'field_name' => 'media_gallery_lightbox_extras',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_media' => array(
0 => array(
'label' => 'Gallery media',
'widget' => array(
'type' => 'media_generic',
'settings' => array(
'allowed_types' => array(
'audio' => 'audio',
'image' => 'image',
'video' => 'video',
),
'allowed_schemes' => array(
'public' => 'public',
),
'progress_indicator' => 'throbber',
),
'weight' => 1,
'module' => 'media',
),
'display' => array(
'default' => array(
'type' => 'media_gallery',
'settings' => array(
'file_view_mode' => 'media_gallery_thumbnail',
),
'label' => 'hidden',
'weight' => 2,
'module' => 'media_gallery',
),
'full' => array(
'type' => 'media_gallery',
'settings' => array(
'file_view_mode' => 'media_gallery_thumbnail',
),
'label' => 'hidden',
'weight' => 2,
'module' => 'media_gallery',
),
'teaser' => array(
'type' => 'media_gallery',
'settings' => array(
'file_view_mode' => 'media_gallery_collection_thumbnail',
),
'label' => 'hidden',
'weight' => 2,
'module' => 'media_gallery',
),
'media_gallery_block' => array(
'type' => 'media_gallery',
'settings' => array(
'file_view_mode' => 'media_gallery_block_thumbnail',
),
'label' => 'hidden',
'weight' => 2,
'module' => 'media_gallery',
),
),
'settings' => array(
'file_extensions' => 'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp mp3 mov m4v mp4 mpeg avi ogg wmv ico',
'user_register_form' => FALSE,
),
'required' => FALSE,
'description' => '',
'field_name' => 'media_gallery_media',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
'media_gallery_rows' => array(
0 => array(
'label' => 'Number of rows',
'default_value' => array(
0 => array(
'value' => 3,
),
),
'settings' => array(
'min' => '1',
'max' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'required' => TRUE,
'widget' => array(
'type' => 'number',
'settings' => array(),
'weight' => 5,
'module' => 'number',
),
'display' => array(
'default' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 6,
),
'full' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 6,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 6,
),
'media_gallery_block' => array(
'type' => 'hidden',
'label' => 'hidden',
'settings' => array(),
'weight' => 6,
),
),
'description' => '',
'field_name' => 'media_gallery_rows',
'entity_type' => 'node',
'bundle' => 'media_gallery',
'deleted' => '0',
),
),
),
);
Modul klonen
am 25.02.2012 - 16:37 Uhr
Wie schon gesagt es handelt sich ja eigentlich um ein komplettes Modul das diesen Inhaltstyp erzeugt hat. Und ich möchte dieses Modul klonen da es keine Möglichkeit gibt bei neu angelegten Gallerien auszuwählen wer was sehen darf. Das geht nur für die gesamte Gallerie mit Acces Control.)
Dann würde ich lieber das Modul klonen. Auch dort müsstest du den Namen des Moduls an allen Stellen ändern. Elegant ist das allerdings nicht. Kannst du nicht die Zugriffskontrolle anders lösen? Zum Beispiele über Taxonomie?
http://drupalmodules.com/module/taxonomy-access-control
Modul klonen
am 26.02.2012 - 16:51 Uhr
habe Taxonomy access installiert weiß aber jetzt nicht wie ich damit das Modul media gallery so konfigurieren kann das man verschieden Gruppen Bilder sehen lassen kann und andere nicht.
Hab ein taxonomy acces die Berechtigungen alle gestzt, aber wenn ich eine neue Bildergalerie erstellen will taucht nirgends eine Auswahl auf das ich diese Galerie als intern oder offen konfigurieren kann.
Gibt es zu diesem Modul irgendwo eine deutsche Anleitung?
Alternativ würde ich ja das Modul Media Gallery klonen wollen da kann ich ja die Zugriffsrechte setzten aber leider weiß ich nicht wie man ein komplettes Modul klont. Habe schon viel dazu gesucht aber noch nichts gefunden was funktioniert.