New answers tagged

0

You can entirely change the look of a SharePoint site as well. You need not go for another HTML page to add stuff. It is easier to brand your SharePoint site itself. You will need to customize the master page. Have a look at this article If you are using SharePoint 2013. It is easier to customize master pages. Here are few links for your reference. msdn ...


0

You can use Jquery so that it works in all browsers. On document ready assign the height only to first Div of required type. The below function will go inside your webpart 1 ASCX file. Add a Jquery reference before the below code. $(document).ready(function() { $("div.section-content-wrap:first").css("height", "400px"); } ); Same can be ...


0

What you also could do is open the page in SharePoint Designer, find the non exportable webpart and look for ExportControlledProperties="False". Change "False" to "True" and save the page. Go back to the page in the brwoser and you will see that the export option is now available.


1

The DLL's can be deployed either in: The GAC (for SharePoint 2013 - .net 4.0 - this is located in C:\windows\Microsoft.NET\assembly) The IIS web application's BIN folder.


0

Opening SP Designer 2013, I went to the lists and libraries, selected my list and edited the "AllItems.aspx" File. In this file, I put in my HTML that I wanted to show up in the list template. From here, I saved the .aspx file and went to my site. Then, I went to the list, hit the site actions button and clicked on "Edit this Page". I edited the List ...


0

I just encountered this issue with a custom masterpage. Ensure you're using: <meta http-equiv="X-UA-Compatible" content="IE=10" /> IE=edge causes all kinds of problems in edit mode.


0

