Tag Info

Hot answers tagged

9

Ok, there are APIs to support everything you're tyring to do, NEVER DIRECTLY EDIT THE web.config!!!!!!! Follow these easy steps: Package your custom error pages into a solution. Hey, if you're doing the 401 you might want to add a couple of others to support access requests too ;) Deploy the pages to {SP_Root}\Tempates\Layouts\MyErrorPages\ using a ...


9

The log file should get you the path that SharePoint unsuccessfully tries to resolve. Try adding "~sitecollection" first in the ScriptLink like: <SharePoint:ScriptLink language="javascript" name="~sitecollection/custom/jquery-1.10.2.min.js" runat="server" Localizable="false" /> but this will only work inside the "the_new_osce_portal" Site ...


8

There is an identified issue with SharePoint 2013 ignoring the values set through the Set-SPCustomLayoutsPage cmdlet. See: Custom Access Denied Page in SharePoint 2013. Although the same UpdateMappedPage method and Set-SPCustomLayoutsPage cmdlet exists in 2013, there is an identified bug in the product related to the property. The custom location can be ...


7

There are many ways that you can approach this issue and it all comes down to what the desired functionality and behavior is for both the user and the content editor. One of the most common ways I have done this in the past is to use one master page that has all the publishing controls still in it. By default you have to be logged into a site for it to ...


7

Down in the Standard Colors section you can add more colors by including styles like this: <style> .ms-rteForeColor-11 { color: darkred; -ms-name: ""; -ms-color:"Dark Red"; } .ms-rteForeColor-12 { color: darkred; -ms-name: ""; -ms-color:"Dark Red"; } </style> Similar you can define new background colors using .ms-rteBakcColor-XX ...


5

Customisations to the Data Sheet View are not supported, as this is generated using the Microsoft Office Access Web Datasheet Component, which renders the grid using the same base engine as the data sheet view that Microsoft Access uses.


5

Why are you deploying your Custom Web Service to the layouts folder at first place? You need to copy the Web service files to the _vti_bin virtual directory Copy the Service1wsdl.aspx file, the Service1disco.aspx file, and the Service1.asmx file to the _vti_bin virtual directory. This is the directory where all default Web services are stored. Copy the ...


5

I figure your problem is that you have not specified URL for MainMenu. As you notice all links in QuickLaunch has link associated with it. Specify a Url and it should work (I tested that locally).


5

In the 2nd statement you should have used the site collection specific TOKEN as in: <SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/PathToJqueryLib/jquery-1.10.2.min.js /> The issue with your 3rd (also known as Client-Side JavaScript library reference) is that such constructs do no recognize token-based ...


5

Add the ms-dialogHidden class to your outer div, it will hide the content in dialogs: <div class="ms-dialogHidden" style="background-image:url('/Style%20Library/lfr/header.jpg');background-position:left; background-repeat:repeat-x;height:147px;"></div> For more, see here: ...


5

