Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • davelane 29 posts 73 karma points
    Jun 16, 2010 @ 20:13
    davelane
    0

    Can I add dynamic text to result headings based on node structure?

    Hi there,

    I'm wondering if there is an easy way to add a component to the SearchResultTemplate.ascx file that allows me to indicate the parent node of the page(s) returned in the search results?

    Basically I have several pages with the same page name but they are in separate sections of the site, and need some what to clarify what page is being returned.

    ex:

    Contact Page (Marketing Division)

    Contact Page (Sales Division)

    --

    It'd be great to just modify the code in the following way:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchResultTemplate.ascx.cs" Inherits="UmbSearch2.UserControls.SearchResultTemplate" %>
    <asp:HyperLink ID="HyperLink1" runat="server"></asp:HyperLink> (<asp:Literal ID="UseXSLTtoFindParentNode" runat="server"></asp:Literal><br />
    <asp:Literal ID="ltlSummary" runat="server"></asp:Literal><br />
    <div style="font-size: small" visible="true">
        (<%= Resources.UmbSearch2Resources.Match%>
        <asp:Literal ID="ltlMatch" runat="server"></asp:Literal>)
    </div>

    Thanks!
    Dave

Please Sign in or register to post replies

Write your reply to:

Draft