[solved]Gallery extension name change: location, description
I would like my client to be able to add extra criteria in the gallery list.
(from the gallery extention.)
Since I will not use: date, location, photographer. i thought I could use them.
Nicest thing will be if i can change the names of the text areas in the galley, so it stay logical to my client.
I tried changing 'location' in:
gallery_short.tpl
&
ModuleGallery.php
But nothing happens. Can someone help me out maybe?
Re: Gallery extension name change: location, description
Are you talking about the Gallery content element? It sounds like you are talking about an extension from the repository. If this is the case, please provide a link to where it is in the repository so we can move your thread to the appropriate section of the forum where support is offered for extensions.
Re: Gallery extension name change: location, description
Oops, sorry. it is an extension indeed. From Thyon.
http://dev.typolight.org/wiki/ExtensionsGallery
Re: Gallery extension name change: location, description
lostrisq - I have moved your post to the appropriate forum, so you're chances of getting helped are greatly increased.
Re: Gallery extension name change: location, description
You can easily rename ANY element in TL using a language override in the config/langconfig.php file. This will replace the default assignment of the label and therefore also in any templates to what you decide. This is an excellent to repurpose any module to your own liking.
$GLOBALS['TL_LANG']['tl_gallery']['location'] = array('Location', 'Please enter the name of the location.');
Copy the line above (from the original english language file: languages/en/tl_gallery.php) and then paste this into langconfig.php and modify it to your liking, e.g. ONLY change the part on the RIGHT = array('City', 'Please enter the name of the city');
Do not edit the language files directly, because they get overridden with each update, so then you're back to square 1.
Re: Gallery extension name change: location, description
It took a while for me to answer, sorry bout that....
It works like a charm! Happy to know this for future projects.
(And in default.php (languages-en-default.php) I was able to change the output for photographer (it automatically put out 'photos taken by....' )
I also copied the appropriate line in the langcofig.php file.)
Thanks Thyon
Re: [solved]Gallery extension name change: location, description
yeah just don't edit the languages/en/default.php files, as these get overwritten with updates. Great stuff for you.