Search Display Template in Tabular Form with specified columns - sharepoint

What is the starting point to create a search display template in a table format and be able to specify which columns you want to display. Presently, the default format only shows the title, description, and link in a 3 row list. I would like to change this to have title, description, link in 3 columns (table format) and be able to add or remove more columns.
What I have managed till now is create a search page for Tasks, that only searches for files of that specific content type. Now I want to be able to decide which columns are shown in the resulting view and if possible show them in a tabular format.
I was thinking about finding a similar template and try edit the HTML to make it look as I want it. Is there a similar template? Or perhaps a ready template which I missed?
Thanks!

There was indeed a similar template, very similar to what I needed:
Displaying SharePoint 2013 Search Results in a Table
The table template html files are also provided for under an MIT License.

Related

Can I tell NetSuite Advanced PDF/HTML to treat data item as HTML?

I’m new to NetSuite, just starting to try to develop an Advanced PDF/HTML template. I need to have a text data field contain HTML and have the report generate treat it as HTML.
The objective is that the data source that feeds NetSuite will generate HTML that varies based on the content of the data and other objects associated with it on another system, and to have the report engine render that HTML.
It doesn’t need to support terribly complex HTML basically just a table with columns/rows that may vary based on the data, including having rows that may contain another table.
Any pointers would be greatly appreciated.
Had an expert show me the solution. Here are the steps:
Add the custom field and make it type Rich Text
Develop an invoice template that looks like you want it to look, but put a placeholder string where you want the HTML to go (e.g. HTML_GOES_HERE)
Write a JS scriptlet that will pull the HTML from the record and replace the placeholder. Import it into NetSuite and deploy it
Add a custom action to the form where you view the invoice that will invoke the method in the JS scriptlet

Sharepoint 2013 search result in table

I tried finding information on customizing the display result view without success.
I need to display the search result in a table in place of the list.
in my column of the result, I need the library and some common information between the different library.
Look at this template. Don't worry about "People Directory".
did you try creating a display template. That should let you customize the search results into any shape or form including tabular
http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/change-how-search-results-look-by-using-result-types-and-display-templates-HA104057444.aspx
http://blogs.technet.com/b/speschka/archive/2012/07/23/using-query-rules-result-types-and-display-templates-for-a-custom-search-sales-report-in-sharepoint-2013.aspx

Creating custom view in SharePoint 2010 with new column and row headings

I have a simple list where I am entering a name, a timeframe, and a tag. I'd like to create a custom view of this data where timeframe becomes column heading and tag is the row definition and the name is displayed in grid. What's the simplest way to accomplish this?
Use a Content Query Web Part to display the list.
You can add a custom item template to the ITEMSTYLE.XSL file in Style Library/XSL Style Sheets directory. With a simple structure like you are describing you can easily pivot and format the data.
For general syntax and an overview take a look at Heather Solomon's post: http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx
Another good link with relevant info:
http://kyleschaeffer.com/sharepoint/sharepoint-2010-item-styles-and-ddwrt/

Search webpart in sharepoint 2010

I have created a document library with about 20 columns for storing meta data. The client wants to have search on this metadata with a facility to filter the data based on two values. For example we have two date columns(efective date and termination date) and the results that they wanted to see is files which are having the values between effective date and termination date.
Is there any out of the box solution that i can use for this or should i build a custom webpart. If so, can someone please guide me through....
Create your document library, then in "document library settings" click "Metadata Navigation Settings".
This should give you what you want. You can specify which columns to filter data on. You can stack the filters and by default they appear on the left of the page for users to interact with.

Custom viewing of files from Documents and Media portlet

I have a requirement where in a drop-down with years (2008,2009,2010,2011,2012) as its values is to be displayed.
On select of a particular value all annual report (i.e all pdf files falling in that year) for that particular year are to be displayed.
I have found Documents & Media useful to store such files. I have created Document Type for annual report having following meta data:
NAME: Text field-name of the file uploaded
FILE UPLOAD: file uploaded
YEAR: Integer-this year are linked to the drop down values
I am trying a way to filter (displaying all years in drop down) be added on viewer.
When you select a year, the file document stored is displayed. Please help as how to go on further.
We have Documents & Media Display but it shows all the files
Or if Web-content Display can be useful?
Or if how Documents & Media Display can be modified to generate a drop-down of all values displaying links to the pdf?
Please help.
So here is your requirement in short:
Show a drop-down with certain values
On select of any of the values, a list should appear which displays the list of files.
So here are my suggestions according to the points above:
Create your own custom portlet to show the drop-down. Don't go with customizing the liferay's portlet since later on you might get some more requirement to refine the logic or change the UI and you may also be required that Liferay's Document library portlet works as is. But if you want that uploading the files and a drop-down should be given in the same portlet then you have just one option to go with the Documents and Media display portlet.
Write your custom logic to display the list of files using Liferay Document & Media API in conjunction with Dynamic Query API.
The challenge would be to make the logic of fetching files according to the Meta-types for your Document Type, since I don't think liferay does not provide any way to fetch data according to the Meta-data types in a Document Type.
Please comment if you need something more or have not understood anything.

Resources