orchard_create_page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
orchard_create_page [2015/01/06 04:48] – created stephen | orchard_create_page [2017/01/01 20:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
// Create Foo page and attach to menu. | // Create Foo page and attach to menu. | ||
- | var FooPage | + | var fooPage |
- | | + | |
- | | + | |
+ | fooPage.As< | ||
- | var FooRoute | + | var fooRoute |
- | | + | |
- | _autorouteService.PublishAlias(FooRoute); | + | _autorouteService.PublishAlias(fooRoute); |
- | var menu = _menuService.GetMenu(" | + | var menu = _menuService.GetMenu(" |
- | | + | if (menu == null) throw new Exception(" |
- | | + | |
- | | + | |
+ | | ||
- | _contentManager.Publish(FooPage); | + | _contentManager.Publish(fooPage); |
// Create Foo layer | // Create Foo layer | ||
- | var FooLayer | + | var fooLayer |
- | _contentManager.Publish(FooLayer.ContentItem); | + | _contentManager.Publish(fooLayer.ContentItem); |
return 3; | return 3; |
orchard_create_page.1420519710.txt.gz · Last modified: 2017/01/01 19:50 (external edit)