Question

My solution in SharePoint Hosted-Add-in.

I want to change default URL of NewForm.aspx with my custorm page through Visual Studio.. My custom page is in Pages/AddHoliday.html.

Can i do this directly in XML without SP destroyer(designer)?

enter image description here

Thank you previously!

Was it helpful?

Solution

I followed the 3rd LINK suggested by @SureshBolineni and it worked! The key point is to change the deployment type of the new added page to ElementFile. Just Follow the guide step by step and you do it. Good luck!

OTHER TIPS

Assuming you are using sharepoint online:

  1. In Office 365, I created a new site (not a personal site).
  2. I then opened the site in SharePoint Designer and imported the files into Site Pages.
  3. I renamed index.htm to index.aspx
  4. I right-clicked on index.aspx and set it as the home page.

This works for single html page sites.

For multi-page websites you will need to rename all html files to an extension of aspx and change your links to point to them appropriately.

Edit: I have confirmed personal sites work as well.

source: Is there a way to host static html using Office 365 sharepoint?

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top