-
AuthorPosts
-
spelabuda Friend
spelabuda
- Join date:
- December 2006
- Posts:
- 45
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 52
- Thanked:
- 1 times in 1 posts
February 25, 2013 at 12:00 pm #185282Hey guys,
one of my menu items should be GrafiČno oblikovanje. Not GrafiCno oblikovanje.
so how should a link for this item menu look like?now its:
index.php?Itemid=435#graficno_oblikovanjeplease help!
thanks!!
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
February 26, 2013 at 9:12 am #484568Hello spelabuda,
This may be an issue of JA Onepage. I raised it on our bug tracking system. Please follow this link http://pm.joomlart.com/browse/JATC1PAGE-35 to get updated.
We will fix the issue soon, sorry for any inconvenience.
Regards.
1 user says Thank You to Stork11 for this useful post
pepiczek Friendpepiczek
- Join date:
- February 2008
- Posts:
- 11
- Downloads:
- 374
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 6 times in 4 posts
February 26, 2013 at 10:15 pm #484644Hi spelabuda,
i had the same problem. So i modified file modules.php (location templates/ja_onepage/html/modules.php) :I replace the original code between lines 42 – 47 :
[PHP]function modChrome_onepage($module, &$params, &$attribs)
{
$key = strtoupper(str_replace (‘ ‘, ‘_’, stripslashes($module->title)));
$subtitlekey = ‘TPL_SUBTITLE_’.$key;
$subtitle = JText::_($subtitlekey);
$menuid = strtolower(str_replace (‘ ‘, ‘_’, stripslashes($module->title)));[/PHP]with this code:
[PHP]function modChrome_onepage($module, &$params, &$attribs)
{
setlocale(LC_ALL, ‘slovak’);
$key = iconv(“UTF-8”, “ASCII//TRANSLIT”, $module->title);
$key = str_replace (”’, ”, stripslashes($key));
$key = str_replace (‘?’, ”, stripslashes($key));
$key = strtoupper(str_replace (‘ ‘, ‘_’, stripslashes($key)));
$subtitlekey = ‘TPL_SUBTITLE_’.$key;
$subtitle = JText::_($subtitlekey);
$menuid = iconv(“UTF-8”, “ASCII//TRANSLIT”, $module->title);
$menuid = str_replace (”’, ”, stripslashes($menuid));
$menuid = str_replace (‘?’, ”, stripslashes($menuid));
$menuid = strtolower(str_replace (‘ ‘, ‘_’, stripslashes($menuid)));[/PHP]You must change parameter “slovak” in setlocale to your language version.
But I’m sure, that this my code is not very clean and is unusable for multilingual sites.2 users say Thank You to pepiczek for this useful post
spelabuda Friendspelabuda
- Join date:
- December 2006
- Posts:
- 45
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 52
- Thanked:
- 1 times in 1 posts
February 27, 2013 at 8:20 am #484717Hi!
first off, thank you very much for a quick reply.
i installed “Slovenian” (this is my language), set to default and replaced the PHP Code with:
function modChrome_onepage($module, &$params, &$attribs)
{
setlocale(LC_ALL, 'slovenian');
$key = iconv("UTF-8", "ASCII//TRANSLIT", $module->title);
$key = str_replace (''', '', stripslashes($key));
$key = str_replace ('?', '', stripslashes($key));
$key = strtoupper(str_replace (' ', '_', stripslashes($key)));
$subtitlekey = 'TPL_SUBTITLE_'.$key;
$subtitle = JText::_($subtitlekey);
$menuid = iconv("UTF-8", "ASCII//TRANSLIT", $module->title);
$menuid = str_replace (''', '', stripslashes($menuid));
$menuid = str_replace ('?', '', stripslashes($menuid));
$menuid = strtolower(str_replace (' ', '_', stripslashes($menuid)));Unfortunately its not working for me. 🙁
maybe i missed something.this is the URL:
http://www.culiberg.com/index.php/#grafično_oblikovanjethanks again so much, for your help!
pepiczek Friendpepiczek
- Join date:
- February 2008
- Posts:
- 11
- Downloads:
- 374
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 6 times in 4 posts
February 27, 2013 at 3:29 pm #484780Spelabuda,
the code, that i wrote above is for replacing special characters with standard Ascii characters. I visited your site and a can see, that it works. With using Firebug i saw: ID of your section block GRAFIČNO OBLIKOVANJE is : graficno_oblikovanje instead of grafino_oblikovanje or grafi?no_oblikovanje. This is OK.Next step, which you have to do, is repairing link in Joomla menu manager. Find Step 2 (Create a menu for a section block) in this tutorial: http://www.joomlart.com/forums/topic/ja-one-page-template-userguide/
In menu manager replace your link …..#grafično_oblikovanje with …..#graficno_oblikovanje.
You can’t use any special characters in URL.I hope, this helps.
1 user says Thank You to pepiczek for this useful post
spelabuda Friendspelabuda
- Join date:
- December 2006
- Posts:
- 45
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 52
- Thanked:
- 1 times in 1 posts
February 27, 2013 at 3:37 pm #484781You are absolutely right! it works perfectly. I just had to update the link in menu manager.
You are a life saver! thank you soooo much!!!!:):):):):)
April 11, 2013 at 10:45 pm #489596I have updated OnePage template to 1.0.2, but problem with special characters still scaring me 🙁
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 13, 2013 at 3:06 am #489714<em>@dufi 368596 wrote:</em><blockquote>I have updated OnePage template to 1.0.2, but problem with special characters still scaring me :(</blockquote>
If you can post your site url and screenshot for the issue, i might be able to help you out. Right now its difficult to guess the issue and solution without actually being able to see it.
-
AuthorPosts
This topic contains 8 replies, has 5 voices, and was last updated by Ninja Lead 11 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum