New answers tagged

0

I think creating your own custom Style Sheets can fix that. For a more quick fix you can add a Content Editor web part and use the following CSS to add Bullets to your Summary Links. <style> .cbq-layout-main A:before { CONTENT: " \2022 " } </style>


0

That one looks to fit your exact requirements: http://spjsblog.com/2010/02/18/hit-counter-for-sharepoint/. It looks from the description you can differenciate pages by the ID of the "post" item (second parameter of hitCounter: isDispForm). It's based on JavaScript files to store in a doc lib of your blog site, and a list to create in the blog site as well. ...


1

Web Analytics will give you numbers very easily. http://blogs.msdn.com/b/ecm/archive/2010/03/21/introducing-web-analytics-in-sharepoint-2010.aspx For the identity of users you could try using auditing, that will let you see who's accessing the site. Other than auditing you'd need to look at custom code of some sort that runs when a web-part is rendered. ...


0

Off the top of my head I can think of a couple ways: Pull in the rendering script using the JSLink property of some other object, for instance, a Content Type, or a Field that will always be shown. This would require either having Powershell access to be able to set the property on something that already exists in the site, or you would need to be ...


0

If it's rendered on the page and it has an ID then you should be able to manipulate it with javascript. The ID on the server control is DropDownList1 but, is it the same when it gets rendered? Inspect the DOM to ensure that the ID hasn't been appended with a toplevel control ID. If it's inside a user control you may find that the rendered ID might be ...


0

Every custom field has a GUID, and when the project is in edit mode, you'll see that field as an input box, so we really just need to select that element and check if it's of the type "input". Here's a step by step solution: First you need to create a project custom field, or just reuse any existing (preferably one that already exists in the PDP where ...


1

One option could be to use Excel charts/graph and publish it on SharePoint Online with Excel Services. Check the links below: http://www.dummies.com/how-to/content/how-to-use-sharepoint-online-excel-services.html https://support.office.com/en-us/article/BI-capabilities-in-Excel-and-Office-365-26c0548e-124c-4fd3-aab3-5f64568cb743


0

Download Telerik Just Decomplier from here http://www.telerik.com/products/decompiler.aspx Copy the WSP and change one of the copies WSP extension a CAB extension. Copy all of the files to a directory. Decompile the Dll and save it to a project. In visual studio 2013 ultimate create a new sharepoint project from an existing project and use the unchanged ...


0

Using Elements.xml to provision the webparts ended up working. You still need to use an XsltListViewWebPart, though you add it through a AllUserWebPart. There is a property of the XLVWP that accepts a default view, list name, etc.


0

Add the below code to a content editor web part on the page. Change the list title in the code. If you run into any issues, check the dev tools to make sure you are grabbing the correct properties while finding the jQuery header elements. <script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script> <script ...


-1

Please keep in mind that <where> or &lt;Where&gt; tag should go on the same line with <property name="QueryOverride" type="string"> like this <property name="QueryOverride" type="string">&lt;Where&gt; &lt;Or&gt; &lt;Eq&gt; &lt;FieldRef Name="AssignedTo"/&gt; ...


0

if category means group, just edit web part properties and change the group


0

Yes there are a variety of ways automate the data refresh -- either updating the consolidation workbook (Excel services, macro or code); replacing the workbook as the data store (Access, DBMS); or thoguh use of an ETL tool. All would depend on your enviroment and requirments, Depending on your enviroment and requirments. Link to a nicely indepth post on how ...


0

You can add the following javascript code to your master page. It let you manually resize the web parts in edit mode: $(function() { $('div[id^='WebPartWPQ']').resizable({ handles: 'all', autoHide: true }) .find('iframe').height('100%'); }); See this article for more information


2

If I understand you correctly, I would create a new CSWP display template. That way you can add in the code (shown highlighted in yellow) that will make the link open in a new window. I usually copy the Item_TwoLines.html display template and modify for my needs. You can find it in the site collection master page gallery > Display Templates > Content ...


0

keep in mind that the script will not run when in post back, so, you have to save the page (stop editing) and then press Enter in the url address bar in your browser. Refresh with F5 may still not work!


0

If it works to use a wiki page a quick, easy way to center web parts would be to add a table on the page and place your web part in a cell. It's easy to change the width of each column as well as using one of the default styles to hide the table. You may not want to use a wiki page for what you are doing. Then you would have to use css to find the web part ...


0

you could try to enclose all your code into a div and apply some css, like this <div id="content"> This is a DIV block that is to be centred. I don't want the text to be centred, though, just the block. </div> #content { width: 700px ; margin-left: auto ; margin-right: auto ; } greetings


