Events for 2 side-by-side websites

Posted by Community Admin on 03-Aug-2018 19:47

Events for 2 side-by-side websites

All Replies

Posted by Community Admin on 26-Apr-2012 00:00

I have two websites that live next to each other in Sitefinity (5 on Azure)
-SiteA
-Home
-Events
-Event Details
-SiteB
-Home
-Events
-Event Details 

I am categorizing my events based on Site Title so when I am on Site A, I only get Site A's events...same if on Site B.  It only displays site B's events.

When Viewing the events on Site A, the url (Azure) it's taking me to is:
long-guid.cloudapp.net/SiteA/events/event-details/2012/04/26/site-a-event-title

But when I am on SiteB and go to the events, the URL is listed as this:
long-guid.cloudapp.net/SiteB/events/event-details/2012/04/26/site-b-event-title 

The problem is, this page doesn't exist on /SiteB/  The event will load if I replace it with /SiteA/ but it's using Site A's template.  How do I manage events with one Event module in Sitefinity that displays events on two separate websites?


Posted by Community Admin on 26-Apr-2012 00:00

Hi,

Thank you for using our services.

There are several approaches to this scenario, as Sitefinity offers you a lot of flexibility when it comes to sharing content between your sites.

The easiest solution would be to try using a URL rewriter, for example this one, that would replace the URL when it meets this particular pattern and substitute the desired part of the URL.

If you're having a problem with the above solution you can setup an outgoing RSS feed from your SiteA and an incoming Feed that would publish as Sitefinity content -> Events in SiteB. This way your events will be present in both databases and keeping the feed running will guarantee you that the content is in sync. For a more detailed explanation of configuring RSS FEeds in Sitefintiy, please check this article from our online documentation.

Another option is to dynamically retrieve the events, since Sitefinity is built on the provider model, so you cans setup a provider to pull your content from the Site A data repository. For more information you can check this blog post.


I hope you find the above information useful. Please do not hesitate to get back to me if you need any further information or have some other questions. I'll be glad to assist you further.

Kind regards,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 26-Apr-2012 00:00

I don't think the URL rewrite thing will work since my sites live on Azure.  I don't want to have to reinstall and configure the URL rewrite any time I spin up or spin back Azure boxes.

Thinking about the other suggestions, I don't know how any of that would work either.  The events live right next to each other, but tagged as SiteA or SiteB.

event1  tag:SiteA
event2  tag:SiteB
event3  tag:SiteB
event4  tag:SiteA

So while the tags appear to narrow the visible events on each of the two sites, it doesn't change the fact that the URL for event3 on SiteB is still referencing a SiteA url:
long-guid.cloudapp.net/SiteA/events/event-details/2012/04/26/event3

It's almost like the events should live at the root of the application and regardless of the path you are in, /SiteA/ or /SiteB/.  Is there a way to tell an individual event to tie to a folder or "group page" within Sitfinity?

Posted by Community Admin on 26-Apr-2012 00:00

OK, I think I'm getting closer.  I think the problem is that when I specify to go to the Events Detail page I have set up on /SiteB/, it doesn't work.  But if I select to auto-create the details page, then /SiteB/events/2012/04/26/event3 works!

Now the problem is, the Event Registration Module (from the marketplace) can't be dropped onto the event since the page is auto-generated.  Is it possible to inject into an auto-generated event detail page the Event Registration Module?

This thread is closed