ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SQL Query Multiple Sites (SQL with MSM)

January 11, 2012 6:07pm

Subscribe [2]
  • #1 / Jan 11, 2012 6:07pm

    jtoast

    32 posts

    Hello,

    I’m running EE 1.6.9 on Site A and use the Multiple Site Manager to manage Site B. Both sites have similarly structured data that I’d like to pull and display in one table.

    Is there a way with SQL to query both sites and display data in one table?

    Thanks for any insight,
    Jenny

  • #2 / Jan 12, 2012 7:18pm

    Sean C. Smith

    3818 posts

    Hi jtoast,

    You should be able to do this easily just by using channel entries and the parameter site=“siteA|siteB|siteC”. Please see the Docs on MSM

    If this doesn’t help you please let me know and we’ll find a solution.

    Sean

  • #3 / Jan 13, 2012 10:57am

    jtoast

    32 posts

    Thanks, Sean. Looks like this solution should work with EE 1.6.9 as well. I’ll give it a try!

    http://expressionengine.com/legacy_docs/cp/sites/code.html

    Best,
    Jenny

  • #4 / Jan 13, 2012 4:31pm

    jtoast

    32 posts

    So, using weblog entries does indeed work for simple queries. But if I’m doing more advanced querying, is there a way to reference multiples sites via SQL? Or is this beyond the scope of the forums?

    Thanks much,
    Jenny

  • #5 / Jan 20, 2012 6:28pm

    Sean C. Smith

    3818 posts

    Hi Jenny,

    I’m not familiar with SQL queries myself. But I could move the thread to community support if you would like. You might find more people able to help you with the queries.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases