How to make it work across domains?

morningtime - October 30, 2009 - 16:10
Project:Consistent Language Interface
Version:6.x-2.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I need this to work across domains. Do any module maintainers know what the technical problem was to do this? I'm going to try figure this out.

#1

morningtime - October 30, 2009 - 17:13

Well I figured it out.

In function languagepath($lang), add sth like:

$domain = db_result(db_query("SELECT domain FROM {languages} WHERE language = '".$lang."'"));

Change $path to sth. like this, for nodes:
$path = $domain . '/' . drupal_get_path_alias('node/'.$destination_nid, $lang) . $remaining;

For other pages:
$path = $domain . '/' . $remaining;

Fancy stuff. Maybe mod maintainer can turn that into an "optional feature" or config setting.

#2

kardave - November 13, 2009 - 10:47

I second that!

#3

Aaron Hawkins - November 15, 2009 - 21:34
Status:active» fixed

#4

System Message - November 29, 2009 - 21:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.