Multisite setup

Home Forums Calendar Products Events Calendar PRO Multisite setup

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #100377
    hawkesley1
    Participant

    i have Pro installed and have 3 sites.
    I have network activated pro and I want to display the calendar on one of my pages.
    I have edited the permalink to http://localhost/wordpress/events which is fine for site 1 but fails for site 2 and 3 as editing the permalink in site2 gives http://localhost/site2/events-2/ and so on.
    Is there a way to set up multisite so that each site has its own calendar? How do I resolve the problem.
    I have tried setting the plugin to each individual site but with the same result.
    Should I clear the database of events related data and start again, and if so which records are relevant.
    Many thanks
    mike

    #100678
    Barry
    Member

    Hi Mike,

    Sorry to hear you are experiencing problems. It sounds like perhaps you are trying to create actual WordPress pages with a slug of events – is that correct? If so, that is the wrong way to set things up for The Events Calendar as we don’t actually use those types of page to house the calendar.

    Instead, you can define the slug for single and archive event views in our settings page at Events → Settings → General (the Events URL Slug and Single Event URL Slug fields).

    Does that clarify things / am I misunderstanding?

    Let me know!

    #100922
    hawkesley1
    Participant

    Thanks for com in back Barry.
    To clarify, what I want to do is display the calendar in a wordpress page. For example the page would be ‘Display Appointments’ and would have a menu link on the main menu of the website.
    The page is set up as a normal page with a Twenty Ten template one column no sidebar,
    and the permalink i edit to say http://localhost/somewhere/events/
    This works for site 1.
    However for site 2 ‘events’ is modified to /events-2/
    Could you explain what you mean by slug? How can I use a slug to achieve display of the calendar on my chosen wordpress page?
    Should I network activate the plugin or go with activation on a site by site basis?
    Many thanks for your help,
    mike

    #101019
    Barry
    Member

    Sure, so the first thing to note is that The Events Calendar has not been built in such a way as to let you embed it within a regular WordPress page (it’s possible to do so, but is an advanced customization and not something we can assist with).

    By default and with pretty permalinks enabled (ie, example.com/human-friendly/ as opposed to example.com/?p=523) the main event view is made accessible at example.com/events/.

    When I talk of the events slug, I’m referring to the /events/ portion of the URL, and you can adjust this as described in my last post.

    However for site 2 ‘events’ is modified to /events-2/

    So if this is happening with ordinary WordPress pages it is really a facet of WordPress rather than something our plugin controls – though I am slightly surprised it would happen on two different blogs within the same multisite network … but … this is really something to take to the WordPress forums.

    Does that clarify things?

    #101040
    hawkesley1
    Participant

    Thanks for that Barry.
    I also asked:-Should I network activate the plugin or go with activation on a site by site basis?
    Also can you give me a pointer to advanced customisation as I could probably code it myself.
    Thanks

    #101482
    Barry
    Member

    Should I network activate the plugin or go with activation on a site by site basis?

    I don’t think there is any reason to favour one over the other – whichever works best for your own circumstances is probably the right path to choose here.

    Also can you give me a pointer to advanced customisation as I could probably code it myself.
    Thanks

    OK, so the basis of this would be including the relevant template, ensuring it has access to any variables it expects to be in scope and also enqueuing any support assets – such as JS and CSS files (which is where people can come unstuck). For the first half you can certainly make use of tribe_get_view(), for other aspects you can probably fall back on general WP API functions (such as for enqueuing scripts, ect).

    I hope that helps 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Multisite setup’ is closed to new replies.