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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -