<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tomblog &#187; MySite</title>
	<atom:link href="http://tomblog.insomniacminds.com/tag/mysite/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomblog.insomniacminds.com</link>
	<description>Rantings of an Insomniac Mind</description>
	<lastBuildDate>Sun, 31 Jul 2011 17:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SharePoint Branding Issues: MySite Control</title>
		<link>http://tomblog.insomniacminds.com/2007/10/09/sharepoint-branding-issues-mysite-control/</link>
		<comments>http://tomblog.insomniacminds.com/2007/10/09/sharepoint-branding-issues-mysite-control/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 22:53:58 +0000</pubDate>
		<dc:creator>Tombo</dc:creator>
				<category><![CDATA[Branding]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Issues]]></category>
		<category><![CDATA[MySite]]></category>
		<category><![CDATA[Pipe]]></category>

		<guid isPermaLink="false">http://tomblog.insomniacminds.com/2007/10/09/sharepoint-branding-issues-mysite-control/</guid>
		<description><![CDATA[This is the first of the more specific articles regarding SharePoint Branding. They will go from small issues to bigger ones. One of the controls a SharePoint design usually sports is the My Site control. This is a control with a link to the current user&#8217;s MySite. But unfortunately this is not the only thing [...]]]></description>
			<content:encoded><![CDATA[<p>This is the first of the more specific articles regarding SharePoint Branding. They will go from small issues to bigger ones.</p>
<p>One of the controls a SharePoint design usually sports is the My Site control. This is a control with a link to the current user&#8217;s MySite. But unfortunately this is not the only thing this controls adds. It also adds a pipe character (|) just to the right of the link. No problem, I thought. As it is a delegate control, it&#8217;ll use some custom control from the control templates. I&#8217;ll just have to remove the pipe from the control. I went to the control templates and bingo, there was MySiteLink.ascx. Wrong, as it seems, the control uses some code behind file where it programatically adds the pipe.</p>
<p><code>this.hlMySiteSpacerSuffix.Text =<br />
  "&lt;span style='padding-left:4px;padding-right:3px'&gt;|&lt;/span&gt;";</code></p>
<p>So how can I quickly remove the pipe, without having to rewrite another delegate control to take its place, or a whole new other control to render the special MySite link? The answer is CSS. As it turns out, the pipe is rendered within a span tag. So when adding the delegate control, make sure you encapsulate it within a specific css reference, for example: .removeSpan. In your css, you just have to define the following:</p>
<p><code>.removeSpan span<br />
{<br />
  display: none<br />
}</code></p>
<p>Voila, one pipe free MySite link. Sure, it&#8217;s still on the page, but the design does not get screwed up by it. Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomblog.insomniacminds.com/2007/10/09/sharepoint-branding-issues-mysite-control/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

