Multilingual 'desktop icons' using CCK

rvk - October 11, 2008 - 16:37

I would like to create a content type using CCK that will be a bit like an icon on the desktop. I think I should use imagefield and link or noderef. I want the icons to be multilingual. So when the user changes the language of the site, the text of the icon should change and clicking the icon should take the user to the appropriate translation too. I run into two problems:

With noderef I think I can only create links to e.g. node/11
but I would like to create links to e.g. node/path-created-by-pathauto (because of SEO)

is this possible? I think I would prefer to use noderef, because that way users would not have to enter the URL.

If I have to do it with link: is there a way to use relative links instead of full links?
e.g. node/path-created-by-pathauto instead of http://www.example.com/ node/path-created-by-pathauto

Of course switching the language of the site should also change the language prefix in the URL that I left out in my examples.

If you have the answer to this question I would be very grateful!

rvk

you might look into using

WorldFallz - October 11, 2008 - 20:00

you might look into using http://drupal.org/project/i18n which has a language icons option iirc.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Thanks, but I had a look at

rvk - October 13, 2008 - 17:51

Thanks, but I had a look at these icons and they seem to do the exact opposite of what I want.

I would like to have an icon that links to for instance the forum, so clicking the icon should take the user to the forum, but should leave to language unchanged.

If the user on the other hand changes the language of the site (with the language menu, not with the icon) then the text under the icon should change appropriately.

So forum might not be a good example because that might be the same in many languages, but that's more or less what I want.

I think I can achieve that using CCK, however I am not sure if I can solve the two problems I mentioned. I would like the icon to link to the URL created by path(auto), and I would prefer it if it would be possible to make an icon using noderef (easy pulldown menu instead of entering a full URL).

Any ideas?

 
 

Drupal is a registered trademark of Dries Buytaert.