Connect.Collaborate.SharePoint
Mar
5
battery seems to be flat so they can't call its number to find me. Email me if it is yours...
I went to hand it in but there is no lost and found service. I'll try and charge the phone so you can call it later.
Categories:Personal, SPC2008

 
Jan
17

My first week back at work and there has been so much demand that I've not been able to publish any of my recent experiments. Going back to work was such a shock that I'm taking the next off ;-)

One thing that I did want to share came about from a problem I was trying to solve with the DVWP. I was doing a CrossList query over all sites in the site collection (if you didn't know you can do this, see this blog post) and want to return list items that met a specific criteria but rather than provide a link to the item, I wanted to link to the site containing the item. I have wanted to do the same with the Content Query and Related Documents web parts but they don't support this.

In my case it was a list that exists in every site template containing key project details. The FileRef for the returned items looks like this 1;#projects/project3/lists/Project Details/1_.000

So I could use <xsl:variable name="ProjectURLtemp" select="substring-after(@FileRef, '#')"></xsl:variable>
to drop the 1;# and do a substring-before' /lists' to remove the unwanted remainder.

I also found this http://xsltsl.sourceforge.net/string.html#template.str:substring-before-last and a bunch of other useful functions you can download and use in your Data View/Form xsl.

e.g.

<xsl:variable name="ProjectURL">
  <xsl:call-template name="str:substring-before-last">
      <xsl:with-param name="text" select="$ProjectURLtemp"/>
      <xsl:with-param name="chars">/Lists</xsl:with-param>
    </xsl:call-template>
 </xsl:variable>

<a href="{$ProjectURL}"><xsl:value-of select="@Title" /></a>

Each sub site in this example has a Data View of the list being queried on the home page which also supports an edit mode. The reason I did this is that the list should only have 1 entry and if users went to the normal list view they might be tempted to create additional rows.

I'll include a screen shot of the rollup result and also describe how the document templates web part works. Every sub site displays the document templates, 30 in this case was too many to use content types, which are held in the top level site but when you click on one of then it behaves the same as a content type and knows to save the document into the current sites document library.

Categories:Personal

 
Dec
30
I didn't let my kids do any of these things, they did them anyway (apart from driving the car...)
Categories:Personal

 
Jan
2

I'm reminded of these because my Toshiba M4 died last week so I have to put up with an M200 while the M4 is waiting on parts (bad time of year for a computer failure).

Anyway, I imaged the M200 with Vista + everything possible from an ADS server (BDD is awesome if you have not seen it before) so I was back to a default configuration without my usual customizations.

The first thing I normally do is disable tabs in IE to avoid what just happened to me:

  1. Some web sites crash IE7 – this means I lose all the pages I have open for reference on what I'm currently working on and worse, lose any downloads in progress.
  2. The other thing I hate is that when I Alt-Tab, I only see the current tab content in each IE instance. I can hear someone say "but you only need one instance", two words – Trusted Sites. These open a new instance.
    I just can't get into the habit of Ctrl-Tab when I'm in IE and Alt-Tab for everything else. The MDI interface was dropped by Word years ago and the rollup of multiple application instances on the Start Bar is fine by me.

Well, that was my first and hopefully last gripe for 2007. Actually, I have one more gripe so I may as well get it out now.

It is meant to be summer, but it has been the coldest December on record.

On the plus side, my entire immediate family were together today...

Morrish Family 2007

That’s me on the right, oldest son Josh in front of me, wife Cathy in the white top and Dan the man with the black cap.

Categories:Personal

 
Oct
6
Categories:Personal