I would like to remove the default file name on pictures when I use the module Album.
How can I do this? - and still have the possibility to add a title if I want to.
[solved] Album - how to remove the default file name?
[solved] Album - how to remove the default file name?
Last edited by ravonet on Tue Feb 03, 2009 6:50 am, edited 1 time in total.
Re: Album - how to remove the default file name?
Do you mean change the caption underneath each photograph? If so, go into Album module, click on the album name to edit the album, where you see the thumbnails of all the photos in the album, there should be 3 small icons underneath each photo. The icon on the left is of a pen and paper. If you click on this icon you can edit the captions from there and remove the 'default file name'.
Hope this helps.
Hope this helps.
Re: Album - how to remove the default file name?
Hi beattie,
Thanks for your reply. What I am looking for is a way to remove this caption by default when I create new galleries.
By default the gallery puts the image file name as caption, I just want this field to bee empty as default.
Thanks for your reply. What I am looking for is a way to remove this caption by default when I create new galleries.
By default the gallery puts the image file name as caption, I just want this field to bee empty as default.
Re: Album - how to remove the default file name?
Do actually just want to have it empty for display of the images on your website? e.g. have no comment below your images on your website? In which case remove the comment from the template, depending on your template, something like the {eval var=$onepicture->comment}?
If you want to have it blank within the actual Album module admin (not sure why you would want this?) then I think you are going to have to alter the album module itself to not add this to the database or go back over your database with some SQL script to remove the text.
If you want to have it blank within the actual Album module admin (not sure why you would want this?) then I think you are going to have to alter the album module itself to not add this to the database or go back over your database with some SQL script to remove the text.
Re: Album - how to remove the default file name?
If you want to get rid of the filename and the dash and still be able to see the comments when using lightbox, you can edit the lightbox template. I've simply outcommented the unwanted parts - and mark them red here...
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
picture}" rel="lightbox[{$album->name|escape:'html'}]" title="{*{$onepicture->name|escape:'html'} *}{if ($onepicture->comment != "")}{*- *}{$onepicture->comment|escape:'html'}{/if}"> thumbnail}" alt="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}" title="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}"{$onepicture->autothumbnailsize} />
You can see an example at http://www.lysningen.dk/sidste-nyt/
/karsten
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
picture}" rel="lightbox[{$album->name|escape:'html'}]" title="{*{$onepicture->name|escape:'html'} *}{if ($onepicture->comment != "")}{*- *}{$onepicture->comment|escape:'html'}{/if}"> thumbnail}" alt="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}" title="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}"{$onepicture->autothumbnailsize} />
You can see an example at http://www.lysningen.dk/sidste-nyt/
/karsten
Re: Album - how to remove the default file name?
Excellent, just what I was looking for 
