Sharepoint 2013 custom search refiners - search

there are some oob types of refiners like slider or slider with graph. I would like to customize a refiner to look like e.g. a treeview. Is there a way I can edit existing ones? Or maybe can I write my own from scratch? How?

This is what I had in mind...
http://blogs.msdn.com/b/murads/archive/2013/03/01/using-jquery-and-jqplot-in-your-display-template-to-show-a-piechart-refiner.aspx

Related

Creating a custom view style in Sharepoint 2013?

We're currently building a sharepoint 2013 site but the need to create a custom view style has now become apparent. When viewing documents, the following features would be ideal:
The ability to specify conditional colour values based off dropdown
values.
The ability to add additional styles to a list view - table padding
etc.
The ability to show additional content to a list view - table headings
etc.
As a short term solution we've enabled a thumbnail image to be chosen when a document is added, but this is less than ideal - especially for the client.
We can't seem to find any documentation on how to create a custom view style anywhere so your knowledge would be greatly appreciated.
Thanks!
P.S I should note that:
We only have access to Sharepoint Designer 2013 and not 2010.
We cannot use any external JS libaries.
I think there are no poor or stupid questions. But styling in SharePoint is a wide area. The prefered way for styling and customizing is JSLink, here is a basic tutorial that might help:
http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html

is there a way to generate input fields in ascx from sharepoint 2010 list

I'm developing a custom aspx form for a SharePoint list in Visual Studio, basically to add a new item to the list (that's a business requirement).
I'm wondering if there's a way to generate input controls from the list in design time just like we used to do from a database in ASP.NET.
If you're doing a straight match from the SP List to web form take a look at the SharePoint Form Generator web part
Just add the web part to the page and identify which list to build a form for.
To answer your question, yes there is a way to generate the fields. What you are looking for is the Sharepoint FormField class in the webccontrols namespace.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.formfield.aspx
Here is an article explaining the entire field controls heirarchy for sharepoint. http://msdn.microsoft.com/en-us/library/aa543321.aspx
Generally this is used inside an ASCX control, let me know if you need any more explanation.
I discovered T4, that's exactly what I'm looking for,,, I used it to generate input controls in design time... I faced some problems accessing SharePoint from T4 templates but were resolved using The Client Object model :)

A minimal code webpart that displays a single picked item from a list

I'm not sure this is possible, but figured I´d give it a shot. First a few pre-requeistes and environment details:
I´m using SharePoint 2010, SharePoint
Designer 2010, VS 2010
I want to create as little code as
possible, preferably, create it all via UI or Designer
use out of the box components as much
as possible
Here is What I want to do:
Have a custom list with custom columns (easy part)
Create a webpart with an edit interface to select a single item from this list
This same webpart when visible would display the contents of this selected item in a given layout
I know I can do this creating a custom web part and code it all from scratch, I guess my main question is, is there a way to do this with less code and more out of the box components in SP2010. If not, I guess I'm left with lots of C# code.
Any tips, or pointers in this direction will be most welcome. Thanks in advance.
I think what you're looking for is the Data Form Web Part.
Unfortunately, I can't find any good tutorials for 2010, but hopefully the steps should be similar to setting it up in 2007.
Thanks all for the update. In the end, i had to create quite a bit of code to get this to work:
created a web part that enumerates
the content type,
creates a light box that has a picker
then stores the ID of the content in a column
Not the easiest way,but the only way I could get it working. Thanks again!

Is there a ootb sharepoint list control?

I need a control which simply outputs a list of items. Much like the summary link control but without the links. I thought about using the summary link control and use xsl to style the list, but the link field is required. So this is no good.
Is there anything?
Have you checked out the Content Query Web Part or the Content Editor Web Part?

How do you link 2 web parts on a SharePoint Page?

I want to build a SharePoint page template for a item like "a Company". I'd like to have a Wiki part on the top of the page and a List of documents on the bottom. Let's use Pepsi as my example. I want the top Wiki part to be info about Pepsi, but I want the Document list to be filtered to ONLY show Pepsi items in the list. How do you accomplish this?
If I understand you correctly, I think this is possible using the out-of-the-box filter web parts in MOSS 2007. Ton Stegeman (a SharePoint MVP) has a post that sounds similar to what you're trying to achieve (using MOSS 2007):
SharePoint 2007 Filter webparts - using the Page Field Filter webpart on a Lookup field
As Scott Price points out you can also write your own. Ton's blog also has some guidance there too:
MOSS 2007 Filter webparts part 1 - create your own provider and consumer
Many of the built in web parts within SharePoint are connectable. However, to achieve what you want, you will likely have to build your own. Take a look at the following article for an overview of what is required. http://msdn.microsoft.com/en-us/library/ms469765.aspx

Resources