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

Forums / General Discussions / Adding microweb to site

Adding microweb to site

8 posts, 1 answered
  1. Becky
    Becky avatar
    13 posts
    Registered:
    29 Jan 2014
    15 Feb 2014
    Link to this post
    I have a self-contained microweb with about 25 files in it, and I've been asked to add it to the website so that it can be accessed under our normal web address even though it isn't part of the Sitefinity files. I am new to Sitefinity -- I took over content editing after others set up the initial site. I can't find any information on how to achieve this and I don't want to mess anything up with trial and error. I've attached a screen shot of what the files list looks like. Am I supposed to create a folder under here and copy the files up? Am I supposed to stay out of this area with non-Sitefinity files?

    Any help would be most appreciated.
    Thanks,
    Becky
  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    17 Feb 2014
    Link to this post
    Hello Becky,

    In general, Sitefinity is a default ASP.Net project so you are allowed to place folders under the root one and access them using a call to YourDomain.com/YourFolder/YourFile. It is good practice that you do not use ASP.Net reserved folders such as the App_Data one in Sitefinity's case.

    With that said, it is possible to place your files under the Sitefinity root folder. Depending on what the files are, you can have access to them using your domain. Provided the files are a separate project like a class library for example, you may need to register them in a Global.asax file in order for you to be able to use it successfully.

    Regards,
    Ivan D. Dimitrov
    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. Becky
    Becky avatar
    13 posts
    Registered:
    29 Jan 2014
    18 Feb 2014 in reply to Ivan D. Dimitrov
    Link to this post
    OK, I created a folder at the top level and copied a couple of files into it. I tried opening http://MyDomain.com/web-2-case/default.html but got a 404 error. I don't know if this is the right location. How can I tell if it's that or if I need to register it in a global.asax file (which I also don't know anything about.

    Thanks,
    Becky
  4. Becky
    Becky avatar
    13 posts
    Registered:
    29 Jan 2014
    18 Feb 2014
    Link to this post
    Here's the screen shot of the files in the web-2-case folder.
  5. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    19 Feb 2014
    Link to this post
    Hello Becky,

    I can see you are trying to add simple html files and you do not need to register those in your global.asax. Please view this video of how I open one such file within a sample project. You can see that the url is corresponding to the place the file is inside my root directory.

    Regards,
    Ivan D. Dimitrov
    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
  6. Becky
    Becky avatar
    13 posts
    Registered:
    29 Jan 2014
    20 Feb 2014 in reply to Ivan D. Dimitrov
    Link to this post
    Thanks! The files are .html, .css, .js, and images. Do any of those file types need to be registered?

    Becky
  7. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    20 Feb 2014
    Link to this post
    Hello Becky,

    No you do not need your global asax for these sorts of files. The Global.asax in your solution is used to register code that needs to be compiled so as to run along with your instance of Sitefinity. One such example can be an external class library that you wish to include in your project.

    Regards,
    Ivan D. Dimitrov
    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
  8. Becky
    Becky avatar
    13 posts
    Registered:
    29 Jan 2014
    20 Feb 2014
    Link to this post
    Great -- thanks!
    Becky
    Answered
8 posts, 1 answered