0

Ok so the problem was that Sharepoint 2010 was forcing IE11 to render in IE8. I ended up changing the master file (v4.master) for the specific sharepoint site and editing the <meta> to default to IE=10. It did not affect the other sharepoint sites within my larger sharepoint site, and seems to be working. Thanks, Trevor, for the lead!


1

Blog posts will always have a Content Type Id starting with 0x0110, so this query will show you all blog posts: keywordQuery.QueryText = "ContentTypeId:0x0110*"; And this query will also let you filter by date - in this example, only display blog posts from 2016-01-01: keywordQuery.QueryText = "ContentTypeId:0x0110* Created>=2016-01-01"; By default ...


0

You don't need to deal with master pages and layouts if all you are trying to do is create web part pages and add a script editor. All you need to do is use a browser and navigate to your Site Pages library(s), create a page, edit the page and add the script web part, add your script and save.


1

Try the below code in a content/script editor webpart. Change the name of the column. I see the max-width of the column is set to 500px. So if you want to make your column width more than 500px, then you have to change the max-width, otherwise that is not needed. I ran this code on SharePoint online and it worked fine. <script ...


0

I found a way to answer my question. The solution is to write a little VB.NET software to parse IIS log on a regular basis. If the number of request for one user exceed a certain amount within a time frame. It means that user is stealing files. Then the user name is added to a group which is prevented to access to the web server via the authorisation ...


3

I found a solution. Here it is: I modified the view of my documents Library to display all elements flat, without folders. Then I created this JSLink: var DocuView = DocuView || {}; DocuView.itemHtml = function (ctx) { var title = ctx.CurrentItem.Title; var fileRef = ctx.CurrentItem.FileRef; var fileLeafRef = ctx.CurrentItem.FileLeafRef; ...


2

On the OOB Document content type, Name is the required field that is the name of the file, Title is optional. Is it possible that the Title field was never filled out for the documents in question? I believe the internal name of the Name column is FleLeafRef, so if you change your display template to use <span ...


0

I was able to delete the site using SharePoint Manager (https://spm.codeplex.com/). As an additional information, I tried removing the DisableWebDesignFeatures property (as explained here) however that didn't worked.


0

If you return a column containing Site Name within it, you can then: <GroupBy><FieldRef Name="**SiteNameField**" /></GroupBy> Hope this helps


-1

<AllUsersWebPart WebPartZoneID="Middle" WebPartOrder="3"> <![CDATA[ <?xml version="1.0" encoding="utf-8"?> <WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2"> <Title>Middle web part</Title> ...


0

From the picture that looks like a promoted links app. (Hovering over the image should bring up a dark over lay where text can be displayed). To change/add images you need to change the view, easiest if you go via site contents and then change the view to All Promoted Links. This will change the view from a tabular layout to a grid layout. Under the ...


4

One way is to put the page in to "maintenance" mode by simply adding "contents=1" in the query string. So for example: http://sharepoint.yours.com/site/pages/page.aspx?contents=1 Then, you will see the types of web parts on the page.


0

Markup : <div style="gridstyle"> <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" EnableModelValidation="True" CellSpacing="2" PageSize="5" ...


0

You can use this link as an example. His links are for deleting the attachments, but you can change the URL to access the file instead. If you post your source code, I can try and help you. List Item Attachments in Gridview


0

If you're asking about running a PowerShell script from server-side of a Web part, that is technically possible but not recommended. Here's how you can do it (you'll find a lot of articles on the subject on the Web): http://blogs.msdn.com/b/kebab/archive/2014/04/28/executing-powershell-scripts-from-c.aspx or ...


0

I'm not sure if I anderstand it right. But powershell is for scripting on the server. With powershell you can for example acces to to webparts and change their parameters from server console (shell, PowerShell ISE console). May be you are asking about codebehind c# code, which you can use on on premis SharePoint (not in Sharepoint online). I'm afraid you ...


0

You can add a Content editor web part (under Media & content) and add your button there. You can click on 'edit source' in the ribbon to add HTML.


0

You will need to create Custom ToolPart to dynamically populate the dropdown values.You will need to create a class file in the WebPart and Inherit the ToolPart class and then create the dropdown and populate the dropdown and override the child controls and apply changes method of WebPart. Below is an example where i populated the DroppDown with all the ...


0

In addition to add/install the WSP package, you need to activate the feature that contains the Web part on each site collection you want it. Open your site collection root in a browser, go to "Site settings", "Site collection features" and activate your feature. After that, your Web part should be provisionned and visible in the WP galery.



Top 50 recent answers are included