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

Forums / 3.x Pre-release forums (retired) / If SiteFinity support html content management

If SiteFinity support html content management

12 posts, 0 answered
  1. smart
    smart avatar
    9 posts
    Registered:
    04 Apr 2007
    30 Apr 2007
    Link to this post
    Hi:

    We have an already built .swf flash file.  Several html files are linked from .swf.  We don't have original .fla file to change and recompile.  I am wondering if .html file could be uploaded to SiteFinity content management as .html file instead of .aspx file in order for link from .swf file to work.  To put .html file into content management is an important feature for our clients.

    Thanks a lot.

    Smart
  2. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    02 May 2007
    Link to this post
    Hi smart,

    You have two options to accomplish this.

    The first option is to use external .html pages. Create or copy your old html pages in the file structure of you site. Create identical pages in Sitefinity and set them as external pages. Type the actual URL in the text box that appears below the option button. Note you cannot edit external pages in Sitefinity.

    Your second option is to set Sitefinity to use .html extension for its pages instead of .aspx. This way you will be able to manage the controls and content of these pages. To change the extension, open your web.config and change the flowing element like this: 

    <cms defaultProvider="Sitefinity" pageExtension=".html" redirectToHomePage="true">

    Don’t forget to set the appropriate ISAPI mapping for .html extension in IIS!
    Please see Configuring IIS section in User Manual page 143 for more details.

    Regards,

    Bob
    the telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  3. smart
    smart avatar
    9 posts
    Registered:
    04 Apr 2007
    03 May 2007
    Link to this post

    Hi Bob:

    Thank you so much for your response. I am very happy to know I don’t have to get the original .fla file. The first option may not be our choice cause we do want to put .html into content management. I would like to try second option. Most of our pages are still .aspx including home page. There are only 5 .html pages which are linked from .swf files. So I am wondering if the given solution is still possible and I already have the following lines in Web.Config.

    <cms defaultProvider="NolicsCmsProvider" allowPageHistory="true" allowPageWorkflow="true">

    Please let me know how to modify it. Thank you very much.

    Smart

  4. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    02 Dec 2016
    03 May 2007
    Link to this post
    Hi smart,

    Please note that Bob's explanation is about Sitefinity 3.0 RC2. Changes in the web.config are significant and we strongly  recommend that you upgrade your project.

    Greetings,
    Hrisi
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. smart
    smart avatar
    9 posts
    Registered:
    04 Apr 2007
    04 May 2007
    Link to this post
    Hi Hrisi:

    Could you let me know the modification of the RC1 web.config.  I am not ready to upgrade to RC2 yet.

    Thanks.

    Smart
  6. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    04 May 2007
    Link to this post
    Hi Smart ,

    You don’t need changes in the web.config for RC1. Just add friendly URL for the page with .html extension. Again do not forget to set the ISAPI mappings.

    Let me know if you encounter any problems.

    Greetings,
    Bob
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. smart
    smart avatar
    9 posts
    Registered:
    04 Apr 2007
    06 May 2007
    Link to this post
    Hi Bob:

    I think I chose the second option which I have to edit .html in the content management.  Please advise how to do it.

    Thanks a lot.

    Smart
  8. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    07 May 2007
    Link to this post
    Hello Smart,

    1. Create a page.
    2. Go to Page Properties.
    3. Find the “Friendly URLs” section for RC1 or “More Options / Page URLs” for RC2.
    4. Add a URL matching the one specified in the flash (.swf) file.
    5. Save the changes.

    I hope this helps.

    All the best,
    Bob
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. smart
    smart avatar
    9 posts
    Registered:
    04 Apr 2007
    08 May 2007
    Link to this post
    Hi:

    I don't think the proposed method will work.

    Your way is to creator a us.aspx page and point to us.html page.  us.aspx could be edited.  But everytime user clicked the link from .swf, the link actually looking for us.html which is actually not exist.  If I physically put a us.html in the directory, then it becomes external page and could not be edited.

    Thanks.

    Smart
  10. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    08 May 2007
    Link to this post
    Hi smart,

    The page does not have to exist.
    Did you set the ISAPI mapping as described in a previous post?
    Please see Configuring IIS section in User Manual page 143 for more details.

    You can use any extension. You can even makeup your own and Sitefinity will handle it and you will be able to edit your page as long as IIS is configured correctly.

    Best wishes,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  11. smart
    smart avatar
    9 posts
    Registered:
    04 Apr 2007
    08 May 2007
    Link to this post
    Hi:

    I am sorry that I didn't quite understand why we need to set ISAPI mapping for .html.  The .html is client side file and I have no problem running all the .html under the project.  I am wondering if I miss something.

    And my problem right now is that if Request is ~/us.html file, it actually will show up, just like Request is ~/us.aspx will show up cause it is in SiteFinity SQL server database.

    Thanks a lot.

    Smart
  12. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    09 May 2007
    Link to this post
    Hello Smart,

    So here is simplified explanation of how it works. Html files are text files stored in the server file system. So they are server files. When a request with .html extension arrives, Internet Information Server recognizes the extension and sets the response HTTP header to text/html so the browser will know how to handle the response. Then IIS will read bytes form the .html file in small chunks and write them to the output stream (response) without any modifications. In this situation ASP.NET will not even be aware that this request/response action happened.
    By mapping .html extension to aspnet_isapi.dll you are instructing IIS to pass requests with that extension to ASP.NET instead of the default handler. From that point Sitefinity will take over the request. It will check whether the URL requested is valid for Sitefinity and if so, it will process it and write the output to the stream. If the URL is not valid for Sitefinity, it will return the request back to IIS. This way Sitefinity does not prevent IIS from serving URLs that are not specified to be handled by Sitefinity.

    I don’t understand your second sentence. I thought you wanted these specific URLs with .html extensions in your Flash to be actually Sitefinity pages.

    Greetings,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
12 posts, 0 answered