something like this DateTime dt = DateTime.ParseExact(yourObject.ToString(), "MM/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture); string s = dt.ToString("dd/M/yyyy", CultureInfo.InvariantCulture);


1

You could add a script web part. Add jQuery reference. Use developer tools to get the ID of the web part on the page + the html container element for the list. If the container has no children then hide the webpart. For example: jQuery(hideWebPartIfNoChildren); function hideWebPartIfNoChildren() { var webPart = jQuery("#elementId"), children = ...


0

Since your last modified item was DispForm.aspx there's no image associated with form pages. Had the item been an image, it would probably show the thumbnail. You'd have to customize the display template for the web part and change the logic where no images are found. You probably also need to adjust some CSS. Display templates can be found under: ...


3

Here are the steps you should execute Get the XML for webpart Load Limited Webpart Manager object Add web part. You can find details on https://msdn.microsoft.com/en-us/library/office/hh185010(v=office.14).aspx#sectionSection1 Add an existing WebPart Using the Sharepoint client object Model


0

You will have to edit the list view that you are currently using for the announcement list. Edit the view and look for the option Tabular View and uncheck "Allow individual item checkboxes". No more hover effect.


0

NVM. Found I can just filter on if the column Compliance is blank. Please find clarification. I went to Edit the View in my list. Within the View settings there is a Filter Setting. I set the filter to the Compliance column to show items that "is not equal to" and left the bottom text box blank.


1

Try putting following script in Script Editor webpart on the page. Hope this might help you out. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".ms-list-itemLink > a").each(function(){ ...


0

Try a combination of Search and query result Webpart that concentrates on Websites that are sitecollections. Remember the Limit of 50 entries that could be shown... if you have more entries than you have to configure paging to the Webpart ;)


1

You can do this even without using $(document).ready(function(). Attach JS in your webpart. <script src="/sites/DevNum/testjd/SiteReformeTest/js/palette.js"></script> You just need to remove $(document).ready(function(){ from your code. Write only below function in your JS file. function getItemsToBeUpdated() { ... ...


1

You should try below code without $(document).ready(function(){ $( "#palettebutton" ).click(function() { ---------- Your code will be here ---------- alert( "Handler for .click() called." ); });


0

Unfortunately NO It is pre-defined SharePoint webpart in environment. You have to create custom webpart to get all the details for specific user from SharePoint users profile OR Active Directory.


0

Instead of having a page layout with these many webpart zones for each webpart, try this option. Create a page using 'Body Only' page layout Edit the page Insert a table in the page content using the Ribbon -> Insert -> Table. Select number of rows and column needed. Once you add the table set the Row height and Column Width in the Table Layout tab. ...


4

try opening the page and adding ?contents=1 to the end of the URL to get to the WebPart maintenance page. There you can see existing WebParts. Try referencing this solution


0

You can add a Script Editor Web part on the page (and you can hide it from Script editor properties) and add a script tag to jQuery like this: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script> <script> $( "#inplaceSearchDiv_WPQ1_lsparent :input").attr('placeholder','Ahmed'); </script>


1

You can do it quite simply by including a little bit of JavaScript on the page. Either add it through a script web part of save to a file and add the file through a content web part. window.onload = function () { document.getElementById('inplaceSearchDiv_WPQ4_lsinput').placeholder = 'Ex: SMS12345'; ...


2

In a nutshell, Apps use client-side API, and traditional solutions use server-side API. Apps are more limited in terms what you can do, but are generally considered to be easier to maintain and deploy in the long run when these apps need to span over several SharePoint versions. This blog post describes all aspects and links to further articles with details ...


1

If it's SharePoint 2013 you can go to that file (ms office files) click on the elipses so you get the preview, at the bottom of the preview there is a drop down, click the drop down and select embed information. Copy the code and paste it in a content editor.


0

So you have not mapped the DocumentCategories to RefinableStringxx??? I guess you should map it to RefinableStringxx (providing that DocumentCategory returns text (data type). Once you do that, you should be able to write your query as follows: path:"server-sharep/abc*" FileExtension:pdf (IsDocument:"True" OR contentclass:"STS_ListItem") ...


0

Your "DocumentCategories" must be searchable under generic keyword search, in order to use it in the refiner. Find the crawled property for the "DocumentCategories" in the search schema and then create a refinable Managed Property and add this crawled property in the mapping. Use this new managed property in the refiner webpart.


2

Edit the page and then edit the web part in question and you can change the view. You can select one of the different views available, or create one that matches what you want!


1

Apply the css rule to the page you are displaying the Picture Slide show: You can either add a script editor web part on the page and add the following css: <style> div[ID^="MSOPictureLibrarySlideshowWebPart"] {text-align:center;} </style> Or add it directly to your custom css You can see in the screen shot above, the title of the ...


0

Another way which I do recommend is to use JSLink. The reason is you can reference it within the web part itself. A similar question was asked here before and I do recommend the answer there: Can I change the display name of column in a listview using JSlink


1

Shefali has the correct answer but if there are multiple lists on the page this will remove them all. If you want to only target one of them select it in IE Developer of Chrome Developer and find the web part ID. Preface this first. ex #MSOZoneCell_WebPartWPQ01 .ms-viewheadertr { display:none; } I would also put the style tags in... It should look like this ...


1

If you are using SharePoint online (haven't tried it in SP 2013), you can use the following: _spPageContextInfo.userId; and this will return the user ID you can then take that and append your URL!


2

Simple way to hide view header would be to use CSS - Add a content editor webpart on view page (under Media & Content Category). Add below code in the content section. .ms-viewheadertr { display:none; }


1

It is important that where you do this in the web part life-cycle. If you do it as part of the Render method it will be too late - the chrome has already been drawn by then. On the other end of the scale if you do it to early then your setting will be overridden when SharePoint applies the settings from the toolpart. Look at doing it in something like the ...


0

I got the solution, tested on SPS 2013 and SharePoint Online using the modified code and its working fine. Code- My CD Collection Title Position No. Closing Date Alternate if anyone is facing issues with this you can try the explanation ...


0

I finally found solution for this one. In tags person should just put target="optional word exp. " after a href="#". So it should look like this <a href="#" target="MyFrame"> In iframe part of code just put <iframe name="MyFrame" src="#"></iframe>


1

Sorry mate but it might not be possible. You must have to change the controls settings using SharePoint designer. As you have mentioned, You do not have access to SharePoint Designer so i think it might be not possible using any script. Because you must have to change StaticDisplayLevels and MaximumDynamicDisplayLevel within V4QuickLaunchMenu to make it ...


0

This has been an issue for a long time, multiple file upload has the same problem in that you cannot apply metadata to items when uploading more than one at a time. The work around is to make the desired metadata fields required. This forces the files to remain checked out to the uploader until the required fields are populated and checked in. You could ...


0

Cheers for the suggestion with the JS. I looked at the HMTL source of the webpart, disabled (commented-out) the JS section and it works now. I'd suggest the OP to do the same - if he/she understands what JS "does" to HTML :)


0

I used the Image Slider example at Sharegate web site here. http://en.share-gate.com/blog/image-slider-with-sharepoint-2013-search-results basically, it is using the search results web part with custom display template (SlideJS library + jQuery). if for whatever reason, you are more comfortable with other library, like the ones here at ...


1

You need to activate the publishing feature on the site collection Site Actions > Site Settings >Site collection features > SharePoint Server Publishing Infrastructure Site Actions > Site Settings >Manage site features >SharePoint Server Publishing Please verify these and see if it works.


1

Turn scripting capabilities on and off for SharePoint Online Tenant. It will enable\disable some features & webparts in SharePoint Online Tenant. You can follow the below mentioned link to enable scripting. Enabling scripting capabilities After 24 hours you will get features & webparts in your SharePoint Online mentioned in below link. The new ...


1

Do you mean that the Project Task and Issue are lists on your site ? You can add a ‘content query web part’ to display the project task or the Issue .Then detailed steps are like following: Open the change on which you want to show the web part . Click Site Setting >Edit Page>Add a web part >Content Query web part>Edit >Modify shared web part. Set the ...


-1

You will need to create two list: 1. the list that connected to the chart that contain the options and a column for counting 2. The list that contain the rest of the information This link will help you to create a dynamical chart http://www.nothingbutsharepoint.com/2011/08/04/sharepoint-2010-pie-chart-with-counts-aspx/


0

This was used at the end of the page, just passed the piece of Javascript. <div class="portfolioFilter text-center" > <a href="#" style="display:none;" data-filter=".fakeCategory" id="Fake" class="current"><img src="../SiteAssets/all.jpg"/></a> <xsl:call-template name="dvt_1"/> ...


0

If you are looking for subsites, you could use contentclass:STS_Web. If you want to pull site collections, you could use contentclass:STS_Site. You'd also want to include Path:{Site.URL} to pull subsites from the current site. The Search Query Tool can be beneficial in helping you craft your search queries, http://sp2013searchtool.codeplex.com. It's been ...


0

Do you have publishing enabled? Do you require check-in and check-out on the page that contains the web part? If so, you may need to check-in the page and publish it.


-1

Add a Content Editor WebPart in lower section where you want to load the external page. Your buttons should call this function on click as shown in example below. Feel free to modify the button or iframe code according to your structure. HTML <button onclick="SetIframe(this.id)" id="http://www.simplehtmlguide.com/">Click me</button> ...


0

According to my understand, (You have fixed lists/libraries) You can get current logged in user using below code. Using that you can fire CAML/Linq query on specific Lists or libraries in your code to pull all data related to that logged in user. SPWeb theSite = SPControl.GetContextWeb(Context); SPUser theUser = theSite.CurrentUser; string ...


0

I was able to address this by changing some of the initial script to firstly run when the frame has loaded. <script type="text/javascript"> document.getElementById("myframe").onload = function() { var x = document.getElementById("myframe"); var height = height=document.body.clientHeight; document.getElementById("myframe").height = ...


0

There are few reason that might preventing your code to run Check jQuery reference added in your script editor. If you have added jQuery reference and still it is not working try your code by placing it in Content Editor WebPart. If you still face issue then track console in debugger of browser. And let me know if solved you issue. Thanks


0

You might be missing the jQuery reference on your page. Also make sure the IDs of the content are correct. Open the browser's console and check what exception you get. :) EDIT: As I understood, you are trying to resize the iframe to fit it's contents. The reason why your code doesn't work is taht #divContent is not actually on the page (it's in the ...



Top 50 recent answers are included