multiple select node reference?

I have created two content types: 1. Album and 2.Images.
The 'images' content type has a node reference to 'album' content type.
The problem is 'Album' content type is multilingual whereas 'Images' content type is language neutral.

So, I need to link Images with two albums (for two languages).
By default, the dropdown list of node reference also depends on the current language, which makes it impossible to link images with two albums(for two languages).

Is there any way to implement this?
How can this be implemented

Thank you in advance.

Version upgrade Issue

Hai

I am upgrading my site from version6 to 7. I download the drupal version7 and copy the files to my site except sited folder. Then i run the update.php. After i run the update file it shows the following error.

Fatal error: Cannot redeclare template_preprocess_block() (previously declared in /staging/includes/theme.inc:1908) in /staging/modules/block/block.module on line 950

My site URL is http://www.steadfastglobal.com/staging/...

Help me to fix this issue..

Thanks

The "WWW" logs me out of Drupal7...anyone?

Hi there,

This is weird! I posted this at my host, Hostgator, too....

This is almost the same question that already asked, but his time clearing caches is not working:

When I'm at my main site if I navigate from the http address to the http://www address I am logged out?

I have the exact same .htaccess files except that the additional entry modified for the subdomain:

Migrating from local to dev

I am hoping some one maybe able to point me in the correct direction. I have been attempting to migrate from my local machine (windows xampp install) to a production openSuse 11.4 apache server I maintain. Each attempt to move the sql database to the new drupal install results in a blank screen being displayed.

The steps I am taking in order to complete the migration are as follows:
1) Clean install of Drupal 7.0 on production box.
2) Correct permissions being set for apache / drupal.
3) Modification of the http.conf file in order for clean-urls to function.
4) Placed the local site in offline mode.
5) Cleared all cache.
6) Export sql database. I have done this two different ways with the same result. One by using phpMyAdmin to perform and export, and two through the use of the backup and export module.
7) Copy all of the files from c:xampp/htdocs/drupal.
8) Upload each of the files/folders retrieved from the above step.
9) Import the database with respect to the method used in step 6.

Once the database has been imported, any attempt to navigate to any of the sites pages, results in a blank page.

Is there a way to perform a move from xampp running via a windows machine to a server running apache? This migration should not be as difficult as it is proving to be. Perhaps it is simply just me?

/modules/field/field.form.inc theme_field_multiple_value_form add a row id

How can I add an ID attribute on each row for a field? I need an ID at the row level for 'remove item' functionality to remove that row from the display. Or is there a better/standard way to handle removal in a field_multiple_value_form? Here is how I define the remove button:

    $element['remove'] = array(
      '#type' => 'button',
      '#value' => t('Remove item'),
      '#weight' => 10,
      '#input' => TRUE,
      '#name' => 'field_video_callout_remove-' . $delta,
      '#button_type' => 'submit form-remove',
      '#executes_submit_callback' => TRUE,
      '#limit_validation_errors' => FALSE,
      '#process' => array('ajax_process_form'),
      '#theme_wrappers' => array('button'),
      '#prefix' => '<div style="float:right;margin-top:5%;">',
      '#suffix' => '</div>',
      '#ajax' => array(
        'callback' => 'field_video_callout_field_widget_form_remove',
        'wrapper' => 'row-' . $delta,
        'effect' => 'fade',
        'method' => 'replace',
      ),
    );

Here is the callback:


function field_video_callout_field_widget_form_remove($form, $form_state) {
$button = $form_state['clicked_button'];
$element = drupal_array_get_nested_value($form, array_slice($button['#array_parents'], 0, -1));
$langcode = $element['#language'];

drupal_add_js drupal 7 issue

I am using Drupal 7 and am developing a module which uses a JS library to make graphs. Whenever I call drupal_add_js, it seems to remove the other included JS files including jQuery.

In my .module file I have this (not inside a function, will be moved to hook_init once I get it working)

drupal_add_js(drupal_get_path('module', 'reportgenerator') . '/js/highcharts.js');

Doing that causes all the other JS includes to go away. I tried adding it to the "JS_LIBRARY" group with no success.

Am I doing something wrong, or is there a better way to add a JS include?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x