How to display names without file extension in Content Query Web Part in SharePoint 2010

I try to display names in Content Query Web Part  but it shows file extension. I cannot find a way in CQWP editor that can exclude file extension.  Is there a way to display names excluding file extensions thru settings in the CQWP editor?
I have to edit the code in SharePoint Designer, right?
Thanks in advance for any tips!

In the file ContentQueryMain you have already a function to get the file without extension.
So we just can use this:
<xsl:call-template name="OuterTemplate.GetFileNameWithoutExtension">
<xsl:with-param name="input" select="$DisplayTitle" />
</xsl:call-template>

Similar Messages

  • How to hide title of the list on Content Query Web Part?

    I am trying to display the description on content query web part from a list. Even when I leave the Title field blank on "Presentation" section (editing the web part), the title shows up with the link along with the description. Is there any way
    to hide the title or leave it as blank? Any help is highly appreciated.
    Thanks,
    Evilar

    Hi Evilar,
    Thanks for posting your issue, Kindly use the below mentioned CSS Style in ID of table tag to fix this issue
    #hide-title .ms-viewheadertr {
    display: none;
    }OR
    For Content Query Web part (WebPartWPQX) Note; X is a number of your web part.#WebPartWPQX .ms-viewheadertr
      display: none;
      }So only titles of the webpart within the WebPartWPQX will be hided.
    Also, browse below mentioned URL for more details
    http://www.balestra.be/2013/08/hide-column-titles-from-sharepoint-lists-libraries.html
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Content Query Web Part will not display all fields.

    I would love some assistance on this.  When I choose fields to display in the Web Part they do not appear.  And I should say the the article "How to: Display Custom Fields in a Content Query Web Part" on the Developer Network is
    a great start but it is only applicable to '07 and '10.  Where is the detailed info for SP 2013??

    Hi,
    According to your description, my understanding is that you want to display custom columns in Content Query web part in SharePoint 2013.
    Per my knowledge, the method for SharePoint 2013 to display custom columns in Content Query web part is the same with SharePoint 2010.
    The method in the link below is also can be used for SharePoint 2013:
    http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).ASPX
    Do you encounter any issue when customizing in in a Content Query Web Part?
    Here are some links about customizing the ItemStyle.xsl to display custom columns in Content Query web part in SharePoint 2013 for you to take a look:
    http://prafulgoyal.blogspot.in/2013/04/sharepoint-content-query-webpart-oob.html
    http://social.msdn.microsoft.com/Forums/en-US/49739730-47c1-43df-9d0e-ad506e6ca31b/display-multiple-columns-in-content-query-webpart
    http://social.msdn.microsoft.com/Forums/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns?forum=sharepointgeneral
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Content Query Web Part and special characters in file names

    Hi All,
    Is there an out-of-box way to display periods in a file name if I am displaying a document library files? I do not want to end up doing a custom item style if possible.
    For example, file name is 8.5x11Letterhead.docx, 8.5x11Resume.pdf etc.  I do not want to display the file names as 85x11Letterhead.docx.
    Thanks

    Hi,
    Would mind providing a screenshot about how your Content Query Web Part rendering in your environment?
    In my environment, it displays the filename which contains periods:
    I would suggest you create a new page and insert a Content Query Web Part to perform the test again.
    Feel free to reply with the test result or if there any progress.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to display all the surveys using content query web part

    Can you please tell me how to display all the surveys using content query web part in more details? I also created a subsite and multiple surveys in that site. Then, I inserted a Content Query Web Part and select the List Type to be "Survey",
    however, it returned nothing. Did I miss anything?

    Hi,
    OOTB Survey List does not contain any
    Content Types and it has the following structure:
    Response entry is represented by
    List Item
    Response entry consist of questions and answers, where Question correspond to
    Field and Answer to Item value respectively.
    For querying Survey List via CQWP  the following properties could be used
    BaseType 
    <Lists BaseType="4">
    ServerTemplate
    <Lists ServerTemplate="102">
    Example
    To retrieve all the responses from Survey lists, specify List Type property as shown on picture
    Reference:
    http://stackoverflow.com/questions/17280778/display-all-surveys-using-content-query-web-part
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Content Query Web Part - Custom ItemStyle.xsl to display image with hyperlink

    I don't have access to InfoPath or SharePoint Designer to edit the ItemStyle.xsl. So any solution suggested is preffered to be a manual change to ItemStyle.xsl
    I use Content Query Web part (in the main site) to list all the Wikis created in the a sub-site. The idea is to link each wiki to its printable version stored elsewhere.
    The wiki has custom column say "Link" that hold hyperlinks to the printable version.
    I want to create a column in the content query web part that displays an image (same image for all wikis stored in the site Assets) but on clicking takes me to the printable version page.
    I got the image displayed but the hyperlink takes me to the location where the image is stored and not to the printable version page.
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="PDFLink">
    <xsl:value-of select="@Link"/>
    </xsl:variable>
    <!-- Image to the hyperlink-->
    <a href="{$PDFLink}">
    <img src="../Images/Icon.jpg"/>
    </a>

    Hyperlink column is treated a little different. The field, by default, puts the URL and then the friendly name concatenated together, but separated by a comma. So I created two variables one that pulls everythng before the comma and the other after. Then
    the html "a" tag looks like this:
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="ActualLink" select="substring-before(@LinkColName,',')"/>
    <xsl:variable name="FriendlyName" select="substring-after(@LinkColName,',')"/>
    <!-- Image to the hyperlink-->
    <a href="{$ActualLink}"><xsl:value-of select="$LinkColumnName"/>
    <img src="/Images/Icon.jpg">
    </a>

  • Way to use Visual Web part in sharepoint 2010 without using/installing third party tools

    I want to know the way to use Visual Web part in sharepoint 2010 without using/installing third party tools.
    Please provide me a link where i can actually know how it is done.

    + to _eNo_,
    Visual Studio 2010 has support for visual webpart, you can find that under Visual C# node in the Installed Templates section (if your preferred language is C#)
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Display Custom Fields in a SharePoint 2010 Content Query Web Part?

    Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part
    AKshay Nangare

    Hi,
    By default CQWP shows only one column. However, if you want to show more than one column, then CQWP needs to be customized. The property which you are looking for is CommonViewFields. It is used to specify the additional fields that you want to display in
    the Web Part. See this for more information:
    https://msdn.microsoft.com/en-us/library/ms497457%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Content Query Web Part - Sort Libraries by Name

    Hello,
    I created a Content Query Web Part that lists all Libraries under the current site (preferably it would be better to list only the Libraries on the current site but I couldn't manage to do it). However, the libraries are not sorted in any way.
    The query is the following:
    Path:{Site.URL}* contentclass:STS_List_DocumentLibrary  -Title:Assets  -Title:Templates 
    Whatever I select on the Sorting tab nothing happens, the results are displayed still in the same way, please see attached screenshot.
    PS: I also want to do the same things to lists the subsites - which I also couldn't do to list only one level *Below* the current site - any tips appreciated.
    path:"https://sharepointsite.com/sites/Test/Acquisitions/"  contentclass:STS_Web  Title<>Acquisitions

    Hi,
    Did you use the content search web part?
    I tried to reproduce the issue in my environment, it works well without any issue.
    Did you set the sort by Title in the SORTING section?
    I set the query just like yours:Path:{Site.URL}* contentclass:STS_List_DocumentLibrary  Title:docs  -Title:incoming 
    Then set the sort by Title in the sorting section.
    You can check whether you have configured the SORTING option, then check whether it works.
    Note: By default, the Title property is not enabled the sort option, you can configure it in
    Central Administration->Manage Service Application->Search Service Application->Search Schma
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to display user-editable title in control template (search web part)

    Hi all,
    SharePoint 2013. I've created a custom control template for a search box.  In the settings there is an option to display the chrome, which will display the Title above the web part as entered by the user in the settings for that web part.  
    However, I want to change where this title appears (without the chrome being visible) inside a specific div in my web part HTML - can I manually add a tag (similar to  _#= Title =#_ for example) that will render the title for me?  Or is there som
    js code that will allow me to get that title?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you want to change the position of the title of the search box.
    You can add the code below to Content Editor Web Part.
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script><script type="text/javascript">
    $(function(){
    $("h2[class='ms-webpart-titleText']").css("margin-left","90px");
    </script>
    If you want to hidden the Content Editor Web Part, you need to edit the web part to change the setting:
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to modify title and tooltip text in Content Editor web part

    I have inherited a site with a page that includes two Content Editor web parts. The web parts have been left with the default titles (Content Editor [1] and [2]) and mouse-over text.
    I want to set these to something more appropriate so I choose the option Edit Page (to edit the web parts on this page). I can move the web parts around (so definitely in Edit mode) but if I click the Edit Web Part Properties the page refreshes but no properties
    or options (or errors) appear.
    How do I modify these web parts?

    When you select the edit web part options, the page should reload with the configuration options on the right hand side. This will include several collapsed sections, namely: -
    Appearance
    Layout
    Advanced
    If you maximise the appearance one, you'll see a text field for "Title."  Edit this to what you want and you'll be able to rename these.
    If you can't see the options, make sure to scroll to the far right hand side of the screen.  Sometimes on larger resolution monitors, they can appear hidden.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to code a custom content search web part in Sharepoint 2013?

    Hi,
    Do you have any idea on how to create a custom Content Search Web part? What I mean is, I will code it in Visual Studio 2012.
    Regards,
    Napster

    check this
    http://social.technet.microsoft.com/Forums/ie/en-US/13f1e581-4250-48c7-93a6-ef7ae2bb14c5/is-this-there-a-way-to-programmatically-set-the-query-text-or-append-additional-kql-filtering-to-a?forum=sharepointsearch
    http://onlinecoder.blogspot.in/2013/08/sharepoint-2013-content-search-web-part.html

  • How to find if a ManagedMetadata is used in a web application in SharePoint 2010 programmatically

    Hi,
    Is there any way using SharePoint 2010 server object model that we can find out which managed metadata is used in any of the sites in web application.
    Regards, Shruti

    You can use the code below. You'll need to check all of the fields in each web, as well as each list, so you'll need to use it in a loop. Also, in my example, I'm just getting the first termset in the first term group in the first term store. You'd want
    to change that to the termset you need.
    using (var site = new SPSite("http://siteurl"))
    TaxonomySession s = new TaxonomySession(site);
    TermStore store = s.TermStores[0];
    Group group = store.Groups[0];
    TermSet termSet = group.TermSets[0];
    using (var web = site.RootWeb)
    var fields = web.Fields;
    foreach (SPField f in fields)
    if (f.FieldValueType == typeof (Microsoft.SharePoint.Taxonomy.TaxonomyFieldValueCollection) || f.FieldValueType == typeof (Microsoft.SharePoint.Taxonomy.TaxonomyFieldValueCollection))
    var tf = f as TaxonomyField;
    if (tf.TermSetId == termSet.Id)
    //do something
    var log = String.Format("Field {0} is a memeber of TermSet {1}", f.StaticName, termSet.Name);
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Is it possible to use a content query web part to pull and display rows/items from an Excel spreadsheet saved in a SP library?

    I have an Excel spreadsheet that I want to upload to an SP library. Is it possible to display these items (in a non-excel format, more like an SP list format) in a web part? 

    Have you tried using the Excel web part
    Display Excel content in an Excel Web Access Web Part

Maybe you are looking for

  • Use macbookpro as second display for G5?

    is there a way to use my macbookpro as a second display for my G5?

  • How do i authentication so that i can send a email through jsp a page

    <%@ page import="java.lang.*,java.util.*,javax.mail.*,javax.mail.internet.*, javax.activation.*" %> <% String p_to = "[email protected]"; // Please fill in your email here String p_from = "[email protected]"; // Please fill in receipient’s email here

  • Scam Phone Call

    Just got 2 phone calls back to back from 800-888-9614 saying that Verizon was crediting me $83 and to go to www.vzw83.com, log in, and redeem my refund. There is a website when you type it in and when you click on anything it takes you directly to th

  • XML file has some extra junk character

    Hi Experts,                   When i store file in application server,some extra junk character at last in xml file.So it gives error like below.   An invalid character was found in text content. The last row of XML internal table has some extra spec

  • Change the price according to weight

    Dear friends, My client have the following requirement. Price in the sales should be changed if I change the weight of the material. How is it possible. Please reply at the earliest.