Menu: different link (URL) per language?
Moderator: General Support Moderators
Forum rules
-
- Joomla! Enthusiast
- Posts: 101
- Joined: Fri Jun 08, 2007 3:14 pm
Menu: different link (URL) per language?
I have a menu item linking to an external site, can I have different URL's per language so the menu points to the right translatin of the external site?
Last edited by andrewvanmarle on Mon Oct 29, 2007 9:10 am, edited 1 time in total.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Menu: different link (URL) per language?
I solved this issue by modifying the file
administrator/components/com_joomfish/contentelements/menu.xml
I have added a line which lets change the url when the menu item is translated (in red below):
For joomfish 1.8
administrator/components/com_joomfish/contentelements/menu.xml
I have added a line which lets change the url when the menu item is translated (in red below):
For joomfish 1.8
For joomfish 1.7
Menus
A. Kempkens
1.8
Definition for the core menu manager
ID
Name
params
Menu Type
Link URL
Check out by
Check out date
c.published >= 0
name
menutype
published
Menus
A. Kempkens
1.7
Definition for the core menu manager
ID
Name
Link URL
Check out by
Check out date
c.published >= 0
name
menutype
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Enthusiast
- Posts: 101
- Joined: Fri Jun 08, 2007 3:14 pm
Re: SOLVED: Menu: different link (URL) per language?
wow, thanks!!!
-
- Joomla! Enthusiast
- Posts: 101
- Joined: Fri Jun 08, 2007 3:14 pm
Re: Menu: different link (URL) per language?
I added the line of code, but I don't see a change in the translation screen. did I do something wrong?
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Menu: different link (URL) per language?
Don't know as I can't see.
The line adds a new part in the link-url translation page
The line adds a new part in the link-url translation page
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Enthusiast
- Posts: 101
- Joined: Fri Jun 08, 2007 3:14 pm
Re: Menu: different link (URL) per language?
hmm, ok, I added the code, correct location, and then went to joomfish>translations and chose menu's and the laguage. clicking a nemu item didn't show me an extra field. Am I supposed to find it there?
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Menu: different link (URL) per language?
Yep. See picture.
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Enthusiast
- Posts: 101
- Joined: Fri Jun 08, 2007 3:14 pm
Re: Menu: different link (URL) per language?
hmmm, how strange!
I think I Am doing someting wrong since I turned off another type (params) and it didn't make a difference either.
I think I Am doing someting wrong since I turned off another type (params) and it didn't make a difference either.
-
- Joomla! Enthusiast
- Posts: 101
- Joined: Fri Jun 08, 2007 3:14 pm
Re: Menu: different link (URL) per language?
ok, it gets stranger and stranger, since I tried to make joomfish react to anything, so I changed the screen name of and that did nothing. is there a cache?
-
- Joomla! Intern
- Posts: 58
- Joined: Sun Sep 11, 2005 8:51 pm
Re: Menu: different link (URL) per language?
your workaround for JoomFish 1.7 works perfectly for me, thanks a lot!
-
- Joomla! Intern
- Posts: 77
- Joined: Wed Jan 10, 2007 1:12 pm
Re: Menu: different link (URL) per language?
Dear,
I have one smae problem?
I do't know what exactly I should write in XML file
<field type="titletext" name="name" translate="1">Link URL</field>
Correct?
Thanks
I have one smae problem?
I do't know what exactly I should write in XML file
<field type="titletext" name="name" translate="1">Link URL</field>
Correct?
Thanks
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Menu: different link (URL) per language?
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<joomfish type="contentelement">
<name>Menus</name>
<author>A. Kempkens</author>
<version>1.8</version>
<description>Definition for the core menu manager</description>
<reference>
<table name="menu">
<field type="referenceid" name="id" translate="0">ID</field>
<field type="titletext" name="name" translate="1">Name</field>
<field type="params" name="params" translate="1">params</field>
<field type="text" name="type" translate="0">Menu Type</field>
<field type="text" name="link" translate="1">Link URL</field>
<field type="checked_out_by" name="checked_out" translate="0">Check out by</field>
<field type="checked_out_date" name="checked_out_time" translate="0">Check out date</field>
<filter>c.published >= 0</filter>
</table>
</reference>
<translationfilters>
<keyword>name</keyword>
<menutype>menutype</menutype>
<published>published</published>
</translationfilters>
</joomfish>
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Intern
- Posts: 77
- Joined: Wed Jan 10, 2007 1:12 pm
Re: Menu: different link (URL) per language?
Dear,
I am using 1.7, also I copy
<field type="text" name="link" translate="1">Link URL</field>
only, and it is working well.
Many thanks
Dong
I am using 1.7, also I copy
<field type="text" name="link" translate="1">Link URL</field>
only, and it is working well.
Many thanks
Dong
-
- Joomla! Apprentice
- Posts: 11
- Joined: Sat Jul 07, 2007 2:45 pm
Re: Menu: different link (URL) per language?
Hello,
I had the same problem, I solved it with the new xml file (thanks),
But I've got an other problem the field where I've to translate my link is too small compare to my long link.
Is there a solution to that?
many thanks all...
I had the same problem, I solved it with the new xml file (thanks),
But I've got an other problem the field where I've to translate my link is too small compare to my long link.
Is there a solution to that?
many thanks all...
- Kampp
- Joomla! Guru
- Posts: 564
- Joined: Tue Aug 30, 2005 9:18 am
- Location: Denmark
- Contact:
Re: Menu: different link (URL) per language?
I was told in Joomfish forum that this would not work. Does it work - is it that simple?
Do we know if this fix workes for Joomfish 2.0 and Joomla 1.5?
Related thread: http://forum.joomla.org/viewtopic.php?f ... u#p1226648
Do we know if this fix workes for Joomfish 2.0 and Joomla 1.5?
Related thread: http://forum.joomla.org/viewtopic.php?f ... u#p1226648
https://toolmaster.dk - Danish Joomla Services
https://joomla-hosting.dk - Danish Joomla hosting
https://joomla-konsulent.dk - Danish Joomla Services
https://joomla-hosting.dk - Danish Joomla hosting
https://joomla-konsulent.dk - Danish Joomla Services
-
- Joomla! Apprentice
- Posts: 7
- Joined: Tue Feb 07, 2006 10:38 am
Re: Menu: different link (URL) per language?
It works but long url's can't be inserted at the field , can that be changed?
- brunoazevedo
- Joomla! Intern
- Posts: 64
- Joined: Sun Dec 17, 2006 11:13 am
Re: Menu: different link (URL) per language?
HI Rocco,
In menu.xml, try to insert
maxlength="300"
like:
<field type="text" name="link" maxlength="300" translate="1">Link URL</field>
Working to me.
I Now this answer is to late, but can help someone.
Thanks!
In menu.xml, try to insert
maxlength="300"
like:
<field type="text" name="link" maxlength="300" translate="1">Link URL</field>
Working to me.
I Now this answer is to late, but can help someone.
Thanks!
- akede
- Joomla! Ace
- Posts: 1258
- Joined: Fri Aug 12, 2005 6:15 am
- Location: Munich, Germany
- Contact:
Re: Menu: different link (URL) per language?
Hi,
Are you testing the long URL's on 2.0 or 1.8?
Alex
Are you testing the long URL's on 2.0 or 1.8?
Alex
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org
- brunoazevedo
- Joomla! Intern
- Posts: 64
- Joined: Sun Dec 17, 2006 11:13 am
Re: Menu: different link (URL) per language?
Hi Alex,
I tested with Version 1.8.2. ( Joomla 1.0.15 )
In the Version V2.0.2 (Joomla 1.5.9), work, but it need some change in the menu.xml element:
You need change in line 13:
<field type="readonlytext" name="link" maxlength="300" translate="1" posthandler="saveUrlParams">Link</field>
TO:
<field type="text" name="link" maxlength="300" translate="1" posthandler="saveUrlParams">Link</field>
Summary:
Change the type="readonlytext" to type="text"
NOTE: I'm not a PHP expert, so i can't explain why this are read only.
Bruno
I tested with Version 1.8.2. ( Joomla 1.0.15 )
In the Version V2.0.2 (Joomla 1.5.9), work, but it need some change in the menu.xml element:
You need change in line 13:
<field type="readonlytext" name="link" maxlength="300" translate="1" posthandler="saveUrlParams">Link</field>
TO:
<field type="text" name="link" maxlength="300" translate="1" posthandler="saveUrlParams">Link</field>
Summary:
Change the type="readonlytext" to type="text"
NOTE: I'm not a PHP expert, so i can't explain why this are read only.
Bruno
- akede
- Joomla! Ace
- Posts: 1258
- Joined: Fri Aug 12, 2005 6:15 am
- Location: Munich, Germany
- Contact:
Re: Menu: different link (URL) per language?
Hi Bruno,
I'm very happy to see that you as non PHP expert figured out these changes. Honest this says for me that the decision of using a XML file instead of other configurations is the right one.
Yes your changes work right. There is a feedback idea (http://feedback.joomfish.net/pages/gene ... and-simple) that goes into your direction as well. The reason why this is related is that the link in the menu normally is generated automatically. If you translate it manually this can cause problems with the translations if you change the original.
I hope this helps everybody.
Alex
I'm very happy to see that you as non PHP expert figured out these changes. Honest this says for me that the decision of using a XML file instead of other configurations is the right one.
Yes your changes work right. There is a feedback idea (http://feedback.joomfish.net/pages/gene ... and-simple) that goes into your direction as well. The reason why this is related is that the link in the menu normally is generated automatically. If you translate it manually this can cause problems with the translations if you change the original.
I hope this helps everybody.
Alex
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org