Home > Search, Sharepoint > Custom Display Form and its problem with Search result

Custom Display Form and its problem with Search result

I came into situation exactly like this http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/5461e442-d539-4bc6-b9e8-30db20a62abe/ , where search result still pointing to original display form even it’s been set as not default. Then I followed the suggestion there to input custom display form relative path in Content Type Setting as seen below:


First, It worked, where it actually still pointing the original display form but when it clicked, it redirected to custom display form that’s been set.

But then I tried it to another library, it didn’t work Sad smile, didn’t know Why.

Another suggestion is to delete original form to leave only one display form then do full crawl. But I don’t want to do that, it’s too risky.

At the end, I came to decision to edit Search Result XSL. Here is my XSL Code :

<xsl:variable name="newurl" select="concat(substring-before(url,'/Forms/'),'/Forms/DispForm.aspx?ID=',substring-after(url, 'ID='))" />
Note ! this is only suited for my case, where :
– original display form’s name is something not DispForm.aspx
– custom display form’s name is DispForm.aspx
And that newurl variable is replacement for the default url variable that’s used to build the hyperlink.
Categories: Search, Sharepoint Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: