Article Content
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
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
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
);
Thanks. I will take a look at that.
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
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
Are we also going to have an option to add the new content type into the UI?
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