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.

MSM - Categories creating URLs on wrong site

March 04, 2011 1:03pm

Subscribe [4]
  • #16 / Mar 09, 2011 5:08am

    Richard Wiggins

    60 posts

    Hi Richard,

    You will want to amend your queries to check against site_id and or group_id. Example:

    {exp:query sql="SELECT * FROM exp_categories WHERE cat_url_title = '{segment_2}' AND site_id != 1 LIMIT 1"}

    You will need to put the appropriate id instead of 1. You can get the site_id from the edit sites page (Sites > edit sites)

    I hope this points you in the right direction.

    Best regards,
    Barry

    Hi Barry,

    That has fixed it. Thank you so very much 😊

  • #17 / Mar 09, 2011 10:37am

    Sue Crocker

    26054 posts

    Yeah! Glad Barry was able to assist. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases