Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Extended latin in gallery name - grid frontpage display

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi guys,
I am using Presto and need to use Extended latin on gallery names. Using grid frontpage display need to user see proper czech language words. If it is not possible to change gallery name, how I can forced description field to be shown insted of name in frontpage grid display?
Thanks a lot for feedback
Robin
  • Robin Vehovský's Avatar
  • Robin Vehovský
  • 6 Month Developer
  • 15 posts
  • 1 Thanks
  • Karma: 0
Last Edit: 5 years 4 months ago by Robin Vehovský.
The administrator has disabled public write access.
Hi Robin,

I'll need to check with Anthony on this - he is currently away

Are you under time pressure for an answer on this?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,
It is kind of main problem of template, because there are on eyes ...
Actually one on of the first text that user read, on menu as well so there have to be written correctly ...
So as soon as possible, I am sure there is the way...
Just let me know any idea, I am trying to change that by myself but no luck so far...

I try edit home-grid.php under presto/tpls/home/

on line 52 changing
<h2><?php echo $gallery['name'];?></h2> 
to 
<h2><?php echo $gallery['description'];?></h2> 
try as well
<h2><?php echo $gallery['desc'];?></h2> 

But no luck :(

Thanks for any ideas and fast feedback Paul ...
Best Regards
Robin

P.s. If you need ticket, I will push that issue for you ...
  • Robin Vehovský's Avatar
  • Robin Vehovský
  • 6 Month Developer
  • 15 posts
  • 1 Thanks
  • Karma: 0
Last Edit: 5 years 4 months ago by Robin Vehovský.
The administrator has disabled public write access.
Hi Robin,

You should be able to change the name of the gallery in the template admin.
What happens when you add czech chars and what is showing on the front of the site?

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Is that you can't change the names or you can't add the text correctly?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Rob,
only bacis alphabet strings are supported ... no extended latin.
There is warning shown, so you are not able to save ...
Nevermind .. I have to change template already ...
But it is pity for Presto ...
Best Regards
Robin

p.s. Try it for yourself .. name gallery like "Krásný den, lásko" - no way
  • Robin Vehovský's Avatar
  • Robin Vehovský
  • 6 Month Developer
  • 15 posts
  • 1 Thanks
  • Karma: 0
Last Edit: 5 years 4 months ago by Robin Vehovský.
The administrator has disabled public write access.
Thanks for the heads up I will try this over the weekend

Good luck with the new template / site

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi,

The file controlling the check is in the template folder at:
/fields/gallery.php

line 550:
if(/^[a-zA-Z0-9- ]*$/.test(gallery_name) == false) {

You could modify this to allow for other chars, eg:
if(/^[a-zA-Z0-9áéüöêåøý ]*$/.test(gallery_name) == false) {

However, the name of the gallery is also used for the url so you would end up with /presto/#!Krásný-den,-lásko which could cause other issues and people with a-z keyboards would not be able to type the url of the page easily.

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers