Tag Info

New answers tagged

0

I was adding wrong control source path, Control Id="AdditionalPageHead" Sequence="150" ControlSrc="~/_CONTROLTEMPLATES/UsageReport/SiteUsageActions.ascx" just added /_CONTROLTEMPLATES/15/ solved my problem. Control Id="AdditionalPageHead" Sequence="150" ControlSrc="~/_CONTROLTEMPLATES/15/UsageReport/SiteUsageActions.ascx">


0

The best options to inject JavaScript in a SPWeb when activating a feature are: Use the SPWeb.CustomJavaScriptFileUrl property (set it from a feature event receiver) Use a Custom Action (see for instance http://www.spdeveloper.co.in/tipsntricks/pages/referencing-js-files-using-custom-action.aspx) Deploy your own custom master page, with the JS code ...


0

In order to include javascript in masterpage, using the code given below: <SharePoint:Scriptlink ID="Scriptlink120" runat="server" name="~SiteCollection/Style Library/JS Path" language="javascript" />. Add this in your master page and then deploy the solution. This shall include the JS file globally which will allow you to use it at all places.


2

In SharePoint 2013, you have the flexibility to use HTML file to edit the master page and it will be converted to .master file automatically. That means you can edit the .html version of master page in any Editor (Text editor or Html editor like Notepad++, Dreamweaver, Visual Studio etc.). During editing you can place different SharePoint controls on ...


-1

Yes you can, You need to build custom master pages using visual studio 2013. deploy the wsp to server.


1

If you have different permission levels for each of those group, you can wrap your content in an SPSecurityTrimmedControl. This will show/hide content for users based on their level of access. Unfortunately this will not work based on group name, only the resulting permissions that users have from being in a group, so if both groups have the same ...


0

You can create the menu using JavaScript. Then you can use Client Object Model to check the group of the user. If you need help to check the group with JavaScript, try this link: http://stackoverflow.com/questions/22122139/check-if-current-users-belongs-to-sp-group-using-javascript-client-side-object-m


1

This can be done with the SPSecurityTrimmedControl if there is a permission difference in the 2 groups. <ul> <SharePoint:SPSecurityTrimmedControl PermissionsString="OpenItems" runat="server"> <li>Option 1</li> </SharePoint:SPSecurityTrimmedControl> <SharePoint:SPSecurityTrimmedControl PermissionsString="ManageLists" ...


0

I know it's been a few years, but I found a good solution to this. You have them insert a normal image into a containing div, and then you use this jquery: $(function() { $(".header_image img").each(function(i, elem) { var img = $(elem); var div = $("<div />").css({ background: "url(" + img.attr("src") + ") no-repeat", ...


1

Try something like this - Target the "s4-ribbonrow" div Hide this div, may be by using inline-style Locate the end of "s4-ribbonrow" div Add this snippet after that div - < Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages"> < script type="text/javascript"> ...


0

You can resetting the master page for all sites within the site collection: (requires publishing feature enabled) Site Settings Master Page (under Look & Feel) Select the master page for both Site and System and check "Reset all subsites..." Save Now that all sites are using your custom master page, you can do the following to set the master page ...


0

option a) JQuery+CSS /*hide all*/ div[id*="_WebTreeViewV4"] > table { display:none; } $(document).ready(function(){ $('div[id*="_WebTreeViewV4"]').find("a:contains('HR')").closest("table").show(); }); option b) 100% CSS - subject to change /*hide all*/ div[id*="_WebTreeViewV4"] > table { display:none; } /*use the index of the ...


0

You need to enable publishing features on the site collection (SP_Site) and on the web (SP_Web) and set the alternate CSS URL to your css-file. Find "Site Collection Features" setting and enable all features with name "publishing" in it. Find "Manage Site Features" setting and enable all feature with name "publishing" in it. Find "Master Page" ...


2

The quick and dirty version (no external CSS file) $webApp = Get-SPWebApplication http://****:26611/ $webApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"> <a class="ms-core-brandingText" style="color:white" href="/" >Wp</a></div>' $webApp.Update() Might need an !important, I'm not connected to a farm to try it ...



Top 50 recent answers are included