is there any snippet out there to make Ditto read it’s replies from another domain?
I have quite a lot of products I want to show them on 2 different sites.
I’m sure i’m not the 1st genius to ask that but cant find the correct wording I guess. any ideas?
-
☆ A M B ☆
- 24,524 Posts
Ditto uses the MODx dbapi, so it might be possible to use a snippet that opens a connection to the remote database, then uses $modx->runSnippet(’Ditto’, ...) then closes that connection. It should work, as long as both databases use the same table prefix.
The original connection would then be active since you didn’t explicitly close it before opening the new one, and the rest of the parsing should continue normally.
Great Susan thanks for the reply.
can you think of any public snippet that open/closes the remote connection I can look at?
-
☆ A M B ☆
- 24,524 Posts
great thanks for the link.