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

Forums / Developing with Sitefinity / Adding Custom Fields to Existing Sitefinity Modules

Adding Custom Fields to Existing Sitefinity Modules

5 posts, 0 answered
  1. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    17 Nov 2008
    Link to this post
    I wrote a pretty hefty article on adding custom meta fields to Sitefinity Modules:

    http://goondocks.com/blog/08-11-17/Adding_Custom_Fields_to_Existing_Sitefinity_Modules.aspx

    There is also a webinar that goes along with this.  I'm not really sure when this will be posted though.

    Gabe Sumner
    http://www.goondocks.com/
  2. Joel
    Joel avatar
    29 posts
    Registered:
    13 Feb 2008
    17 Nov 2008
    Link to this post
    I just watched a Webinar on the exact same subject (pretty good).. might have been yours, was distributed by Martin Kirov at Telerik, but it didn't have anyones name associated with it (I think... I tried to find the authors name).

    I swear I remember reading somewhere that you could only use two meta fields with the Events module (I actually went a while thinking I was limited to the number of meta fields I could use and that I could only use them with the events module).

    I considered at one point of generating a module completely off of meta data ~ until I heard more about the Generic Content base system that is used in Sitefinity. I'd like to see a sample implementation around the Generic Content base module (completely custom, not extending an existing system). I guess where I am a bit confused is if I use custom tables and store my data using a custom data provider, but still use Teleriks framework, does it use the same principles as described in your documentation (mapping control IDs and their text attributes to the values) or do I have to use the Generic Content base classes. What I have been doing is creating custom tables/data access layers and modules for everything I do, manually mapping values to controls, when I think this could be so much easier.
  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    17 Nov 2008
    Link to this post
    Hi Joel,

    I'll take the blame for that webinar.  I realized after it was done I never said my name.  I agree your scenario would make an interesting future webinar.

    First off, some information about creating a Custom Generic Content Based Module can be found at the following web sites:

    http://www.sitefinity.com/help/developer-manual/overview.html
    http://www.josephguadagno.net/Articles/ArticleDetail.aspx?id=10&AspxAutoDetectCookieSupport=1

    Regarding your question; if you base your module on Generic Content then you aren't really using your own custom database tables.  Rather Sitefinity's Generic Content is handling the data storage on your behalf. 

    If you would like, you can build a custom module that doesn't use the Generic Content base.  In this case, you could create your own custom tables and completely build your own data-access layer.

    Gabe Sumner
    http://www.goondocks.com/
  4. Joel
    Joel avatar
    29 posts
    Registered:
    13 Feb 2008
    17 Nov 2008
    Link to this post
    One thing I have to mention here is how I have noticed Sitefinity's documentation and samples getting so much better recently. I have noticed multiple times over the past couple months that some really good samples have been coming out. I've been developing against Sitefinity for around 6 months now and it just seems to be night and day from when I first started (unless I was just not looking in the correct locations when I started). I am going to build my next module (if possible) against the Generic Content base classes and see how it goes.

    Anyway, great Webinar and article, nice job Gabe.
  5. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    18 Nov 2008
    Link to this post
    Thanks Joel.  We're trying and I agree it's getting a lot better.  Go read my first review of Sitefinity (written over a year ago):

    http://www.goondocks.com/blog/07-10-25/Sitefinity_3_1_-_One_Month_of_Impressions.aspx

    Can you believe Telerik gave me a job after writing this?  Sitefinity has come a long way.  In the next year I expect even more improvement.

    The other thing I'm really excited to see is community written articles.  One of the links posted above was created by Joseph Guadagno.  There are many other articles written by other Sitefinity community members.  

    It's great to see the community sharing their ideas & experiences. 

    Gabe Sumner
    http://www.goondocks.com/
Register for webinar
5 posts, 0 answered