setting item titles to "blank" as default setting.

nonamer69

Joined: 2005-09-09
Posts: 21
Posted: Fri, 2005-09-09 17:45

When adding images into an album there is a setting at the bottom of page asking...

Quote:
Set item titles from:

in the drop down box it has three options. Base Filename, Caption, and Blank.

How can I set this option to "Blank" as default.

thanks,
nonamer69

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-09 20:08

edit the correspondig template modules/core/templates/ItemAdd ... .tpl

 
nonamer69

Joined: 2005-09-09
Posts: 21
Posted: Fri, 2005-09-09 21:26
valiant wrote:
edit the correspondig template modules/core/templates/ItemAdd ... .tpl

thanks for the reply, unfortunately I searched that file all over and could not find anything on it that looked simular to what I was trying to change.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-09 22:38

modules/core/templates/ItemAddFromBrowser.tpl

change
selected=$form.set.title
to
'Blank'

copy the .tpl file to
modules/core/templates/local/ItemAddFromBrowser.tpl
and apply your customization there such that you don't lose it when you upgrade g2 to another version.

 
nonamer69

Joined: 2005-09-09
Posts: 21
Posted: Sat, 2005-09-10 00:02
valiant wrote:
modules/core/templates/ItemAddFromBrowser.tpl

change
selected=$form.set.title
to
'Blank'

copy the .tpl file to
modules/core/templates/local/ItemAddFromBrowser.tpl
and apply your customization there such that you don't lose it when you upgrade g2 to another version.

awesome. thanks Valiant for helping me out ;)

 
phifou

Joined: 2005-11-08
Posts: 3
Posted: Mon, 2005-11-21 07:39

Just tried this MOD... with absolutely no effect.
The default setting is always Filename. I use 2.01 and french language.

 
kachukuma

Joined: 2006-01-25
Posts: 1
Posted: Wed, 2006-01-25 10:30

your solution is here: http://gallery.menalto.com/node/42799
i think... :) its just that this solution is for making it 'caption' rather than 'blank'. worked for me.

 
altidude

Joined: 2007-11-05
Posts: 1
Posted: Mon, 2007-11-05 06:33

Through trial and error, this is what I did so that "Blank" is the default "Set item titles from" option in the dropdown:

modules/core/templates/ItemAddFromBrowser.tpl

change
selected=$form.set.title
to
selected=''

This is probably obvious to PHP programmers. Not so obvious to those, like me, that are not.