Tag Info

New answers tagged

1

The general guidance from the PnP group is no, there are other supported approaches to do the desired customizations without modifying the master page. That being said, they say if you are going to do it, you have to understand the risks of doing so. As soon as you break away, you aren't getting the updates and new features as they are implemented.


0

x=$(".block .title h2 span#title").text(); If you have multiple spans then var arrSpanTitles = []; $(".block .title h2 span").each(function(){ arrSpanTitles.push($(this).text()); }); arrSpanTitle will contain all span titles


0

MSFT recomending that you should recreate pages layout in new version. When you upgrade your site collection to SharePoint 2013, these types of customizations will not work as is because the default CSS styles, themes, and master pages have changed. Instead, you must re-create your custom branding by using the new styles, themes, or master pages ...


0

When i had uploaded initially the <asp:content> tag's were in small case, it was fresh upload so it just saved the file to SharePoint cache and SQL server. When i uploaded after editing it tried to compare the old and new one for the recording the changes(Sharepoint ghostable-in library will save only the changes in the SQL server from second time). ...


0

Well I finally found the issue. What the above code gives as URI links correctly to the display form for the relevant item in a list. However as i did not set my custom display form and actually just added the custom content type to the List of a created List in Portal. The location where sharepoint stores the comments are tagged to the default ...


1

In SharePoint Designer you can edit a page layout and create a CQWP. If you need to customise the CQWP, you probably need to export it, edit it, and import it again. But unlike the SharePoint browser interface, SPD does not have a command to import a web part. You can do this: Create the CQWP on a web part page. Export it, modify it as desired, then import ...


0

As the others have mentioned this issue depends on where the Css is stored and how it is referenced. You mention in the comments to @EricAlxander that the Css file is stored on the server itself. I'm presuming you are deploying it in the Layouts folder. This is fine. The issue probably lies in how you reference your custom Css file. I'm guessing you are ...


2

Keerthi's answer will work great if you want to place your JavaScript on one page. If you want to add it to a specific page layout, I would do it a little different. Editing the actual page layout or creating a new custom one would be best so you don't have to add your script to every page. To do this you will have to use SharePoint Designer. In ...


0

You can add a javascript file using the content web part. Edit page -> Add web part -> Media and content -> Content editor -> Add Edit the source of the web part and add the following code into it: ​<script src="/sites/subsite/list/SiteAssets/file.js" type="text/javascript"></script><script ...


7

If you have deployed the CSS file to the Style Library or an Assets library, make sure it is checked in as a major version and approved. It could be possible that your page layout is not published and approved as well. This is the typical symptom when an asset is not approved, it works fine for admins but not general users.


0

FYI, If you are only after using (simple) jQuery selectors. Microsoft has this thing called mQuery built in SharePoint. So jQuerys: $('#myID') becomes: m$('myID') straight out of the box, without the need for jQuery It is loaded on most pages (check in F12 developer tools) if not, use: EnsureScriptFunc('mQuery.js', 'm$', function() { // DO STUFF ...


1

You can also add your scripts in the following section too. <SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true"/>


2

In your custom page layout first add path to .js file (put path to src="") and then code. <script src="jquery-1.8.3.min.js">//<![CDATA[ //]]> </script> <script>//<![CDATA[ $(document).ready(function(){ //some code }); //]]> </script> <!--MS:<Publishing:EditModePanel ...


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


2

In SharePoint you have three different entities which builds up a page rendering to the user. First, there is the master page, which controls SharePoint at a general level. You’ll find the foundation scripts and styles which works globally on the entire site (which uses this master page). The master page also has the most control of the outer styles. To make ...



Top 50 recent answers are included