• Resolved asif7861

    (@asif7861)


    Hi,

    We need to have a central business directory for a multisite network. The entire directory needs to reside in the main site or a dedicated ‘directory’ subsite. Each entry will be tagged (through categories probably) e.g. a contact which belongs in the marketing department will be tagged with the category “Marketing”. The marketing subsite will only show contacts which has the ‘Marketing’ category. The main site will show all the contacts. The users should not be able to create contacts at their individual subsites. Is this possible out-of-the-box or does it need custom coding?

    Thank you,
    Asif

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    I believe Connections already supports such a usage scenario.

    Since you have a multisite installation… if you add define('CN_MULTISITE_ENABLED', FALSE); to the wp-config.php file it will force Connections to run in “single site mode”.

    You would activate Connections on your primary site and you add entries there. One each subsite where you want to use Connections you would activate Connections and the database of the primary site will be used.

    Hope this helps, let me know.

    Thread Starter asif7861

    (@asif7861)

    Thanks. Two things:

    1. If we enable the plugin on sub-site, we will be able to create contacts from that site, right? We want to avoid that. We want to create contacts only at the main site level.
    2. We want to be able to display a filtered list at the subsite level. If my domain it http://example.com, http://example.com/contacts should list all the contacts whereas http://example.com/subsite1/contacts should display only the contacts that have a particular category e.g. ‘subsite1’.

    Is this possible out-of-the-box?

    Thanks again,
    Asif

    Plugin Author Steven

    (@shazahm1hotmailcom)

    RE: If we enable the plugin on sub-site, we will be able to create contacts from that site, right? We want to avoid that. We want to create contacts only at the main site level.

    Probably, yes. I have not test such a scenario so I do not know for certain. That said, on you subsites use roles/permission to prevent access to the Connections admin pages.

    RE: We want to be able to display a filtered list at the subsite level. If my domain it http://example.com, http://example.com/contacts should list all the contacts whereas http://example.com/subsite1/contacts should display only the contacts that have a particular category e.g. ‘subsite1’.

    When displaying the directory on subsites, use the category shortcode option to limit the display to your chosen category.

    RE: Is this possible out-of-the-box?

    As mentioned there is no specific support built into Connections to prevent adding new entries from subsites. So it is likely possible. That said, you can use the builtin support WP has for user roles to prevent access to the Connections admin pages so input of new entries would not be possible.

    As for filtering by category, yes, that is also possible with the shortcode option I mentioned.

    Hope that helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Central directory shared across sites in multisite environment’ is closed to new replies.