Saturday 17 November 2007 1:29:48 am
Ok, the new url system is magic, it has only a little tiny missing feature: you can't make a link between two languages of the same content ;) The previous system was already ugly, as you had to code by hand the relation between each language and their siteaccess, but at least it worked. To make it short, what I'd like to do (from any full.tpl):
$translation=fetch("translations")
{foreach $transations=fetch("content","translation",$node.node_id}
<li><a href="$translation.full_uri">$translation.name</...
In the full uri, I want the full uri of the right language
if domain name based
http://fr.example.com/Chocolat http://en.example.com/Chocolate
if url based
http://example.com/fr/Chocolat http://example.com/en/Chocolate I want it to know like a big boy what siteaccess config is the one to use for each language, and I want it to exclude from the list the current language that it's displaying. I want it to work like it's expected to. Quite frankly, I'm stunned that this feature that's been planned for addition since 3.7 or so, has been that missing the point.
oh, and while we are at it (I spread it already elsewhere in the forums): an alias should return a 301 permanent redirect to the real url alias (not display the page), as should /content/view/full last but not the least, if someone could point me on a simple example on how to shorten() the urls (url_alias is fine, but a more than 80 char url is simply not practicable, we should be able to easily limit the length of any url alias. end of the rant X+
http://www.sydesy.com
|