Hot answers tagged

16

Let me see if I can explain pages in SharePoint without making you even more confused. The difference between the different kind of pages very much depend on whether your view is as developer or as end user. As you're refering to MSDN I'll start with the developer view. SharePoint Pages from a developer point of view From a developer point of view there ...


9

I have managed to make this work by combining the information here and here. To enable the bookmark functionality you need to get an admin to enable SharePoint Server Publishing Infrastructure feature on the site collection level and then the SharePoint Server Publishing feature must be activated on the site level. Start by selecting the text that you ...


6

You can use a "Wiki Library" that houses wiki pages - in this library's settings, there is a field called "wiki content" by which you can display the content without all the surrounding navigation. Try the following: Add the Wiki Web Part associated with your Wiki library, then Configure it to only display "Wiki content" and filtered for the name of the ...


5

You can add it as a listview webpart. Following are the steps: Edit the page Click on Add webpart. Click on lists. Select the list to be added to the page. Reference


5

Ok, solved it. The script links to the jQuery and jQuery UI files needed to have the language and type attributes set. This did not work: <script src='/sites/mysite/SiteAssets/Scripts/jquery-1.11.1.min.js' ></script> <script src='/sites/mysite/SiteAssets/Scripts/jquery-ui.min.js' ></script> <script> $(function () { ...


4

Yes, it's possible. I had a blog post on this very topic, but the blog site has since been deactivated. Basically you do it like you would add a web part to any other Web Part Page. When it's time to specify the zone, use the "wpz" zone. Also, you need to add some markup to the Page's "WikiField" that resembles this (substituting your Web Part ID Guid ...


3

If you are only looking to affect things within the main content portion of the page (and not the page title bar, quicklaunch, etc.), on wiki pages all the content is in a div with an ID like ctl00_PlaceHolderMain_WikiField. Knowing that, you could set up your CSS selectors to always start with div[id$='WikiField'] so that you will only be targeting ...


3

Wiki page is like wikipedia pages. We allow user to edit the pages. Application page is the page which we can use the same page in different site collections or websites. Suppose if we want to show custom error page with nicely designed interface in each of our site collection then we can create an application page and give the redirect url to that ...


2

You can use: 1. /_api/web/GetFolderByServerRelativeUrl('/LibraryName')/files. If this is not working for you, check the relative URL is correct. For eg: for a site collection starting with /sites/siteColl, relative URL would be /sites/SiteColl/SitePages. Also, navigate to the library to check the correct URL. 2. /_api/web/lists/getbytitle('LibName')/items ...


2

There is a reason for this process. When you use an Enterprise content editor such as the Wiki portion of SharePoint (or Article pages for publishing sites) it is supposed to become a repository of all the items, text and multimedia and thus making it reusable. By placing it and coding it in an asset library (or image library) you are de facto making it ...


2

The short of it is you can't with workflow, they operate after the item has been added or changed. You need to use an event receiver to do that if you want to perform some operations before the item is saved. You would want to look at the ItemUpdating event, since you want to do it as part of the edit operation.


2

Below Code Reads the SiteUrls from Text file called SiteUrls.txt, and add library called "Oct Invoicing 2014" to the Wikipage called "Billing_Req.aspx" Here we are taking variable i to check for the library already present on the page, if present we are incrementing i to 1 and else its default value =0 If i=0 means webpart is not present on the page and it ...


2

Edit: That dialog cannot be changed for an individual library. It's the default new page dialog for the whole site collection. You would need to write code to change that. Out of the box, just create the page, then click the Page ribbon and use the "Edit Properties" command to set the required fields. In this question a code solution is linked, but it ...


2

How to create a Wiki page via CSOM /// <summary> /// Create Wiki page /// </summary> /// <param name="pagesList">Wiki Pages list</param> /// <param name="pageName">Wiki page name</param> /// <param name="pageContent"></param> public static ListItem CreateWikiPage(List pagesList, string pageName, string ...


2

You can provision a view to a page by using a module The example below will provision a list view web part on the default.aspx page into RightWebPartZone using the list view with BaseViewID=3 for list with url Lists/MyList <Module Name="MyPages" Url="$Resources:cmscore,List_Pages_UrlName;" Path="pages"> <File Url="default.aspx" ...


2

In SharePoint 2010, Microsoft added a new service called AddWikiPage to the Lists web service. With a little bit of Visual Basic code, you can use the XMLHttpRequest object provided by Microsoft's XML SDK, to add new Wiki pages with custom content. Add a reference to "Microsoft XML, v6.0" in the Tools -> References menu in your Visual Basic Editor, and ...


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


1

I find it depends on your content. If your pages are going to be really text heavy, and you don't need much flexibility in terms of placement of your web parts, go with the Wiki Page. Wiki Pages allow direct text editing without the need to keep dropping Content Editor Web Parts. Web Part Pages have more options in terms of web part layouts (in the form of ...


1

You Can change Master Pages, and from this You Can change Layouts. You Can change Layouts in Microsoft Sharepoint Designer, or in Visual Studio. And here You have a Example in Sharepoint: http://www.dummies.com/how-to/content/create-a-new-wiki-content-page-in-sharepoint-2010.html And here is how to do this by Visual Studio: ...


1

The only way to do it is use an anchor tag in the code: <a name="MyAnchor"></a> Then add a hyperlink to the page the anchor is on, but include #MyAnchor: http://mysite.com/wiki/page.aspx#MyAnchor If there's a better way, let me know.


1

Ah, here is a way. The idea is that the user using the wiki editor will create a new hyperlink and use a special token to denote an anchor. In my example, the token is /__ I chose that because the hyperlink has to start with something that the editor would accept - and it will accept a /. Also, because it is very rare to see a hyperlink with /__ anywhere ...


1

Take a Look to the sharepointwikiplugin Project on Codeplex. I'm using this to convert our Word Documention in Sharepoint Wiki pages. https://sharepointwikiplugin.codeplex.com/ (Note that I am the creator of the plugin)


1

Courtesy of Microsoft tech support, this article - Programmatically Provisioning Wiki Pages with Content and Web Parts in SharePoint 2010 - gets me much closer to what I wanted in the first place: a way to provision a WikiPage with code and some clear markup. I'm going to give this a spin in the next few days. Since the above seat-of-the-pants method ...


1

The video series SharePoint pages I: An introduction on the Microsoft Office website describes the differences between wiki pages, web part pages, and application pages from the viewpoint of a business user. Note: Application pages are referred to as system pages in the video series. To summarize the video series: Application pages provide tools for ...


1

Insert this at the bottom of your masterpage before the </body> end tag: <script type="text/javascript"> $(document).ready(function () { $("div[RteRedirect]").each(function () { var id = $(this).attr("RteRedirect"); editSettings = $("#" + id); if (editSettings.length > 0 && ...


1

Create a Wiki page Library (ServerTemplate=119) and use Wiki Page content type there. After you get that working try adding the other content types to this wiki library.


1

Yes, you can add a link to a photo. Check the answer to this question: Add image to blank page layout that will be an active hyperlink and have text to the right of it. It should be the same for you.


1

AFAIK There is no "Clicks and Done" way. If you know sharepoint desinger. Open your home page in SPD Insert custom new form webpart in webpart zone Save the page Please see if below mentioned links help Display New Form of a List in a Web Part page ...


1

try this one: $listName="A" $siteURL="http://serverName:1111" $site=Get-SPSite $siteURL $web=$site.RootWeb $list=$web.Lists[$listName] $rootFolder = $list.RootFolder $wikiPage = $rootFolder.Files.Add("/"+$rootFolder+"/Home.aspx", [Microsoft.SharePoint.SPTemplateFileType]::WikiPage) $wikiItem = $wikiPage.Item ...


1

SharePoint SSOM comes with built-in method for creating wiki pages SPUtility.CreateNewWikiPage method, for example: $WebUrl = "http://contoso.intranet.sp.dev/faq/" $web = Get-SPWeb $WebUrl $wikiPages = $web.Lists["Pages"] $wikiPage = [Microsoft.SharePoint.Utilities.SPUtility]::CreateNewWikiPage($wikiPages, [System.String]::Format("{0}/{1}", ...



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