Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9234381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:46:36+00:00 2026-06-18T06:46:36+00:00

Ektron 8.0.1 SP1 I am using SmartForms and Content Types to read (and hopefully

  • 0

Ektron 8.0.1 SP1

I am using SmartForms and Content Types to read (and hopefully write) data. I can read data but now I am attempting to write a new record similar to the following.

ContentTypeManager<member> contentTypeManager = new ContentTypeManager<member>();
ContentType<member> newmem = new ContentType<member>();

newmem.SmartForm.details.field1 = "Chuck"; // This line throws 'Object reference not set to an instance of an object.' error
newmem.SmartForm.details.field2 = "Norris";
contentTypeManager.Update(newmem);

I get the error “Object reference not set to an instance of an object.” for that first assignment line. What am I missing?

I am having trouble finding good documentation on ContentTypes for 8.0.1 now that the Ektron website has been redesigned.

Thx.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:46:38+00:00Added an answer on June 18, 2026 at 6:46 am

    Thanks for clarifying, to ADD content to a folder that has a smartform assigned to it, the basic code block should get you started: (Note: the Html attribute of the content is simply the xml matched to the schema you created)

    Ektron.Cms.Framework.Content.ContentManager cmanager = new Cms.Framework.Content.ContentManager();
    Ektron.Cms.ContentData cdata = new ContentData();
    cdata.FolderId = 0;
    cdata.XmlConfiguration.Id = 0; //SMARTFORM ID HERE
    cdata.Html = "<root><field1>field1 value</field1><field2>field2 value</field2></root>";
    cmanager.Add(cdata);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to create new membership users in an Ektron CMS400.NET-based website by
I am using a highly patched version 8.0.1 SP1. I have a lot of
I am working on Ektron 8.6. How can i retrive the previous version of
Ektron 8.01 SP1 I have a client that wants to upload .m4a files. I
Currently, using Ektron CMS, i am trying to place a lock.jpg beside a protected
I'm using Ektron CMS version 8.5 SP2. I have some items in a taxonomy.
We are running into issues when doing searches with Accent Mark using Ektron CMS.
Can anyone explain the following module entry in the web.config of an Ektron site?
I have two separate applications, a c# MVC app and a CMS (Ektron) app.
I am working in Ektron 8.6. Does anyone know how API level caching is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.