2

ユーザーがすべての添付ファイルを 1 つの zip ファイルにダウンロードできるようにする contrib モジュールまたは Drupal オプションはありますか?

4

2 に答える 2

3

This answer is just an add-on to Henrik's (+1), so please accept his in case you will end use the module he suggested... I just needed code formatting, this is why I did not use the comment! :)

From what I understand by inspecting the code only I see that the pclzip_zip_content_files module (one of the submodules of the one previously suggested) does process CCK fields correctly. The option seems however to be available only through some sort of configuration from the module block.

    // manage cck fields
    $form['pclzip_zip_node_files']['pclzip_extra_cck_fields_fieldset'] = array(
      '#type' =>'fieldset',
      '#title' =>t('Extra cck fields'),
      '#collapsible' =>TRUE,
      '#collapsed' =>TRUE,
    );
    $form['pclzip_zip_node_files']['pclzip_extra_cck_fields_fieldset']['pclzip_zip_content_files_extra_cck_fields'] = array(
      '#type'               => 'checkboxes',
      '#title'                => t('CCK Field'),
      '#options'            => pclzip_get_extra_cck_fields(),
      '#default_value'   => variable_get('pclzip_zip_content_files_extra_cck_fields', array()),
      '#description'       => t('Select the CCK field to use.'),
    );

Hope this helps!

于 2009-11-27T16:13:53.450 に答える
2

このためのコアオプションを認識していません。

寄贈されたモジュールについては、pclzip モジュール(サブモジュール付き) を参照してください。まだベータ版ですが、あなたが望むことを約束します。CCK ベースの添付ファイル(filefield/imagefield)で動作するかどうかは不明です。

于 2009-11-27T13:18:00.373 に答える