Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • spelabuda Friend
    #185282

    Hey 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_oblikovanje

    please help!

    thanks!!

    Stork11 Friend
    #484568

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

    pepiczek Friend
    #484644

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

    spelabuda Friend
    #484717

    Hi!

    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_oblikovanje

    thanks again so much, for your help!

    pepiczek Friend
    #484780

    Spelabuda,
    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.

    spelabuda Friend
    #484781

    You 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!!!!:):):):):)

    dufi Friend
    #489596

    I have updated OnePage template to 1.0.2, but problem with special characters still scaring me 🙁

    Ninja Lead Moderator
    #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.

Viewing 8 posts - 1 through 8 (of 8 total)

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