Article archive

Find domain controller

24/10/2013 16:42
If you don't have Active Directory on your server and need to work with AD data.. (and you are in the same domain)   Add references System.DirectoryServices and System.DirectoryServices.AccountManagement   ... using System.DirectoryServices; using...

Get src attribute from Publishing Image field

21/10/2013 16:51
Get src attribute from Publishing Image field PublishingPageImage is sharepoint column and user can select image via item picker. To get src attribute for xslt, use following code   Image src: <xsl:value-of select="@PublishingPageImage"/><br></br>  <xsl:variable...

Apostrophe in Xslt

21/10/2013 14:09
Apostrophe in Xslt   Trying to render apostrophe ' with xslt - add apostrophes to string - Unable to use &apos; named char in concat function - Unable to use &#39; html escape in concat function   Only use what worked was direct or assigning to a variable as you see in...

New item link in pop-up window

18/10/2013 16:53
New item link for Content Query Web Part to open in popup window This is a part of Xslt of Main plusIcon.png and MyStyle.css is uploaded to /Style library/MyFolder  <xsl:template match="/">   <link rel="stylesheet" type="text/css" href="/Style...

User profiles not loaded from Active Directory

18/10/2013 11:53
User profiles not loaded from Active Directory Even after manual synchronization, user profiles were not loaded to Sharepoint. - DNS record missing  -  AD rights for SPAF account missing (replicate changes) https://technet.microsoft.com/en-us/library/hh296982.aspx

People search not working

18/10/2013 11:45
People search not working - Add Everyone group to search settings - separate content source for mySites - separate crawl rule, - Change accout in crawl rule for MySites (use mysites url with sps3 and wildcard /*) - use http and sps3 including port - use crawler account, not search service account...

Link external css style sheet

11/10/2013 11:25
<link rel="stylesheet" type="text/css" href="mystyle.css"/>

Create edit item link in Xslt

11/10/2013 11:19
Create Edit item link for Content query web part   Sometimes you want to create edit link to list item (not the aspx page) in Content query web part. In this example, Item title is used like header and contains link to item itself in popup window.   Use this templates and code in...

Trim FileName from Url, revert string

11/10/2013 10:11
<?xml version="1.0" encoding="iso-8859-1"?>     <xsl:stylesheet version="1.0" xmlns:xsl="https://www.w3.org/1999/XSL/Transform">         <xsl:template...

Get days difference between dates in C#

09/10/2013 14:58
  TimeSpan daysLate = DateTime.Today - terminSplnenia;                 if (daysLate.Days >= 0)                ...
Items: 161 - 170 of 384
<< 15 | 16 | 17 | 18 | 19 >>