Showing posts with label Oliver Pistor. Show all posts
Showing posts with label Oliver Pistor. Show all posts

Tuesday, February 23, 2016

How to localize Search Display Templates

A quick and easy way to localize strings in a display template is to simply write out the translated values in the page. This way, you don't have to use separate resource files for the client side (e.g. like http://ift.tt/1jLcHKF).

Step 1: Write out the current resource string to a JavaScript variable in the page

string script = String.Format("var rsMyResource = '{0}';", ResourceService.GetLocalizedString("MyResource"));
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "rsTS", script, true);

Step 2: Insert the varaible in the display template

<span class="srLink"><a href="_#=openUrl=#_">_#=rsMyResource=#_</a></span>

Of course, this is not recommend for a large number of resources.

Get more infos like this daily: http://ift.tt/1SAPJaw


by Oliver Pistor via Everyone's Blog Posts - SharePoint Community

Monday, June 1, 2015

Presenting Code in PowerPoint

 A great and free Office App to present code from Visual Studio in PowerPoint:

http://www.codepp.net


by Oliver Pistor via Everyone's Blog Posts - SharePoint Community

Saturday, February 7, 2015

Free SharePoint iOS App for mobile offline reading!

I have always been quite intrigued by iOS development and how to combine mobile apps with enterprise systems. The first result is a simple but quite useful app that connects to SharePoint Search and allows you to quickly download documents for offline reading.


Get it here: “QuickAccess for SharePoint” – http://ift.tt/1zvqfkD


Built for iPhone and iPad and SharePoint 2010 and 2013. Does currently not work on Office365.





by Oliver Pistor via Everyone's Blog Posts - SharePoint Community