Get Custom Property from Dynamic Module in Sitefinity -
how can custom property title module created in module builder?
i using method retreive module instance
public static dynamiccontent retrievepollquestionbyid(string guidid) { dynamicmodulemanager dynamicmodulemanager = dynamicmodulemanager.getmanager(); type pollquestiontype = typeresolutionservice.resolvetype("telerik.sitefinity.dynamictypes.model.poll.pollquestion"); guid pollquestionid = new guid(guidid); dynamiccontent pollquestionitem = dynamicmodulemanager.getdataitem(pollquestiontype, pollquestionid); return pollquestionitem;
i want retreive title property of dynamiccontent.
thanks.
add using telerik.sitefinity.model;
reference , able use , set methods. example pollquestionitem.getvalue("title")
, pollquestionitem.setvalue("title", "yourtitle")
hope helps!
Comments
Post a Comment