locked
content query web part edit unknown error RRS feed

  • Question

  • In my Sharepoint 2007 i have Content query webpart which i try to edit properties and get back Unknown error.

    in published mode the webpart show the content but i can not customize using edit button.

    any help here?

    Wednesday, May 15, 2013 1:07 PM

Answers

  • This solution did not worket. i just copied the fresh one itemstyle.xsl file to the site collection where i am having problem.

    it shoudl be something else that trigger the error message. any help. here is the itemstyle.xsl. can not attact that one.

    - <xsl:stylesheet version="1.0" exclude-result-prefixes="x d xsl msxsl cmswrt" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:cmswrt="http://schemas.microsoft.com/WebParts/v3/Publishing/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
    - <xsl:template name="Default" match="*" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="NoImage" match="Row[@Style='NoImage']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="TitleOnly" match="Row[@Style='TitleOnly']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
      </div>
      </xsl:template>
    + <xsl:template name="TitleWithBackground" match="Row[@Style='TitleWithBackground']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div class="title-With-Background">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
      </div>
      </xsl:template>
    + <xsl:template name="Bullets" match="Row[@Style='Bullets']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item link-item bullet">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
      </div>
      </xsl:template>
    + <xsl:template name="ImageRight" match="Row[@Style='ImageRight']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-right">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="ImageTop" match="Row[@Style='ImageTop']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="Url" select="@LinkUrl" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-top">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    - <xsl:template name="ImageTopCentered" match="Row[@Style='ImageTopCentered']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item centered">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-top">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="LargeTitle" match="Row[@Style='LargeTitle']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item-large">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="ClickableImage" match="Row[@Style='ClickableImage']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
      </div>
      </xsl:template>
    + <xsl:template name="NotClickableImage" match="Row[@Style='NotClickableImage']" mode="itemstyle">
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </div>
      </xsl:if>
      </div>
      </xsl:template>
    + <xsl:template name="FixedImageSize" match="Row[@Style='FixedImageSize']" mode="itemstyle">
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image-fixed-width" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
      </xsl:stylesheet>

     
    • Marked as answer by ahmriz Wednesday, May 22, 2013 11:04 AM
    Wednesday, May 22, 2013 8:02 AM

All replies

  • **** Before Performing the steps below make sure you take a backup of that file******

    ===============================================================================

    > Open the page in SPD where you put the web part

    > Right click on web part and click web part properties

    > Open Style Library > XSL Style Sheets

    > There is a file called itemstyle.xsl

    > Open that file in designer

    > Press ctrl + F and select “Replace all” option type nbsp

    > Replace it with &#160

    > Save it and try again to modify the web part

    Reference : http://sharepointpratik.blogspot.in/2012/12/error-while-modifying-content-query-web.html


    Regards MuSa


    • Edited by MuuSaa Wednesday, May 15, 2013 1:36 PM Addition to notes
    • Proposed as answer by MuuSaa Wednesday, May 15, 2013 1:36 PM
    • Unproposed as answer by Hemendra AgrawalModerator Thursday, May 16, 2013 5:15 AM
    Wednesday, May 15, 2013 1:36 PM
  • Hi ahmriz,

    Are MuuSaa’s suggestions helpful? Do you need any further support?

    Thanks,

    Entan Ming

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contacttnmff@microsoft.com.


    Entan Ming
    TechNet Community Support

    Thursday, May 16, 2013 6:45 AM
    Moderator
  • Still if it's not resolving your issue, please attach your itemstyle.xsl file here.


    Sekar - Our life is short, so help others to grow

    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer

    Friday, May 17, 2013 5:40 AM
  • This solution did not worket. i just copied the fresh one itemstyle.xsl file to the site collection where i am having problem.

    it shoudl be something else that trigger the error message. any help. here is the itemstyle.xsl. can not attact that one.

    - <xsl:stylesheet version="1.0" exclude-result-prefixes="x d xsl msxsl cmswrt" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:cmswrt="http://schemas.microsoft.com/WebParts/v3/Publishing/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
    - <xsl:template name="Default" match="*" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="NoImage" match="Row[@Style='NoImage']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="TitleOnly" match="Row[@Style='TitleOnly']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
      </div>
      </xsl:template>
    + <xsl:template name="TitleWithBackground" match="Row[@Style='TitleWithBackground']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div class="title-With-Background">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
      </div>
      </xsl:template>
    + <xsl:template name="Bullets" match="Row[@Style='Bullets']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item link-item bullet">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
      </div>
      </xsl:template>
    + <xsl:template name="ImageRight" match="Row[@Style='ImageRight']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-right">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="ImageTop" match="Row[@Style='ImageTop']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="Url" select="@LinkUrl" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-top">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    - <xsl:template name="ImageTopCentered" match="Row[@Style='ImageTopCentered']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item centered">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-top">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="LargeTitle" match="Row[@Style='LargeTitle']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item-large">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
    + <xsl:template name="ClickableImage" match="Row[@Style='ClickableImage']" mode="itemstyle">
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
      </div>
      </xsl:template>
    + <xsl:template name="NotClickableImage" match="Row[@Style='NotClickableImage']" mode="itemstyle">
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
      <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </div>
      </xsl:if>
      </div>
      </xsl:template>
    + <xsl:template name="FixedImageSize" match="Row[@Style='FixedImageSize']" mode="itemstyle">
    - <xsl:variable name="SafeImageUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="UrlColumnName" select="'ImageUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="SafeLinkUrl">
    - <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="DisplayTitle">
    - <xsl:call-template name="OuterTemplate.GetTitle">
      <xsl:with-param name="Title" select="@Title" />
      <xsl:with-param name="UrlColumnName" select="'LinkUrl'" />
      </xsl:call-template>
      </xsl:variable>
    - <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'">_blank</xsl:if>
      </xsl:variable>
    - <div id="linkitem" class="item">
    - <xsl:if test="string-length($SafeImageUrl) != 0">
    - <div class="image-area-left">
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
      <img class="image-fixed-width" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
      </a>
      </div>
      </xsl:if>
    - <div class="link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate" />
    - <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
      <xsl:value-of select="$DisplayTitle" />
      </a>
    - <div class="description">
      <xsl:value-of select="@Description" />
      </div>
      </div>
      </div>
      </xsl:template>
      </xsl:stylesheet>

     
    • Marked as answer by ahmriz Wednesday, May 22, 2013 11:04 AM
    Wednesday, May 22, 2013 8:02 AM
  • we found out there is something else which make trouble with the webpart. there was a feature. what we did, is to deactivate and customize the webpart and activated then feature. the feature dont have any thing to do with the webpart properties. but that was the reason.

    thanks eveyone for respons.

    Wednesday, May 22, 2013 11:04 AM