1 Reply Latest reply: May 5, 2011 11:48 AM by rumesh babu RSS

How to change the link of KM Content

rumesh babu
Currently Being Moderated

Hello Experts,

 

     I am using standard km trex engine ot search km contents.In that i need to change the link of the results.Currently it is navigating to existing km contents.But i need to change the navigation which shoud navigate to the link which i will be definig.

 

For example ... if i click any km content in the search result it should navigate to other links (like predefined links which i have to define(ex:www.yahoo.com or somweother predifned links )..) and it should not navigate to the existing km content.

 

i m using the following code in my api..

 

TextView t = new TextView();

          t.setText(property.getValueAsString());

          ResourceLink link = new ResourceLink(this.getResource(), t, this.getProxy(), this.getParameters());

its navigating to existing km content.. and i need to change that navigation...

 

Can anyone please explain  how to bring that feature.

  • Re: How to change the link of KM Content
    rumesh babu
    Currently Being Moderated

    HI rumesh,

       

        Don't use resource link as you did. Try using normal link and create a component(HTMLB or anyother) from KM reource content, then add that component to the link as below.

     

       comp = ....(should be a component from your Km content resource)

     

      Link link = new Link("Link");

      link.setTarget("www.yahoo.com");

      link.setReference("www.yahoo.com");                                        

      link.addComponent(comp);

     

    finally add that link to your search UI . I hope this will help.

       

      I am sorry if i confused you.

     

    Thanks & regards.

    Rumeshbabu

Actions