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
Comment #1
pivey commentedComment #2
jcmc commentedHello
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:
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
Comment #3
pivey commentedThank you, good job
Comment #4
pivey commentedWell,
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
Comment #5
jcmc commentedif 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
to
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
Comment #6
jcmc commentedIn the latest version I have implemented a settings field that allow to group all the Gallery Assist fieldsets in the node edit form.
Comment #7
jcmc commentedComment #9
dreich77 commentedI 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.