I need to get Mobile Tools (or another mobile solution) working with Domain. I've started to set up mobile tools with Domain on a test D7 site. It works for the primary domain but not for the others.

From what I can tell, Mobile Tools in storing the "Desktop" url and numerous "Mobile" urls in the variable table. I have the Domain Configuration module enabled. I thought that may solve the problem, but it is not. When I visit a secondary domain's Mobile Tools configuration screen all I see is the warning message about the form be domain sensitive; no form elements are being displayed.

Any insights are appreciated.

(Maybe this issue should be under the Mobile Tools module or some place else. If I need to recreate it in a different spot, let me know.)

Comments

agentrickard’s picture

Category: bug » feature

Not a bug. Probably needs support in Mobile Tools.

ayesh’s picture

How to make a form domain-sensitive ? especially if the domain is storing data only in variable table ?
MT stores full URL (of mobile/desktop site)so it's already designed to work for one mobile domain.

Say there's a site without Domain Access, and example.com and example.net both points to same installation. Also, www.example.com and www.example.net both works without a redirection.
If mobile site is designed to work with m.example.com, example.com, www.example.com, example.net and www.example.net all points to m.example.com when a mobile browser is detected.
When switching back, it redirects to the www.example.com, if www.example.com is setup as the "Desktop URL".

To integrate DA with MT, MT needs to either store mobile/desktop URLs(or domains) for each domain, or use redirection patterns.

For an example, MT admin page should ask the redirection pattern instead of absokute URLs.
For an example, if Desktop URL is a token called [domain].[tld]]/[dir], redirection pattern for mobile site can be m.[domainp].[tld]/dir(likie facebook mobile) , [domain].mobi/[dir](like Nokia's mobile site), [domain]mobile.[tld]/[dir](like godaddy mobile site) or [domain].[tld]/m/[dir](like Buxfer.com). This is much work for MT module.

You see, having a domain-sensitive MT page is the best way to go.

agentrickard’s picture

Project: Domain » Mobile Tools
Component: - Domain Conf » Code

See #1266312: How to enable $form as domain-specific settings?. If these are simple {variable} settings, then Domain Settings module will just work.

Otherwise, MT needs to implement hook_domainbatch() / hook_domain_batch(). See domain.api.php.

devin carlson’s picture

Status: Active » Closed (won't fix)

The 7.x-2.x branch of Mobile Tools in now unsupported.