Hot answers tagged

9

Admin Pages: Admin pages are typically used to extend central administration functionality and links to such pages are given in central administration site. Central Admin Web site uses a virtual directory named /_admin that is similar to the /_layouts virtual directory of content sites. The administrative virtual directory is mapped physically to the ...


6

As Varun Verma answered already, I will try and support the answer with my own to get you as much resources/information as possible. :) Content pages in Site Pages library are wiki pages. Page Layouts in Pages library, on the other hand, are the layout upon which a new Publishing page is created. This article explains what page layouts are and how they ...


5

Create a JS file (HideScript.js) and paste the following code in it, which hides the ribbon for a certain page. Upload the JS file to some document library for e.g. "SiteAssets" function HideRibbon() { $("#s4-ribbonrow").hide(); var newHeight = $(document).height(); if ($.browser.msie) {newHeight = newHeight - 3; } ...


3

If I understand you correct, what you want is a site map of your SharePoint 2007. This can be done following the guide Creating A SharePoint 2007 Site Map.


3

The standard, simplest way of doing this is to use built-in wiki functionality: Type [[ then wait for the drop-down menu which should show other pages in the same library at the end of the menu 2 options -Lists and Views. Use keyboard Arrows ↑ and ↓ to select LISTS(very important: DO NOT USE MOUSE as the menu is quite Sensitive) Press the TAB key. This ...


3

If the file isn't expecting to be in a document library, you can use SharePoint Designer to upload the file to the root of the web site, and also set this page to be the HomePage for the site within SharePoint Designer. SharePoint Designer is a free product available from Microsoft, here: http://www.microsoft.com/download/en/details.aspx?id=16573


3

You should be able to provision html at the root of the site by a FEATURE that uses Module element. From VS.NET add project item of type Module, replace sample.txt with your html file and make sure the elements.xml looks like below assuming you have sample.htm file abd your module name is RootModule. The name of module and html file can be different in ...


3

This could be a case where the handle to the list is recreated with each call which would explain why the changes are not persisting. Try this instead : SPList pagesList = publishingWeb.PagesList; pagesList.EnableModeration = false; pagesList.EnableVersioning = true; pagesList.MajorVersionLimit = 10; pagesList.EnableMinorVersions = false; ...


2

Go to Site Settings, Site Collection features and verify that that the "Office SharePoint Server Publishing Infrastructure" feature is activated


2

This generally boils down to differences between Word's way of representing a document and HTML/CSS's approximations of such. One of the big areas they differ is indentation - SharePoint does its best to migrate the formatting but it doesn't always work. There are a couple things you can do about this: Use another tool to convert the document into ...


2

Yes, if the assets are stored in a document library and you save the site as a template, the assets will be there when provisioning a new site off the template. It may be a better approach though to bundle those assets into a feature and deploy them so they reside in the _layouts directory. If you need to make a change in the CSS or find a bug in the ...


2

What is the real objective? As far as I know there is no easy way of, from a webpart knowing if the page (list item) has just been published or checked in. You can use the following code to check if the page is in display or edit mode and take some action: if (Microsoft.SharePoint.SPContext.Current.FormContext.FormMode == SPControlMode.Display) { // ...


2

You will need to use the 'Approval Status' field in conjunction with Version field in order to find what you are looking for. For example, an Approval Status of 'Draft' but with a version of 4.5 tells you that there is a published version available (4.0) but that the page is still being revised (Draft). If this is a new site then you especially want to be ...


2

Make sure you perform a Full Crawl after creating the Managed Properties to populate them with data. Incremental crawl will not be enough.


2

For getting the pages you could utilize the same REST endpoint that is used for getting List Items, for example: http://<site url>/web/lists/getbytitle('<list title>')/items(<item id>) JavaScript Example function getListItem(webUrl,listName,listItemId, complete, failure) { $.ajax({ url: webUrl + ...


2

To create a SPUserField in PowerShell you can use $user=New-Object Microsoft.SharePoint.SPFieldUserValue(web, $userId, $userName) $item[[Microsoft.SharePoint.SPBuiltInFieldId]::Editor] = $user $item[[Microsoft.SharePoint.SPBuiltInFieldId]::Modified_x0020_By] = $user $item.SystemUpdate($false);


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

Here is a working example of the Elements.xml file: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="MasterPageModule" List="116" Url="_catalogs/masterpage"> <File Path="MasterPageModule\Custom.master" Url="Custom.master" Type="GhostableInLibrary" ...


2

I guess this will do the trick.. But I haven't tested it. $site = get-SPSite http://mysite.com $web = $site.RootWeb $pweb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web) $pPages = $pWeb.GetPublishingPages(); $pLayouts = $pweb.GetAvailablePageLayouts() foreach ($pPage in $pPages) { if ($pPage.Layout -eq $pLayouts) { ...


2

Add this to your SPServices call: CAMLQueryOptions: '<QueryOptions><ViewAttributes Scope="Recursive"/></QueryOptions>', So: SP.SOD.executeOrDelayUntilScriptLoaded( 'SP.UserProfiles.js', "~sitecollection/Style%20Library/Scripts/jquery.SPServices-2013.01.min.js"); SP.SOD.executeFunc('SP.js', 'SP.ClientContext'); $(function() { var ...


2

A Pages library is a document library that contains all the content pages for a publishing site. A site that has thousands or tens of thousands of pages stored in the Pages library must consider a unique set of issues that relate to managing these pages, and providing navigation between them in a site. ...


2

Following PS script should help: #Get site object and specify name of the library to look for in each site $site = Get-SPSite http://something.good $lookForList = "Pages" #Walk through each site and change content types on the list specified $siteA = $site.OpenWeb("http://something.good/news/mynews") write-host "Checking site:" $siteA.Title #Make ...


1

SharePoint disables the ability to create server-side script by default, you have to turn it on. You do that in the web.config file, in the configuration/SharePoint/PageParserPaths configuration section: <PageParserPaths> <PageParserPath VirtualPath="/_catalogs/masterpage/IndexQNewsArchive.aspx" CompilationMode="Always" ...


1

After googling I found one solution that if we omit RegistrationId and RegistrationType attributes from <CustomAction>, we can hide the button. The actual reason behind this is not yet clear to me but working like charm!!! Now my custom action is containing following code. <CustomAction Id="RemovePublishButton" Location="CommandUI.Ribbon"> ...


1

Yes. These type of queries are possible. You can do this by two possible ways Edit the Search Result WebPart and change the Query Criteria to query particular library By Creating a Result Source to query particular library For Creating result source - Check this blog ...


1

I'm not sure why in getPages method you are getting sub sites (SP.Web.getSubwebsForCurrentUser method), but the following example shows how to retrieve list items from Pages library: SPQueryHandler.prototype.getPages = function(){ var that = this; var web = that.clientContext.get_web(); var list = web.get_lists().getByTitle('Pages'); var ...


1

If in case you are unable to find any OOB solution, and ready to use some jQuery then I think it can be achieved in below steps. 1. First surround your breadcrumb control in master page with a div container, this help in catching on run time. Your Code <asp:Content ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server"> ...


1

Check Site Pages first or try searching that page and locate its exact url, if you have search working.


1

They'll be inside the Site Pages library, assuming you are not using the Publishing functions. If you are, they will be in the Pages library.



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