I got a standard webpart that displays the contents of a document library.
If one Field has a specific value I want to Display the Contents Bold and in a different Color.
I can achieve that by going to the document library list and modify the view by using SharePoint designer and adding "Conditional Formatting" and "Format Row".
The results look great in Designer. (Red and Bold)
In the List View the Color is lost, but Bold is still visible.
On the Website using the WebPart for Display all formatting is lost.
What can be done?
Solved this by not modifying the VIEW in SharePoint Designer, but the PAGE. Weird stuff... :)
Related
I have been using Visual Studio for 5 years. I have never used Design view. I am just starting a new, hobby, site and find myself using default.htm instead of .aspx as there will only be html.
I thought, for a laugh, I'd use Design view - as it's more intuitive to type our your text rather than endlessly doing it in the source view with all the tags to disrupt your creative juices.
But, when I click Design View, the screen is blank. There are tags across the bottom - html, body, topdiv, divcontainer etc. - but it doesn't matter what I click on, the screen is empty.
Click on source and all my carefully crafted text is there, click on Design and nothing is there.
So, I'm being thick - is there some trick to get Design view to actually show something?
I'm trying to add custom Display Items to the Fonts and Colors dialog. I can successfully save and retrieve colors using the IVsFontAndColorStorage service but the items do not appear in the list of Display Items. I have tried following this blog post about adding a custom category. My category appeared but only with the default display items. My real goal is to add my custom colors to the "Text Editor" category. ReSharper does a similar thing.
Have anyone had experience with this? Is there a nice tutorial out there?
I eventually went a different route. This thread has the details on how to accomplish it: http://social.msdn.microsoft.com/Forums/en-US/vseditor/thread/ed463657-6a36-4e33-b313-b2923cc81a74
I'm writing an Editor Extension and wondered the same thing. It as easy as decorating the attributes you want to appear with UserVisible(true). See this thread for more information.
http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/cef23a9e-db87-4683-a4be-d18561e8bded
My question is related to printing an Infopath 2010 form in Sharepoint 2010.I designed an Infopath 2010 form in Infopath Designer 2010 and published it to a form library in Sharepoint 2010.The end user fill the form and store it in .xml format in the document library.Now I would like to print the form filled by the end user? Any Ideas or suggestion about the above scenario?Please consider both browser based forms and normal forms
By default InfoPath will just print and work but you might want to format things differently.
Create a new view then craft it the way you want. For print views, you might want to create controls that show the data in label format rather than text boxes and display things like Yes/No fields as text. It will take some work but you can build out a view that's customized for print media.
Once you've created the view select the Page Design tab and under properties for that view click on the Print Settings. From there you can set the default print view, what the headers/footers are, etc.
I'm using Sharepoint 2010 (as a beginner). I need to find the best way to allow a user to create a new page inside a sharepoint site. The page must have an image field which the user can crop when he creates the page.
I have 3 problems concerning this:
How can I allow my user to create the page in a single step. The default behaviour is: create page with Title, Url and Content type and the edit the page layout or the page properties. Is there a way to do this in a single step?
What view should my user use when editing the page? The "Edit page" view, or the "Edit properties"? I don't like the "Edit page" view because... it doesn't look like the right way to do it... BUT, I like the fact that I can use my custom BaseFieldControls in this view. The "Edit properties" look great, BUT, customizing it looks like a nightmare. And, of course, I cannot ask the user to use both views...
One of my requests is to allow the user to upload a sharepoint image for the page, and then to crop tree different sizes using the base image. The big question is: where should I allow my user to do this?
In a webpart inside the "Edit properties" window? - Not very easy to integrate it. It seems almost impossible.
In a custom BaseFieldControl in the "Edit page"? Would be great, but, I don't want the user to use this view.
Create my own Asses Picker aspx page for the "Upload image" field, and replace the default one - _layouts/AssetImagePicker.aspx? Is this even possible?
I dont have an answer for everything but for number 1, maybe:
Check out SPServices. It is a Jquery project which is designed to help people use Jquery on Sharepoint sites. It is really useful for accessing, editing, and writing data is less lines of code than ever before... Unless you are a genius and have SP figured out which most do not.
To be honest, the only way to do things in "1 step" is with javascript anyway...
Hopefully you have heard of Jquery:
Does anyone know how to get my class name and method name dropdown lists again? It's the dropdown lists that are usually above the code. It's just a setting but i can't seem to find it. I don't want to reset my setting btw. I shouldn't have to.
Tools-->Options...
Text Editor-->All Languages
Check "Navigation Bar."
(Picture is from VS2013)
Tools - Options - Text Editor - (choose the type of file - C#, html, etc) - General
In the bottom section of the form (The "Display" area) make sure that "Navigation Bar" is checked.
Actually there is a bug in VS2013, where if you place VS on the monitor on the left side, and this is not your primary monitor, then the dropdowns will not work.
I came here searching for a solution for javascript/node.js specifically (in VS 2013). Only by doing further search I found out that this feature has been removed (from RC) due to stability/performance reasoning and is not available anymore.
https://connect.microsoft.com/VisualStudio/feedback/details/806325/javascript-navigation-bars-are-missing-after-upgrading-from-vs2013-pro-rc-to-rtm
Also, I did not see this added again through either node tools or web essentials.
In VS2015 I just had to toggle this setting off then back on again to get the navigation bar back.
If you want a list of javascript functions that works similar to the navigation bar in the VB or C# pages then search for the extension inside Tools > Extensions and Updates...
Javascript Map Parser
You have to add in aspx into the pages is parses but it's exactly what I needed to quickly find functions in a big section of Javascript I had.
Make sure you in code behind file.
In my case I was looking at code (VB) server side code inside .aspx page, and the dropdown only for code behind files (.aspx.vb or aspx.cs)