Article Content

Posted by Community Admin on 03-Aug-2018 02:38

Article Content

All Replies

Posted by Community Admin on 18-Aug-2010 00:00

Hello,

Are you going to include a content type for articles, where we can add the author, publication date, etc.. or should we use the news content?

Thanks

Posted by Community Admin on 18-Aug-2010 00:00

Hi Sonu Kapoor,

Most probably we will not add additional fields to the existing modules, but you can create a new one through the API



sample

bool changedDB = false;
  
 App.WorkWith().DynamicData().Type(typeof(Document))
 
     .Field().TryCreateNew("FirstName", typeof(string), ref changedDB).Done()
     .Field().TryCreateNew("LastName", typeof(string), ref changedDB).Done()
     .Field().TryCreateNew("Phone", typeof(string), ref changedDB).Done()
     .Field().TryCreateNew("HowDidYouHear", typeof(string), ref changedDB).SaveChanges(true);
  
 if (changedDB) SystemManager.RestartApplication(false);


Greetings,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 18-Aug-2010 00:00

Thanks. I will take a look at that.

Posted by Community Admin on 18-Aug-2010 00:00

The api gets the fields into the sf_meta_fields table, how are the fields used within the built in controls or is this a developer role and requires extensive customisation and new template creation to be mapped. Upto now the documentation is limited and subject to change.

Regards,

Neil

Posted by Community Admin on 19-Aug-2010 00:00

Hi nenwmn,

There is no template mapping option in the BETA or UI setting that you can use. We will provide UI option for adding dynamic fileds for the RC or official release.

Sincerely yours,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 19-Aug-2010 00:00

Are we also going to have an option to add the new content type into the UI?

Posted by Community Admin on 19-Aug-2010 00:00

Hi Sonu Kapoor,

We have plans for this option, but I am not sure now whether we will be able to implement this for the official release. There will be another version released before the official one and then we will be able to say what exactly will go to RC and Sitefinity 4.0.

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed