+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to fetch module field values

How to fetch module field values

5 posts, 0 answered
  1. Surya CD
    Surya CD avatar
    57 posts
    Registered:
    06 Apr 2010
    05 Jun 2012
    Link to this post
    Hi,
    A module is created using module builder. There are 2 fields in it, say page name and url.
    Currently, I am querying the table corresponding to that module in the database to fetch the field values. Is there any way to fetch these values without querying the database.

    Thanks,
    Surya.
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    05 Jun 2012
    Link to this post
    If you go into the place where you created your module, there should be a Code Samples area which should give you the exact code for a bunch of scenarios.  It's very cool because it's generated based on the module definition, not just a generic sample...so you can just copy\paste the code and it'll work (awesomesauce)

  3. Mark
    Mark avatar
    147 posts
    Registered:
    01 Jun 2010
    05 Jun 2012
    Link to this post
    I've found this Module Builder webinar and the solution that is below the webinar to be invaluable:
    http://www.sitefinity.com/blogs/gabesumner/posts/12-01-12/building_real-world_modules_with_sitefinity_rsquo_s_new_module_builder.aspx 

    It goes through fetching tags, categories, text fields, choice lists, images, ect.
  4. DEEPIKA
    DEEPIKA avatar
    1 posts
    Registered:
    11 Oct 2013
    24 Oct 2013 in reply to Mark
    Link to this post
    I m not able to access that
     http://www.sitefinity.com/blogs/gabesumner/posts/12-01-12/building_real-world_modules_with_sitefinity_rsquo_s_new_module_builder.aspx 
    because of some security issues. Can you help me ? My question is the same as that of Surya CD. How to fetch all the field values without querying the database?
  5. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    29 Oct 2013
    Link to this post
    Hello,

    Each module created with Sitefinity Module Builder has a code reference. There, you can find working C# or VB.NET samples of creating/deleting/querying items for your module.
    Please try to access the video tutorial from Telerik.tv  or download it from this link.

    If you keep having problems accessing any of the links above let us know to assist you further.

    Regards,
    Vassil Vassilev
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered