Question about Toolset add-on
-
We have a unique situation where we’re trying to achieve something that may be impossible. But your plugin with the Toolset add-on is the closest I’ve found so far to enabling us to do what’s needed.
What we want to do is to have our Toolset Views on one site generate the content that will appear as pages on a second site. We do not want to share the actual Views setup/code with the second site. We just want the second site to be able to utilize the Views we’ve built on the first site.
Is there any way to achieve this? We’ve asked Toolset support about this and they said the following in response to my question about using a multisite network to achieve this goal:
—————————————————–
A Multisite set-up is a little different, in that there is a single database shared by sub-sites, but each sub-site has it’s own database tables (e.g. their own version of wp_posts).
WordPress does provide a means to switch context between sites that you could in theory use before making a query.
You can use switch_to_blog() to change context before running a query, and restore_current_blog to revert context afterwards.
But, Toolset doesn’t include any handling for such a scenario.
I’m not sure whether it is feasible to get a View on one site to run on another site (rather than have a View which runs on a site query data from another site).
If there is a solution it will involve those WordPress functions, but I can’t say much more than that, I’m afraid.
————————————————–
Note that we can create pages on the first site that display views to create the content we’d like to appear on the second site. As such, we don’t necessarily need the Views themselves to execute on the second site. As long as the pages that get created using Views on the first site get fed to the second site intact, that would be sufficient to meet our needs.
Thanks for any advice or assistance you can offer. We’re fine with purchasing your add-ons package that includes the Toolset add-on if it can achieve our goal here.
- The topic ‘Question about Toolset add-on’ is closed to new replies.