Hot answers tagged

6

There are a few things that control this in site settings --> navigation. Managed Navigation -- use a term set for navigation Add new pages to navigation automatically -- a new item is added to the termset for each new page Create friendly URLs for new pages automatically -- This is what you're concerned about - the page shows up in the URL without the ...


3

The answer to this question is: No, it is not possible to create another library with the same functionality as Pages on a publishing site.


3

In a way, your public facing O365 website is already configured that way. If you're not signed in you get this view: You have a sign-in option, but can't create posts to the Blog directly. But you can access blog posts when they are published. When you're signed-in you have more control of the site: You can take the entire site Offline at the top left ...


2

The SharePoint Server Publishing Infrastructure feature provides publishing functionality at the site collection level, Provides centralized libraries, content types, master pages and page layouts and enables page scheduling and other publishing functionality for a site collection. SharePoint Server Publishing feature provides publishing functionality at ...


2

Matt, You can create an user control to handle this in code. You can then add the control to the master page. Take a look at these two examples and let me know if I can assist. Inject dynamic javascript using MasterPage Programmatically add JS/CSS to pages


2

The navigation options which you have set tries to pulls the items from managed metadata term sets. Change the Global and Current Navigation settings as below to display the pages as navigation items. The folders will not be displayed as navigation items. But you can still add the folders manually and move the pages accordingly under the same navigation ...


2

You can do it through Welcome Page option but i guess for that you will need to activate Publishing feature at site level. The other options are If you want to set a Custom Page as a Home Page in a typical SharePoint Team site, you can simply do that by Opening the Page and selecting Page tab -> Make HomePage button to set this particular page as default ...


2

Once you activate the Publishing feature on site you lose the "Save site as a template" option in Site Settings. This is by design. One approach you can take is to define the site you want from a content/list/library perspective without enabling publishing. You can then create your template. Then you can create a feature that will apply the master page, ...


2

