Welcome! Anonymous

Module Multimedia - Part 2

If you have problems with TomatoCMS, please post in here or http://bugs.tomatocms.com

Module Multimedia - Part 2

Postby lsueza » Sat Jul 24, 2010 6:04 pm

Module Multimedia

-> Add New Set / Edit Set
-> Add New File / Edit File

fields: Title / Slug
tables: multimedia_set / multimedia_file

I can´t add or edit the title set and/or title file that have an word with character "ç". In portuguese there are many words with "ç".
Example:
Comunicação (portuguese) - Communication (english)
Ação (portuguese) - Action (english)

If I try save/edit a set with an Title that have a word with "ç", the title set is not saved. This also happens when I try add a new file (photo) or edit the title file (photo). If I try save, all fields from form are deleted/cleaned and the set and/or file is not saved.
Obs: I can create news/articles with title containing the character "ç"... no problem in the module news.

The configurations of the my database are:
CHARACTER SET= utf8
COLLATION= utf8_general_ci

I changed the character set from uft8 to latin1 and collation from utf8_general_ci to latin1_swedish_ci to see what happen.
After the change, I can save/edit the set... but, the slug is saved wrong in the database.

Look the attached files IMAGE_01.JPG, IMAGE_02.JPG and IMAGE_03.JPG.
Attachments
IMAGE_03.JPG
IMAGE_03
IMAGE_03.JPG (180.13 KiB) Viewed 67 times
IMAGE_02.JPG
IMAGE_02
IMAGE_02.JPG (120.27 KiB) Viewed 67 times
IMAGE_01.JPG
IMAGE_01
IMAGE_01.JPG (103.3 KiB) Viewed 67 times
lsueza
 
Posts: 13
Joined: Sat Jun 12, 2010 1:33 pm

Re: Module Multimedia - Part 2

Postby Rogerion » Sun Jul 25, 2010 3:22 pm

Slug should be corected manualy by user during creating set, because there is no possible to do converter for every character in diffrend languages!!
Think about this please.

:)
Rogerion
 
Posts: 26
Joined: Sun Feb 07, 2010 9:09 am

Re: Module Multimedia - Part 2

Postby lsueza » Mon Jul 26, 2010 10:48 pm

Hi Rogerion,
Thanks for the reply...

It would be great to change the slug field manually from Add New Set / Edit Set, Add New File / Edit File. But, the problem is: there is not the slug field in the
forms from Multimedia Module.

This option (slug field) could be added in the forms Multimedia Module in the next release of the TomatoCMS!

Is it possible?
lsueza
 
Posts: 13
Joined: Sat Jun 12, 2010 1:33 pm

Re: Module Multimedia - Part 2

Postby LeHa » Tue Jul 27, 2010 1:35 am

he he, the problem is: the "removeSign" function (in libraries/Tomato/Utility/String/php) has just characters as follows:
Code: Select all
$pattern = array(
            "a" => "á|à|ạ|ả|ã|Á|À|Ạ|Ả|Ã|ă|ắ|ằ|ặ|ẳ|ẵ|Ă|Ắ|Ằ|Ặ|Ẳ|Ẵ|â|ấ|ầ|ậ|ẩ|ẫ|Â|Ấ|Ầ|Ậ|Ẩ|Ẫ",
            "o" => "ó|ò|ọ|ỏ|õ|Ó|Ò|Ọ|Ỏ|Õ|ô|ố|ồ|ộ|ổ|ỗ|Ô|Ố|Ồ|Ộ|Ổ|Ỗ|ơ|ớ|ờ|ợ|ở|ỡ|Ơ|Ớ|Ờ|Ợ|Ở|Ỡ",
            "e" => "é|è|ẹ|ẻ|ẽ|É|È|Ẹ|Ẻ|Ẽ|ê|ế|ề|ệ|ể|ễ|Ê|Ế|Ề|Ệ|Ể|Ễ",
            "u" => "ú|ù|ụ|ủ|ũ|Ú|Ù|Ụ|Ủ|Ũ|ư|ứ|ừ|ự|ử|ữ|Ư|Ứ|Ừ|Ự|Ử|Ữ",
            "i" => "í|ì|ị|ỉ|ĩ|Í|Ì|Ị|Ỉ|Ĩ",
            "y" => "ý|ỳ|ỵ|ỷ|ỹ|Ý|Ỳ|Ỵ|Ỷ|Ỹ",
            "d" => "đ|Đ",
         );


It hasn't got character "ç", we will add character "ç" in this function.
Have got other special characters in your language?
Image
Le Thi Ngoc Ha, TomatoCMS Developer
Twitter: http://twitter.com/tomatocms
LeHa
 
Posts: 143
Joined: Tue Jan 19, 2010 1:50 am

Re: Module Multimedia - Part 2

Postby lsueza » Tue Jul 27, 2010 2:41 pm

Great!!!!!
Problem fixed...

I saw the array above and I think that was missing just this character...
The others characters used in Portuguese Brazilian are working fine in the TomatoCMS. If I find more I will post in the forum. ;)

Thank you very much!
lsueza
 
Posts: 13
Joined: Sat Jun 12, 2010 1:33 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest