Click here to Skip to main content
Rate this: bad
good
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
Comments
CHill60 at 17-Dec-12 11:13am
   
Have you tried http://dev.ektron.com/tutorials.aspx
pallav agarwal at 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
 
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
0 Schatak 400
1 OriginalGriff 355
2 Sergey Alexandrovich Kryukov 144
3 _Amy 115
4 Rob Philpott 100
0 OriginalGriff 7,097
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,504
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2014
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