Click here to Skip to main content
Sign Up to vote bad
good
See more: C#
I want to create page Layout(Templete id ,Content id and widget id is available) using Ektron Api.I want to insert Content in dropzone id 1 and widget in dropzone id 2. Please provide me code. Thanks for help.
Posted 17 Dec '12 - 2:58

Comments
CHill60 - 17 Dec '12 - 11:13
Have you tried http://dev.ektron.com/tutorials.aspx
pallav agarwal - 18 Dec '12 - 6:17
Thanks for your reply @Chill60.I have read this article and implement a code PageModel pageModel = new PageModel(); PageData pageData = new PageData(); pageModel.Get(2, out pageData, false); WidgetData widget = new Ektron.Cms.PageBuilder.WidgetData(); widget.ControlURL = "ContentBlock.ascx"; widget.ID = 27; // For content block // You also need to set other properties like Settings, DropID, ColumnID pageData.Widgets.Add(widget); pageModel.CheckOut(pageData); pageModel.Publish(pageData); But I am getting error "com:user does not have permission";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 273
1 Mahesh Bailwal 230
2 Ron Beyer 220
3 Aarti Meswania 195
4 Rohan Leuva 170
0 Sergey Alexandrovich Kryukov 8,548
1 OriginalGriff 6,819
2 CPallini 3,648
3 Rohan Leuva 2,933
4 Maciej Los 2,288


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid