This project is read-only.

All new content items set as Home Page...

Topics: General, Troubleshooting, Writing modules
Aug 11, 2013 at 3:59 PM
Hi all!
I have a small problem. May be it is very simple, but I can't find a solution.
In my module, in Controller i create new content item of my Type - Article:
There is part of code:
public ActionResult Import()
            var rnd = new Random();
            var al = rnd.Next();
            ContentItem contentItem = Services.ContentManager.New("Article");
            contentItem.As<ArticlePart>().Title = "owdmowmdomwodmwodmwomd-" + al;
            contentItem.As<AutoroutePart>().DisplayAlias = al.ToString();
            return View();
All is OK, but all content items created as Home Page. Please tell me how i can solve this and where is my mistake.

Thanks in advance and sorry for Bad English!
Aug 12, 2013 at 5:51 PM
When i add IContentManager:
Problem was solved

Sorry for stupid question...