Click here to Skip to main content
13,597,282 members
Rate this:
Please Sign up or sign in to vote.
See more:
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 | Cookies | Terms of Service
Web04-2016 | 2.8.180621.3 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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