Confusion with Site Definition & Site Pages

One of my co-worker raised a concern over editing Site Pages in Advanced Mode. This is regarding my previous article Sleek Way Of Developing Fully Immersive SharePoint Pages.

The argument raised was “We should not edit Site Definition” due to the reasons mentioned in the article here. Please refer the section on it.

image

I would like to clarify this here as more people would be thinking the same.

image

Site Definition vs. Site Pages

The core point of clarification is Site Definition is different from Site Pages.

Site Definition consists of:

· Web Parts

· Workflows

· XML Files

· Lists & Libraries

So Site Definition is a Package of Solution.

For example, Let us take example of Publishing Site Definition.

Publishing Site Definition

As you know Publishing Site Definition provides the following advantages:

· An author can create content using a page template

· Content will be reviewed & approved by Approvers

· Content gets Published

To incorporate all these functionalities, the Publishing Site Definition has:

· Built-in Permission Groups

· Built-in Workflows

· Built-in Pages

· Built-in Code

So, if we are going & modifying the above Site Definition using SharePoint Designer Advanced Mode editing, we are risking the following:

· Future updates to above Site Definition will not be applied

· Future SharePoint upgrades can break functionalities

image

Normal Mode Editing is done through Browser & only the content in Web Part Zone is edited. Advanced Mode Editing is done through SharePoint Designer Advanced Mode. Here the page area which cannot be accessible in Normal Mode Editing too is editable. This causes detaching from Site Definition formats.

Our Case

Coming back to our case of Site Pages, we are clearly not breaking any functionality. Following are the reasons:

· We are just using a Site Page & not a Site Definition

· We do not use any Site Definition features like Workflows, Approval etc.

· We are inheriting a Standalone ASPX page with less minimal SharePoint tags

The following link too recommends Advanced Mode editing.
image

Conclusion

The conclusion is we can continue with Advanced Mode editing of our Standalone ASPX Pages.

image

You can also use notepad for creating the above Site Page. No special requirement for SharePoint Designer.

References

https://support.office.com/en-us/article/Create-SharePoint-site-pages-0ee31678-ee55-40cd-9f48-ea8700035dbd

https://support.office.com/en-us/article/Managing-SharePoint-Designer-2010-E12D76CE-83F7-4DDE-864C-6C1E210399B6

Summary

In this article we have clarified a Confusion scenario with Site Definition & Site Pages.

Leave a Reply

Your email address will not be published. Required fields are marked *