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

Forums / Developing with Sitefinity / knowledgebase module

knowledgebase module

6 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    15 May 2008
    Link to this post
    I wanted to put this in the suggestions forum but then I figured the way i'm looking at it I might try to implement it myself. I thought of just doing the module as intrasite using subsonic as a datalayer, but then I would have to build in the functionality for categories, ratings, etc myself and why duplicate work when it's already builtin? Since the generic content already has support for categories, tags, ratings, and comments, I could just wrap around that no?

    but i'm not really sure how to get started. I've tried looking at the examples in the blog but it looks like if I want to be able to inherit from the generic content then I have to create a pluggable module and a separate data and control class. I don't have the nolics engine so i can't develop the data class separately...

    is there a simpler way to wrap existing functionality of the generic content control into a new intrasite module while still keeping access to the core functionality that that content type provides? or can I only do this as a full pluggable module? If it is possible to do this as intrasite can you give me an idea of how to get started?

    thanks!

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    19 May 2008
    Link to this post
    I found this page about how to extend the content view but it was pretty generic. I'm pretty sure this is where I need to start, but where exactly am I supposed to implement this? it says to override some methods, but where? do I make a class that inherits from content view or what?

    many thanks
  3. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    20 May 2008
    Link to this post
    Hello SelArom,

    In order to inherit the functionality, you will need to build a pluggable module (can't do that with intra-site unfortunately) that inherits from Generic Content module. There is a sample on how to do this on our blog which you can find here.

    By doing so, you will have most of the work done. Now, if you need to extend this module, you can do that with Subsonic and without using Nolics. You can add database logic directly in the manager class and use SubSonic as your data layer.

    I hope you'll find this information helpful. Let us know if we can help you with anything else.

    Kind regards,

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 May 2008
    Link to this post
    thank you, this is the example i've been following but I notice that it creates two tables, one for the basic events table (id, contentid and date) and then another table for event categories. is this obsolete practice? I thought the categories for generic content were stored as metadata in the GCMetaData table. is this correct or should I create the categories table for my module anyway?

    thanks!
  5. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 May 2008
    Link to this post
    well I went the route of just making one table for the knowledge base and so far everything is working great! thanks for your help, I'd love to publish this when i'm through :)

    but now that I've got the basic module set up to add/edit/remove entries, I need a way to display them. I've organized them by category, but how do I make use of the url rewriting to make a control to display 1) a list of all categories and 2) a list of kb entires for a specific category?

    I'm pretty sure that I'll of course need to make controls to display these items, but how do I get the specified data from the url if it's rewritten? i've never worked with url rewriting before so if you can give me a basic idea of how to grab something like site.com/knowledgebase/category i'd really appreciate it!
  6. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 May 2008
    Link to this post
    hah never mind i got it, i'm guessing I start with the categorieslist control and go from there

    have I mentioned how much I love sitefinity?

    :D
Register for webinar
6 posts, 0 answered