'Add a Page' option is missing in Custom Site definition based on Team site in sharePoint 2013
Hi,
I have created a custom site definition based on Team Site in SharePoint 2013. When we create a site based on this Custom Site definition then 'Add a Page' option is missing under settings ( top right corner) in Site. As shown in below screen shot, 'Add
a Page' option is not there. We are not allowed to activate Publishing feature in this site. Can anyone give me some pointers to achieve it without activating Publishing feature.
Please note- Publishing feature is not activated in Team site, even then 'Add a Page' option is always available in sites based on Team site template.
Thanks.
August 27th, 2015 12:34am
Hi,
If you don't want to activate Publishing feature, we can create custom site action to add the "Add a page" option in settings menu.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="AddPage"
GroupId="SiteActions"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="2000" Title="Add a page"
Description="Add a page" >
<UrlAction Url="javascript:OpenCreateWebPageDialog('/_layouts/15/createwebpage.aspx?IsDlg=1')"/>
</CustomAction>
</Elements>
The detail create steps refer to the link below:
http://www.learningsharepoint.com/2012/12/23/add-the-missing-create-site-link-in-site-actionsettings-menu-in-sharepoint-2013/
Best Regards,
Dennis Guo
August 27th, 2015 10:16pm
Thanks Dennis for your inputs.
I have one more question that if in future they activate publishing feature then 'Add a Page' will appear twice under settings. Please correct me if I am wrong.
If this is the case, then do you have any idea to handle this?
Thanks a lot!!
September 1st, 2015 1:48am
Hi,
If you activate publishing feature, we just deactivate the custom feature.
Best Regards,
Dennis Guo
September 1st, 2015 3:42am
Hi asharma123,
Any update?
Thanks
September 6th, 2015 2:26am
Thanks Dennis..!
My customer is not convinced with this. His questions are -
1. Why it is working on team site, while Publishing feature is not activated
2. And if we activate Publishing feature, neither it contains two options for 'Add a page' nor we need to de-activate any feature to have only one option for 'Add a page'
Thanks for you help..
September 6th, 2015 11:44pm
Hi,
This is custom action and a new feature, not relate the "Publishing feature", so it works while Publishing feature is not activated. If your customer wants to use the publishing feature, we just deactivate this custom feature.
Best Regards,
Dennis
September 7th, 2015 10:59pm