Call browser based css file in Design Manager master page
I created a sharepoint 2013 master page from design manager and now i want to add a reference file to call a css file when the site is opened in internet explorer 8,i called the css file in my master page as below
<!--[if IE 8]>
<link href="/Style Library/MyProject/css/mydefaultstyle-ie8.css" rel="stylesheet" type="text/css"/>
<![endif]-->
but when i open the site in internet explorer 8 ,i does not load the above css file,can anyone point me to the right direction how i should call the css file for certain browser like internet explorer 8 in master page which is created through design manager
Check if below helps
http://jussionsharepoint.com/targeting-multiple-browsers-and-devices-in-sharepoint-2013-using-device-channels/
<!--[if IE 7]>
2: <link rel="stylesheet" type="text/css" href="/_layouts/JussiOnSharePoint/IE7hacks.css"/>
3: <![endif]-->
Similar Messages
-
Unable to Convert an HTML file to a SharePoint master page on team site
I have a team site in SharePoint server 2013 where I want to enable Design Manager. I have activated
SharePoint Server Publishing Infrastructure but I clicked on Convert an HTML file to a SharePoint master page under Edit Master pages, I get an error in my logs below, with
System.NullReferenceException occuring a few times. Has anyone encountered this error before?
03/04/2015 17:12:07.86
w3wp.exe (0x066C)
0x20FCSharePoint Foundation
Logging Correlation Data
xmnv
Medium
Name=Request (GET:http://*.cloudapp.net:80/sites/*/_layouts/15/AssetPortalBrowser.aspx?&AssetUrl=/sites/*/_catalogs/masterpage&RootFolder=/sites/*/_catalogs/masterpage&MDWeb=9b1d767f-8c34-4411-96b1-f2c1fbd8b775&List=d790ecf3-2afe-48a3-9f7a-e802a39ba138&AssetView=Html%20Design%20Files&AssetType=Link&IsDlg=1)
b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.86 w3wp.exe (0x066C)
0x20FC SharePoint Foundation Authentication Authorization agb9s Medium
Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|*\*, ClaimsCount=24 b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.86 w3wp.exe (0x066C)
0x20FC SharePoint Foundation Logging Correlation Data xmnv
Medium Site=/sites/*
b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8 03/04/2015 17:12:07.87 w3wp.exe (0x066C)
0x20FC Document Management Server Document Management
eua9 Medium Pending update MetadataNavigationHints for Web[9b1d767f-8c34-4411-96b1-f2c1fbd8b775]List[d790ecf3-2afe-48a3-9f7a-e802a39ba138] = 0 (NoSettings)
b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8 03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation General
8nca Medium Application error when access /_layouts/15/AssetPortalBrowser.aspx, Error=Object reference not set to an instance of an object.
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureParameterBindings(ObjectSerializer smo) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureChildControls() at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.setContextToObject(ObjectSerializer
newContextObject) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureDialogLocation(String objectId) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureDialogLocation()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.OnLoad(EventArgs ... b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89* w3wp.exe (0x066C) 0x20FC
SharePoint Foundation General
8nca Medium ...e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation Runtime
tkau Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureParameterBindings(ObjectSerializer
smo) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureChildControls() at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.setContextToObject(ObjectSerializer newContextObject)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureDialogLocation(String objectId) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureDialogLocation() at
Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecurs... b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89* w3wp.exe (0x066C) 0x20FC
SharePoint Foundation Runtime
tkau Unexpected ...ive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation General
ajlz0 High Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException:
Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureParameterBindings(ObjectSerializer smo) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureChildControls()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.setContextToObject(ObjectSerializer newContextObject) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.ConfigureDialogLocation(String
objectId) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.Config... b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89* w3wp.exe (0x066C) 0x20FC
SharePoint Foundation General
ajlz0 High ...ureDialogLocation() at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AssetPickerDialog.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at Sy... b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89* w3wp.exe (0x066C) 0x20FC
SharePoint Foundation General
ajlz0 High ...stem.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation General
aat87 Monitorable
b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation General
ajji6 High Unable to write SPDistributedCache call usage entry. b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation Micro Trace
uls4 Medium Micro Trace Tags: 0 nasq,3 agb9s,13 eua9,16 8nca,0 tkau,0 ajlz0,1 aat87,2 ajji6 b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8
03/04/2015 17:12:07.89 w3wp.exe (0x066C)
0x20FC SharePoint Foundation Monitoring
b4ly Medium Leaving Monitored Scope (Request (GET:http://*.cloudapp.net:80/sites/*/_layouts/15/AssetPortalBrowser.aspx?&AssetUrl=/sites/*/_catalogs/masterpage&RootFolder=/sites/*/_catalogs/masterpage&MDWeb=9b1d767f-8c34-4411-96b1-f2c1fbd8b775&List=d790ecf3-2afe-48a3-9f7a-e802a39ba138&AssetView=Html%20Design%20Files&AssetType=Link&IsDlg=1)).
Execution Time=42.3522 b463ef9c-5bdb-b0b1-1549-ff0c8ff810b8Hi ,
For this issue, it looks like your SharePoint server(s) have been patched with MS13-052.
Please try to uninstall it and reboot your machine.
Here is a similar post for you to take a look at:
https://social.technet.microsoft.com/Forums/sharepoint/en-US/eec6e515-6a0a-42f2-963d-51fde59be9c4/sharepoint-server-20102-abnormal-issues-please-help
Best Regards,
Wendy
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Can the 100% browser width function be used in non-master pages?
Can the 100% browser width function be used in non-master pages? I watched the video about pulling it to the red edges, and did that on some of my parent pages, but when I preview the page in browser, it doesn't work. I can still see my browser edges.
The idea for the website I am designing is to have different full browser width images for different pages, and I'm looking for a way to do that. I would create a different master for each page, but there are more than 20 pages...too many master pages! Thanks!Hi Lindsey,
The 100% width feature works with rectangles and text frames on both master pages as well as regular pages. It doesn't work with images in either case. A possible workaround would be to use a rectangle with a background image, depending on the nature of your image.
Regards,
Nathan -
Hi,
I have a DOS-based EXE file. When run it at DOS command window, it needs input 2 parameters at two rows respectively.
Now I want to call this exe file in Labview, How do I do?
I tried System Exec.vi, but I dont know how to pass the two parameters in the "stand input".
Detailed, my dos-base exe file runs at DOS command window like this:
c:abc.exe (click carriage return)
Input parm 1: a1
Input parm 2: a2
In the "command line" of the System Exec.vi, I can put "abc.exe", but how I can put the two input parameters "a1" and a2 at the standard input.
Thanks.
REDThanks for your reply. But I still can not pass the two parameters in "command line" of System Exec.vi. For example, in the command line I put "abc.exe a1, a2", the DOS window was opened, still prompting me input a1, a2. Then another strange thing happened, when I input a1, a2, the DOS exe file seems not execute and quickly returns to Labview panel.
Do you know what should I do?
Thanks -
Powershell, design manager, uploading html file not creating associated master page file
I am uploading a xyz.html file through powershell for 2 site collections, when .html file is uploaded and published it automatically creates xyz.master file. It is working fine for not publishing sites collection only, for publishing site collection .html file
is uploaded successfully but it is not creating associated .master file. If I close powershell console and run again it works successfully.
another interesting thing I noticed that if I specify "spadmin" account which I used to install sharepoint as site collection primary administrator, all works well, currently I am using "spsiteCollection" account for primary site collection
administrator and I am having above mentioned issue.
powershell script is also running with spadmin account.
I have ensured .html is checked in and publish properly, If I manually unpublish and publish .html file it creates .mater file. What could be the issue?Hi,
According to your post, my understanding is that you have an issue about upload html file to master page gallery.
I have used the PowerShell contains in the codeplex to upload the files to master page gallery, it works without any issue.
https://uploadmasterpages.codeplex.com/
You can check your PowerShell with this article, or use this bat file to upload directly to check whether it works.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
How to import styleSheet.css file in to my jsp page.
Hi All,
I am importing css file and other common javascript functions using the below code
<style type="text/css" title="currentStyle">
@import "/<some project Folder>/styleSheet.css";
</style>
<script language="JavaScript" src="<%=request.getContextPath() %>/scripts/common.js">
previously it was working but now i migrated my code with JDK1.5 to JDK 1.6 and Tomcat 5.xx to Tomcat 6.xx
Now i am unable import these files.
And also i am unable to see the pictures also.
When i see the properties of the image it was giving
http://localhost:8080/FRSWebsite/images/lock.png and it was correct path for that image but it was not displaying in my web page.
What is the problem please anybody help me.
Thanks in advanceHey I am facing a similar problem:
I have this jar file lbswebservice.jar that I have to use for my application.
I added it to the classpath, I copied it in my WEB-INF/lib folder, but when I try to access classes in this package, it doesnt work.
For example the jar contains the package com.blipsystems.lbs.ws.messages.* ; that contains different classes, like the Campaign class.
I tried to use this class (just to create an object) in different context (through jsp, or just through java test classes), but it never works, i get the error: com.blipsystems.lbs.ws.messages.Campaign cannot be resolved to a type
I am a bit desperate here... -
Do I need a css file for each fluid layout page I create
DO I need a different css file for each fluid page page I create?
THanks!The short answer is No!
When you create a second or subsequent document, you need to ensure that the original style sheet has been attached as shown -
Saving css file while saving a web page
Hello,
when i save a web page using SAFARI, I cannot save all the content. I just got the HTML. Which is fine but... what if i want to save also other content, exspecially CSS. In IE you easily can. Why not in SAFARi?
Or maybe it could be done and I simply don't know...
thnaks,
RoccoSafari 2.0.x for OS X 10.4 will allow you to save the whole contents of a page in a format that isn't too easy to extract items from.
Give either Camino or Firefox a try, both of which will let you save a full static version of the website for off-line viewing. -
How to call external js file to custom master page
Hi all,
I have created custom master page and i need to call external .js to master page. i tried every aspect of including this in master page. but this js is not running.
<script src="test.js" type="text/javascript"></script>
i have put the above calling js script to head tag.
And, When i am running the site, the js file is not loading.
How to load this js file to custom master page.
Thanks,
RakeshI have placed js file in same folder of custom master page.
This is quite annoying and i am struggling to call it.
js file is in same master page folder still i am calling it through whole URL as
<script type="text/javascript" language="javascript" src="http://SharePoint/sites/SiteName/_catalogs/masterpage/Master%20Page%20Template/test.js"></script>
Still it is not working.
Now i am not sure what is wrong here.
Please help..
Thanks in adv !!
Rakesh -
Induced Error Linking to CSS files
When I link (in the CSS panel ) a CSS file locally to an html
page I get the following:
<link href="/css/type.css" rel="stylesheet"
type="text/css" />
The CSS folder is in the same folder as the page so the path
is almost correct but its the leading "/" that creates the problem.
The html page doesn't reference the CSS file.
If I remove the leading "/" the CSS file is referenced and
the page displays as expected.
So the link now becomes
<link href="css/type.css" rel="stylesheet" type="text/css"
/>
I'm not knowledgeable on the conventions of defining the path
from the page to CSS file so I have to ask is this a bug in DW, do
I have an incorrect setting that I'm not aware of, OR is there some
other reason this is happening.
Additional Information: The page displays correctly in the
"design" mode but when you go to "live view" it fails. The page
also fails to display correctly when viewed in a browser.
Background: DW CS4, OSX 10.5.5
ThanksAt the bottom of the "Select Style Sheet File" dialog there
is a filed
called "Relative to:". You have it set to "Site root". Change
it to
"Document".
HTH,
Randy
> When I link (in the CSS panel ) a CSS file locally to an
html page I get the
> following:
> <link href="/css/type.css" rel="stylesheet"
type="text/css" />
> The CSS folder is in the same folder as the page so the
path is almost
> correct but its the leading "/" that creates the
problem.
>
> The html page doesn't reference the CSS file.
> If I remove the leading "/" the CSS file is referenced
and the page displays
> as expected.
> So the link now becomes
> <link href="css/type.css" rel="stylesheet"
type="text/css" />
>
> I'm not knowledgeable on the conventions of defining the
path from the page to
> CSS file so I have to ask is this a bug in DW, do I have
an incorrect setting
> that I'm not aware of, OR is there some other reason
this is happening. -
Using Visual Studio as an HTML editor with SharePoint's Design Manager
I'm building a master page using Design Manager. I've mapped a network drive so that I can access the MasterPage.html file with an HTML editor.
I'd like to use Visual Studio 2012 as my HTML editor. But, when I modify MasterPage.html in VS, it creates a MasterPage.html~RF9158aed.TMP file alongside the MasterPage.html and MasterPage.master files, which breaks the master page in SharePoint.
I can modify MasterPage.html successfully with NotePad. I can also modify an html file, that is not associated with a folder in SharePoint via a networked drive, with VS.
Can I use Visual Studio as an HTML editor in this scenario? If so, what am I doing wrong?
Your help would be much appreciated.
Thanking you in anticipation.
Roger
rogerwithnellThe TMP file is used by VS to save off changes in the file your working on, so you can perform Undos for instance. If you shut down VS it should clean those up for you. However, this can be a challenge if you're still working on the file.
I would just make a copy of the MasterPage and place it in a folder outside the mapped folder. Then you can simply copy and paste it back into the mapped folder.
FYI, don't do this with any OOTB MasterPages! Please make a copy and rename one that comes with SP, you don't want to change those in case you need to revert back.
Good luck!
Brandon Atkinson
Blog: http://sharepointbrandon.com -
Where do I apply this CSS file in the login page to get the required output
Hi,
I am an apex beginner. I got this html text from a 'Google Blank Search' for beautifying the login page. I have no idea where to copy and paste this CSS file in the 'login' edit page. If I open 'Edit Page template option, I can see page 'Definition' , 'Header' and 'Footer' and so many codes. In which part of these areas I Should copy this script to get the output.
Thanks in advance...
Please find the script below.
html, body {
font:normal 12px verdana;
padding:0;
border:0 none;
overflow:hidden;
height:100%;
body {
padding: 0px;
background-image:url(&LOGIN_BACKGROUND_IMAGE.);
background-repeat:repeat;
background-position:center;
background-attachment: fixed;
text-align:center;
margin:0 auto;
vertical-align:middle;
#Messages {
width:345px;
margin-left:-180px;
position:absolute;
top:50%;
left:50%;
margin-top:-35px;
#BoxBody {
width:345px;
margin-left:-170px;
position:absolute;
top:50%;
left:50%;
margin-top:30px;
Edited by: user13561710 on Jan 9, 2011 5:32 PM
Edited by: user13561710 on Jan 9, 2011 5:33 PM
Edited by: user13561710 on Jan 9, 2011 5:37 PMHi,
Edit the page and add the styles into the HTML Header setting. Also ensure that the styles are enclosed within STYLE tags:
<style type="text/css">
html, body {
margin-top:30px;
</style>Andy -
Design Manager - Name not displaying for MasterPage
Hi,
When I navigate to my Design Manager and want to edit a master page, the "name" column is blank. I am not able to edit the masterpage. I am a site collection owner.
It's like it displays the wrong view.
Thank you,
LorenaHi Lorena,
When you hover your mouse over the “…” and click “Open Menu”, could you see the title of Master page? If you click on the master page, could you see preview page and figure out the title in the url?
If you go to Site settings > Web Designer Galleries > Master Pages and page layouts, could you see the master pages’ titles?
There seems no view control in DesignMasterPages,aspx . In addition, please capture the screenshot for the issue for more clearly understanding.
Regards,
Rebecca Tu
TechNet Community Support -
Using Custom css in master page but it changing the alignment when some user log in
Hi all,
I created a custom css and i applied on master page,this css is good for admin log in,but other group users are loges in, css is changing in Alignment of Pictures how to solve this issue , I given the permission for the style library where
i placed the images and css filehi,
This usually happens to me when the CSS file is not published or approved yet. Where is your new CSS located? Have a look
with SharePoint Designer or browse to it and publish/approve it.
use refrence from below links
http://sharepoint.stackexchange.com/questions/53565/css-and-js-files-work-for-admin-but-not-for-members-and-visitors-sp-2013
http://sharepoint.stackexchange.com/questions/20558/sharepoint-2010-branding-i-see-it-as-site-admin-but-rest-users-dont
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
Cannot download master page using managed client object model SharePoint 2010
string siteUrl = "http://server:port/sites/demo";
string fileServerRelativeUrl = @"/sites/demo/_catalogs/masterpage/v4.master";
using (ClientContext context = new ClientContext(siteUrl)){ FileInformation fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(context, fileServerRelativeUrl);}
File.OpenBinaryDirect() throws "The remote server returned an error: (404) Not Found" error. while Microsoft.SharePoint.Client.File f1 = web.GetFileByServerRelativeUrl(fileUrl);
context.Load(f1);
context.ExecuteQuery();this gives the file object.File.OpenBinaryDirect() works if I pass "/sites/demo/_catalogs/masterpage/TabViewPageLayout.aspx" as fileServerRelativeUrl.Both the files are present in Master Page Gallery.File.OpenBinaryDirect() doesn't work if I pass any of ".master" file in the master page galleryPlease let me know whether downloading the master pages is supported using managed Client object model.Hi,
If don't change the default config, We are unble to download master page.
It's better to create your own (perhaps based on the default.master) and use that master page.
also,make sure there's no a permission issue on the website.
Thanks
Guangchao chen
TechNet Community Support
Maybe you are looking for
-
CRM ISA R/3 Edition on AP 7.0 Pricing Routine Number range error
Hi Experts, For our R/3 ISA Secenerio I have developed a Pricing Prepare Routine (PRP). I have uploaded this routine into AP 7.0 ( which runs my IPC 5.0). Now when I try to register my PRP routine I'm not able to do so because of Number range not def
-
Printer Driver disappearing every time Hyper-V VM is restarted
Printer is a local network printer. The driver has to be added to the VM every time I restart it. It is not persisting through the restart. I have software running on this VM that requires this printer to print reports and packing slips. Can anyo
-
Finding all missing files - not just music
My library had 39 missing files, the problem is I can only find 2 exclamation marks for 2 audiobooks I already knew had a problem. I've seen the new playlist trick for locating missing files (for example), but I don't think that will help me as I don
-
Roll up command and CUBE command
Please anyone explain me what is the use of ROLLUP and CUBE command in SQL and which situations it will be using.
-
Open a file, then close current pdf file
Acrobat X XI Pro We have some renamed documents, but other documents link to the old names. To solve this I created a Word document with the text : OldDoc is now NewDoc. NewDoc is a hyperlink to NewDoc on the LAN. I then created a pdf from the Wor