Results 1 to 7 of 7

Thread: [solved]Gallery extension name change: location, description

  1. #1
    User
    Join Date
    08-04-09.
    Posts
    230

    Default [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?

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default 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.

  3. #3
    User
    Join Date
    08-04-09.
    Posts
    230

    Default Re: Gallery extension name change: location, description

    Oops, sorry. it is an extension indeed. From Thyon.

    http://dev.typolight.org/wiki/ExtensionsGallery

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default 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.

  5. #5
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

  6. #6
    User
    Join Date
    08-04-09.
    Posts
    230

    Default 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

  7. #7
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •