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

Forums / Project Feather / Example of Project Feather

Example of Project Feather

9 posts, 0 answered
  1. Luke
    Luke avatar
    8 posts
    Registered:
    12 Oct 2015
    12 Oct 2015
    Link to this post

    Hey,

     I'm trying to work my head around how Sitefinity sites are best structured when using Project Feather.

    Is there a more complex example available than this?

    https://github.com/Sitefinity/feather-samples

     My understanding from the documentation is that I should be developing widgets in it's own project separate from the site project? Is there an example available where this is done? How does referencing script files work? Do I then skeleton the markup in the widget project and then flesh it out in the resource package?

     I'm also keen to know how to better manage javascript in general with sitefinity. Can I use something like requirejs? What limitations are there?

     Cheers,

  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    09 Sep 2016
    12 Oct 2015
    Link to this post
    Hi,

    You can download the Dev Magazine project which has all Sitefinity features available including the Feather functionality and capabilities. You can refer to our documentation to get further information for the project and all Feather widgets, components and packages.

    Regards,
    Stefani Tacheva
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Luke
    Luke avatar
    8 posts
    Registered:
    12 Oct 2015
    12 Oct 2015
    Link to this post

    But this is just an example as to why I'm confused.

    The Dev Magazine site has it layed out to have MVC controllers in the site project where the documentation suggests otherwise.

     

    http://docs.sitefinity.com/feather-create-widgets

     Is there well built up example of doing it as described in the documentation that can be used for reference?

  4. Bil
    Bil avatar
    51 posts
    Registered:
    27 Aug 2012
    12 Oct 2015 in reply to Luke
    Link to this post

    Hey Luke,

    I wrote up a long answer here on setting up Sitefinity for sustainabilty and follow common practices like creating your widgets project (outside of the main project) as well as making everything a nuget package.

    http://www.sitefinity.com/developer-network/forums/general-discussions-/creating-a-new-sustainable-setup-of-sitefinity-8-x

    Hope that helps.

  5. Luke
    Luke avatar
    8 posts
    Registered:
    12 Oct 2015
    12 Oct 2015 in reply to Bil
    Link to this post
    Bil said:

    Hey Luke,

    I wrote up a long answer here on setting up Sitefinity for sustainabilty and follow common practices like creating your widgets project (outside of the main project) as well as making everything a nuget package.

    http://www.sitefinity.com/developer-network/forums/general-discussions-/creating-a-new-sustainable-setup-of-sitefinity-8-x

    Hope that helps.

     thanks Bil. I've got a couple of follow up questions.

     With widgets in a separate library, how do I get intellisense to work correctly for the views?

    What is the ideal way to reference the javascript files in the widgets library?

  6. Bil
    Bil avatar
    51 posts
    Registered:
    27 Aug 2012
    12 Oct 2015 in reply to Luke
    Link to this post

    Hi Luke,

    1. Intellisense just works. The only thing I have in my views are my models so the @model directive is in the header and the model completion works. Not sure what intellisense you're looking for.

    2. The only javascript files I have so far are just the widget designers to get the data shuffling between view and models. They're in a /Scripts/WidgetName folder.

    Enjoy.

  7. Don
    Don avatar
    2 posts
    Registered:
    06 Oct 2012
    29 Dec 2015 in reply to Luke
    Link to this post

    Luke,

    Did you ever get this resolved?  I'm running into the same issue where none of the Razor directives are recognized by intellisense in the .cshtml.    Typically the MVC project would have a web.config in the Views folder but none of the examples have that.  

     

    Bill,

    I'm new to this as well and having the same issue Luke complained about.  I had already followed your instructions under "Adding a Widget Project" but still don't see any Razor intellisense in the separate module project.  

     

    Any help is appreciated.

  8. Don
    Don avatar
    2 posts
    Registered:
    06 Oct 2012
    31 Dec 2015 in reply to Don
    Link to this post

    Following the instructions  at the link below fixed my problem.  Within the SitefinityWebApp @ directives were recognized correctly.  It was just in the separate class library for my modules where the directives were not working.

    http://thetoeb.de/2014/01/05/enabling-mvc5-intellisense-in-a-classlibrary-project/

     

  9. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    23 Sep 2016
    31 Dec 2015
    Link to this post
    Hi,

    Thank you for sharing this with the community.

    Regards,
    Velizar Bishurov
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
9 posts, 0 answered