Hi,

as i enable my users to create their own galleries, it would make sense to have a default weight "pre-defined", so all contents with gallery usage will have the same layout.

Hot do I set a default value: Settings to this Gallery -> Weight -18?

Thanks for this beautiful module

Comments

pivey’s picture

Version: 6.x-1.x-dev » 6.x-1.6
jcmc’s picture

Hello

Wat you want is not implemented, in the current version of Gallery Assist, the congiguration of the weight work only on the node level.

I am developing now:

Galler Assist Cooliris
Allow the use of Cooliris services to Gallery Assist galleries.
Galler Assist Picasa
Allow to show a picasa album in a node (thumbnails or picasa-slidershow)
Galler Assist Upport
Extend Gallery Assist with the functionalities: mass upload and mass import from imce folder
Galler Assist Takeover
Allow to show or takeover the in your system existing images managed from others modules

You see, a long way, nevertheless I think your request is a good feature in case of multiuser functionality and I takeover it in the todo list.

Regards
Juan Carlos

pivey’s picture

Thank you, good job

pivey’s picture

Well,
it won't let me sleep ..
i managed to display only a specific "weight value" on gallery content creation making use of
PHP5's array_combine() function and array_map()

in sites\all\modules\gallery_assist\gallery_assist.module line 520

changing
'#options' => drupal_map_assoc(range(-50, 50)),
to
'#options' => drupal_map_assoc(array(-18)),

does return just this value (-18) ... or whatever suitable.
Please confirm that this can be a -temporaly- solution

jcmc’s picture

if you want to make that in your system the default value is every time -50?

make so waht:

1- go to your SQL manager (phpmyadmin for MySQL)
2- administer gallery_assist table
3- go to structure and click by edit of column gallery_assist_weight
4- change the default value to -50

All shows before the body area.

The next Problem is to make that users not change this value.

go to gallery_assist.module line 516 and change the array

    ...
    $form['gallery_assist_settings']['gallery_assist_weight'] = array(
      '#type' => 'select',
      '#title' => t('Weight'),
      '#default_value' => $node->gallery_assist_weight,
      '#options' => drupal_map_assoc(range(-50, 50)),
      '#description' => t('Choose a weight value to decide witch position will be having your gallery container.'),
    );
    ...

to

   ...
    $form['gallery_assist_settings']['gallery_assist_weight'] = array(
      '#type' => 'value',
      '#value' => -50,
    );
    ...

The change in the database is permanently the change in the module file is temporal, by the next update the changes here go lost.

So or so I see this here as tast and a missing feature and add this point to the todo list.

I hope I could help you

Regards
Juan Carlos

jcmc’s picture

Status: Fixed » Active

In the latest version I have implemented a settings field that allow to group all the Gallery Assist fieldsets in the node edit form.

jcmc’s picture

Status: Active » Fixed

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dreich77’s picture

I have dev-version from 14 March 2010, but I can't find where to change the weight of Gallery container so that it could be lower than node content.

I also have done this:

1- go to your SQL manager (phpmyadmin for MySQL)
2- administer gallery_assist table
3- go to structure and click by edit of column gallery_assist_weight
4- change the default value to -50

but photos are higher than node content.