How to determine whether site is a Publishing site using CSOM: public static bool IsPublishingWeb(Web web) { var ctx = web.Context; var propName = "__PublishingFeatureActivated"; //Ensure web properties are loaded if (!web.IsObjectPropertyInstantiated("AllProperties")) { ctx.Load(web, w => w.AllProperties); ...


1

to find the recently visited sites, to find top sites etc. We can find it easily by using site.LastItemModifiedDate. using (SPSite siteCollection = new SPSite("siteurl")) { SPWebCollection sites = siteCollection.AllWebs; foreach (SPWeb site in sites) { DateTime dt = ...


1

Looks like I spoke a moment too soon. I feel a bit sheepish but I had been searching for a couple hours with no luck! http://stackoverflow.com/questions/27124620/sharepoint2013-site-csom-update-navigation-settings var publishingWeb = PublishingWeb.GetPublishingWeb(this.CC, subWeb); // WebNavigationSettings var ...


1

You need to learn some basics of SharePoint to start with, like creating Web Application, site collection and so on. You tried to activate Publishing feature on the administration web application, which is not used for your work; it's meant for the administration of the different sites. To start with create a separate web application and than site ...


1

If the Welcome Page is not found, then from open it with SharePoint Designer, right-click on a working page and click "Set as Homepage". You can also navigate to Navigate to http://sharepointsite**/_layouts/settings.aspx and update the Welcome Page from the Look and Feel: Title and Welcome Page Menu. If its the MasterPage that is corrupt/not found, you can ...


1

You are missing ClientContext.ExecuteQuery. After clientContext.Load(pWeb); use clientContext.ExecuteQuery(); UPDATE It appears that PublishingWeb.GetPublishingWeb creates a PublishingWeb object whether the site is a publishing site or not. As you may be aware the PublishingWeb has a Pages library, the workaround can be to check whether a library with this ...


1

you may want to take a look at this Change Left hand navigation sharepoint 2010 and this MSDN discussion. Helped us a lot. EDIT: we are currently tied up right now, but compelled to leave the answer just in case someone stumbles upon this. I was hoping to post an update later (off-work) but guess I have to leave work to answer this now, before this gets ...


1

What you are saying is correct. However in case of SP online we cannot activate the custom features at web level using the code. We will get an error like Feature with Id is not installed in this farm, and cannot be added to this scope


1

Web Part Pages and Wiki pages can be stored in any document library as long as the appropriate content type has been added to the library via its settings. However, the library actually named "Pages" is created & maintained by the Publishing feature. Attempting to rename or delete it will probably not work and/or cause problems. If you want to create ...


1

This isn't set at the library level, it's set at the site level. Site Settings > Page layouts and site templates and add the layout to the page layouts list and seperately set the New Page Default Settings to your template.


1

publishing sites in SharePoint has much more than just the publishing feature. It includes special webparts to the masterpage and a unique hierarchy of form pages. So, Custom Team Site template will not work with publishing site. ...


1

Here is what I found You change home page to new name SharePoint set site home page = new name Tries to change the name of actual file I believe step#2 should have been done after #3 or there should be a rollback mechanism


1

I have done some extensive research on this topic a few weeks ago because I had a similar requirement on the project I worked on. Even though you can setup crawl rules that exclude subsites, you cannot setup conditions to take page X is not published into account. What I ended up doing was creating a TimerJob which ran a couple of times a day (based on how ...


1

A few months later I've cracked this myself. It seems there is a "Size" Managed Property available that represents the size of a page/item. So on subsites for which their Welcome Page is unpublished this Size property is set to 0 (zero) (presumably because the page could not be crawled). So in order to prevent unpublished subsites from appearing in the ...


1

Unless you click on "Automatic Update" it simple copy-pastes in the resuable-content in a new page and then forgets about it. If you do have Automatic Update on the other hand, the pages instead store references to the resuable content (not the content itself) and fetches the reusable content on render: The "storage format" of the content in a ...


1

The SPFile object has a ForwardLinks and Backwards link property that contain SPLinkCollection that you may be able to query. Add-PSSnapin Microsoft.SharePoint.Powershell -ea 0; $web = get-spweb '<url>' $list = $web.lists['Pages']; foreach($file in $list.items){ $links = $file.ForwardLinks; foreach($link in $links){ if($link.url ...


1

The changes can be made in site definition files. If the site created by you is using custom site template(You have created template) you can set it in the onet.xml file of the Site definition. In the onet.xml, refer the module in the configuration and define the module int he following way <Modules> <Module Name="Default" ...


1

You can create a custom permission level that does not allow deleting. You'd essentially copy contribute and deselect the delete option. This solves point 1. For point 2, there isn't really anything that handles this. Item level security settings on lists comes close, but it isn't fully what you need and isn't available in libraries. You'd probably need to ...


1

The link explains only to place how you can place the dynamic Web Part zone in that page layout. Once you save and select that page layout in any of your publishing page, you will be able to add a web part in edit page section. Read this article. If you want to place your custom static Web Part zone in page layout, Though there are different ways to do ...


1

No - there is nothing like this out of the box. You can develop something like this depending on what you need to push. If the environments are the same, you can rely on the export / import methods for merging content, but that wont activate features for you. If content is the same and there is no threat to overwriting production, you can move the ...


1

I much prefer using a team site and use existing site features and apps to get the same effect that a specialized site template gives you, excluding the very specialized things like records center, video portal, etc. You said it yourself, mobile is key, they both methods create content the same way, both can have mmetadata navigation and filtering, and the ...


1

John, I found a few helpful links on comparing the two options. I think the most important difference you may want to consider is the metadata implementation. The library option looks to be more restrictive. While you can manually add metadata to Wiki Page Library, you can’t add the fields to the text layouts. This means users would have to edit the ...



Only top voted, non community-wiki answers of a minimum length are eligible