Tag Info

New answers tagged

1

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

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

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 ...


1

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.


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 ...


0

If in case someone has the same issue, uninstalling Security patch KB3013126 fixed the error. The solution was provided by Microsoft Support.



Top 50 recent answers are included