示例#1
0
        public static XmlDocument getContentXML(long contentID)
        {
            Ektron.Cms.Framework.Core.Content.Content contentManager1 = new Ektron.Cms.Framework.Core.Content.Content(ApiAccessMode.LoggedInUser);
            ContentData contentData = contentManager1.GetItem(contentID);

            XmlDocument XMLDoc = new XmlDocument();
            XMLDoc.LoadXml(contentData.Html);

            return XMLDoc;
        }
示例#2
0
    private object[] getEktronContenItem(string p, string resourceType)
    {
        object[] array = new object[10];

        Ektron.Cms.Framework.Core.Content.Content contentManager1 = new Ektron.Cms.Framework.Core.Content.Content(ApiAccessMode.LoggedInUser);
        ContentData contentData = contentManager1.GetItem(long.Parse(p));

        array[0] = contentData.Id;
        array[1] = contentData.Title;
        array[2] = ""; // contentData.Teaser;
        array[3] = contentData.Quicklink;
        array[4] = "N";
        array[5] = "N";
        array[6] = "";
        array[7] = "";
        array[8] = resourceType;
        array[9] = "0";

        return array;
    }