Yes you can extend the REST API: Here are the high level steps of what you must do: Create a class decorated with ClientCallableType Add methods and properties to the class, decorate with ClientCallable, ClientCallableMethod, ClientCallableProperty Create the Object Factory that inherits from ClientCllableObjectFactory (this will create an class instance ...


4

Don't know really HOW, but this code works! Take a look =) public partial class VisualWebPart1UserControl : UserControl { private Microsoft.SharePoint.WebPartPages.ListViewWebPart myListView; protected override void CreateChildControls() { base.CreateChildControls(); SPSite oSiteCollection = SPContext.Current.Site; ...


4

Error 401 is for Unauthorized Access (or Access Denied). In a SharePoint site, "Access Denied" is managed at two levels - IIS and SharePoint. The web.config changes you did are meant for IIS. As "access denied" inside SharePoint site is managed by SharePoint, for IIS there is no 401 and hence no redirection. To set custom 401 page for a SharePoint site, ...


4

If you want to customize a list new\edit\display form there is a couple of ways you can do it. I mean programming ways (not InfoPath). All this methods related to creating custom rendering templates. Every list form has its own rendering template, for list its a "ListForm", for document library "DocumentLibraryForm". All this templates (and otheres) listed ...


4

You can always generate new GUIDs using Online GUID generator or using Visual Studio This is how you can provision your field and use it in a Content Type using FieldId and FieldRef. Follow the sample elements.xml below: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Field ...


4

Yes, you can change the order. The webpart that displays the posts is just a list view webpart. The trick is this - go to the posts list add a new view, get it sorting the way you want, test. save. go back to your blog homepage edit the page edit the 'posts' webpart's properties select your newly created view in the 'list views' section click OK. Save. ...


4

I think that error is caused by something else in your event receiver code, the error message shown by properties.ErrorMessage should be something like this:


4

To achieve this, You can use ListItemCollectionPosition property. It is used together with the RowLimit property to define paging in a query. For your reference, see the sample code available this link http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.listitemcollectionposition.aspx I hope this will resolve your problem.


4

Don't make property List static EDIT: Working code: [ToolboxItemAttribute(false)] public class MyDetailWebPart : WebPart { ... [Personalizable(PersonalizationScope.Shared)] [WebBrowsable(true)] [Category("Category")] [WebDisplayName("Name")] [Description("Desc")] public string Code { get; set; } ... protected override void ...


4

somthing like this? http://msdn.microsoft.com/en-gb/library/ff408263(v=office.14).aspx or i think your talking about this: Create SharePoint Project 1.Open Visual Studio 2010 2.Click File -> New -> Project 3.Select “Empty SharePoint Project” under SharePoint -> 2010 category. 4.Enter Name for the project e.g. SampleWebTemplate. ...


4

You are trying to read the property values too early in the web part life cycle. The property values are populated from the content database after the constructor has run. If you check the property values in OnLoad or OnPreRender you will see the values you have set in the editor.


4

Even though SPWeb is declared outside of try catch block, it is initialized inside try block. And it is disposed inside try and finally blocks. So there won't be any memory leak. Only issue I see in the code is that in the finally block, there should be a null check before an attempt is made to Dispose SPWeb object. finally { if (newCommunitySite ...


3

It sounds like SharePoint is trying to activate your feature using a SolutionID instead of a FeatureID. Make sure you did not use the same guid as both a FeatureID and a SolutionID.


3

If you've added your ASPX page to a "Layouts" mapped folder, you can access it at any site collection or subsite level, by adding /_layouts/ProjectName/YourAppFile.aspx to url of your site, such as: http://webapp/sites/sitecollection/subsite/_layouts/ProjectName/ApplicationPage.aspx


3

This was nice quest for me. I will not ask why do you need this and I hope that you don't need warning like: Never mess with SharePoint databases directly! I didn't found many articles on net covering this specific issue (no wonder when it is bad practice). The only one was 2007 related: Determining the Configuration Database in a SharePoint 2007 Farm. ...


3

I thought about replacing this indicators for my own long time ago, they must be somewhere as images in directory structure, but since we have Pentalogic Highligher installed, I do not worry about anything. (Task lists, ToDo, Priority and blank rows highlighting, countdown, or progress bars, that made all our users via scripts.) All this small little things ...


3

For the record, I have created a technique that allows to display any kind of indicator (or generally speaking any HTML) in SharePoint lists. You can find some examples here: Path to SharePoint - Color coding: more examples Path to SharePoint - HTML Calculated Column and Unicode Graphics It may not be the right approach for large scale deployments, but ...


3

If you don't have any luck using the native KPI functionality, you may want to look at some alternatives. After working on Highlighter, I wrote an article on our company blog about the various ways of achieving this: How to create a SharePoint KPI column Free: Javascript: Do the work on the client-side (as pioneered and mentioned by @Christophe) ...


3

Chris O'Brien wrote a cool post recently about all problems with cached css and javascript files in sharepoint. UPDATE If you are using themable css and EnableCssTheming set to true and your site use some theme (using theme is required), sharepoint will compile your css file into another css file with replacing placeholders, that looks like /* ...


3

The only option is to create a custom editor part. Check out this msdn example.



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