Alternative for mirroring?

Member since: 2007

I want to display an newsarticle in another context then the news container that the newsarticle is fysically in. How do i do that the best way? I rather not want to have the article in two containers... please help me with some examples, thank you.

#73867 Aug 13, 2013 12:58
  • Member since: 2008

    In EPiServer terms, "mirroring" means transferring content between two different sites. I assume what you are really mean is cross-publishing within the same site, or displaying the same content in several places ("in another context") on your site.

    Cross-publishing is usually done by creating a new article under Container X, then using the "fetch data from page" feature, linking to the original article under Container Y. There's also a Cross Publish plugin. However would lead to duplicate articles, which you don't seem to want.

    You could check out Anders Hattestad's blog post where he achieves cross publishing without duplicates by faking the article's location.

    If you just want to show/list your article in a news list or similar on another page on your site, you could

    • Get all the articles from Container X using DataFactory.Instance.GetChildren using Container X as the pagelink parameter
    • or
    • Get the specific article from Container X using DataFactory.Instance.GetPage using the article as pagelink parameter.

     

    #74573 Sep 02, 2013 10:44
This topic is locked because the last reply was posted more than 6 months ago. Please contact epw@episerver.com to unlock it.