Click here to Skip to main content
12,560,555 members (42,986 online)
Rate this:
Please Sign up or sign in to vote.
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:58am
CHill60 17-Dec-12 11:13am
Have you tried
pallav agarwal 18-Dec-12 6:17am
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


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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161026.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100