Alternative for mirroring?

Vote:
 

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
Vote:
 

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 thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.