Author Archives: Voyta

How to specify results source name for search query using SharePoint 2013 JavaScript Client Object Model

For using SharePoint 2013 search CSOM/JSOM there are already existing posts that explain how to perform search, gor example this or this Today, however, I needed to set Results Source for my search query. You can do it using keywordQuery.set_sourceId(guid), … Continue reading

Posted in Sharepoint, SharePoint 2013 | Leave a comment

How to get termStore by name using SharePoint 2013 JSOM

All the examples of retrieving Terms Store and getting all terms using JavaScript object model were using GUIDs. Well, we know that GUIDs work only for specific environment, and not for moving stuff around. You will need to include sp.js … Continue reading

Posted in Sharepoint, SharePoint 2013 | Leave a comment

How to get original Request URL in SharePoint

If you need to get current request URL in ordinary web application, you usually do string requestURL = Request.Url.AbsoluteUri; But as SharePoint does it’s own URL rewrites, if you would try that for example for the page http://yourdomain/sites/yoursite/_layouts/YourPage.aspx It would … Continue reading

Posted in Uncategorized | Leave a comment

Sharepoint 2007 – Quirks mode box model for all browsers with box-sizing

Sometimes you still have to develop for Sharepoint 2007. And, you know, there is no DOCTYPE declaration in standart master pages. Which means, pages are rendered in quirks mode in IE. Which means, magins and padding are counted inside of … Continue reading

Posted in CSS, Sharepoint | Tagged , | 2 Comments

Sandboxed WebPart on .aspx page using replaceable parameters in Sharepoint 2010

Although it is not possible to create real (in _layouts folder) application pages in sanboxed solutions, there is a way to create site pages with codebehind – basically just .aspx page that renders webpart. Page is deployed as a part … Continue reading

Posted in Sharepoint | Tagged , , | 1 Comment

Referencing javascript files using CustomAction in Sharepoint 2010 Sandboxed Solutions

When you are creating farm solution, it is easy to include javascript file into all site pages using CustomAction. The main idea is that you add javascript file to _layouts folder and use Problem is, in sandboxed solutions you are … Continue reading

Posted in Sharepoint | Tagged , , | 3 Comments

Ready to start!

Blog is set up and I am ready to begin writing. Let’s see what will come out. What I am struggling with these days mostly is Sharepoint, Sharepoint Sandboxed solutions, Web Development in general and the thing that I am … Continue reading

Posted in Uncategorized | Leave a comment