PassMark Logo
Home » Forum

Setting the target on the result links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sherbert99
    Junior Member
    • Mar 2009
    • 10

    #1

    Setting the target on the result links

    Hi, when people click on the result links on my search results page, I need the links to use the target "_parent". Right now it seems to be going to _self.

    For example I need the result links to have a target like this:
    <a href="http://mysiteeeee.com" target="_parent">go to site</a>

    Is there a way to do this? I'm using the "javascript platform" method and I checked the settings.js files but don't see anything for this except mabye UseLinkTarget but I am not sure what that is for?

    Thanks for the help
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    You need to change the "Results linking" settings in the "Search page" configuration window. No need to look inside the JS source code.

    Comment

    • sherbert99
      Junior Member
      • Mar 2009
      • 10

      #3
      Ah! If it was snake it would have bit me. Alot easier then I was thinking.

      Thanks for the quick reply it works great.

      Comment

      • GasPower
        Junior Member
        • May 2011
        • 3

        #4
        More Tweaking

        Hello,

        I found this message and I need to tweak the results even more.

        Example of results:

        1. http://localhost:100/
        Termos encontrados: 1 - Relevāncia: 15
        2. http://localhost:100/Galeria.html
        Termos encontrados: 1 - Relevāncia: 15
        3. http://localhost:100/Solucoes.html
        Termos encontrados: 1 - Relevāncia: 14

        The first result I don't want to be shown because it's the index page, but my biggest issue is that when I click the link I don't want to open a new window or a new tab and it's making.

        Using the Config Tool, at Search Page, I have the results linking as "Current Page" which works, so i see these results in the same webpage, now how can I make the Link Result to be also in this page?

        Regards,
        Pedro ( GasPower )

        Comment

        • David
          Administrator
          • Dec 2004
          • 4714

          #5
          Adding this meta tag on your page will stop the index page being indexed.
          <meta name="robots" content="noindex">

          I don't really understand the rest of the issue. If result linking to the "current page" works, then how can it also not work?

          Comment

          • GasPower
            Junior Member
            • May 2011
            • 3

            #6
            Found the issue

            Hello,

            thank you for the reply.
            I'm going to test that line.

            About the issue, I was saving the file in another location, so actually I have 2 search.js files.

            I found the problem and it works.

            Thank you

            Comment

            • marlin
              Newbie
              • Jun 2011
              • 1

              #7
              &quot;Search page&quot; config window

              I'm new at this - "You need to change the "Results linking" settings in the "Search page" configuration window."

              Where is the config window you are referring to?

              Comment

              • David
                Administrator
                • Dec 2004
                • 4714

                #8
                The Search Page configuration window is under the menu,
                Configure / Search Page.

                Comment

                Working...