Skip to Content
author's profile photo Former Member
Former Member

How to trap the file name


Whenever User clicks on a particular document from the Search results list....I want to store the file name in a variable...any help would be highly appreciated.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 08, 2005 at 12:46 AM

    Hi Vaib,

    see Opening a document in the Same Window. - now let the link point to some AbstractPortalComponent, memorizing the file name and redirecting to KM docs component. (If this doesn't fulfill your needs, please specify the use case in detail.)

    Hope it helps


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey Detlev,

      You was right, "_blank" is hardcoded in the class file. Here's the code snippet:-

      protected Component renderDetailsLink(IResource resource, Component comp)

      throws WcmException


      Link result = new Link(IDCounter.currentID());


      <b>result.setTarget("_blank");</b> result.addComponent(comp);

      return result;


      Now if you could tell me how can i re-compile it and then import it in the Portal...OR if you could re-compile it for me....i can send you the jar file to you.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.