Refine your search:

I have a script that pulls data off of an external site, and I display a search result on a view.

What I'd like to do is to have a link to that external URL in the same panel as the search result. Is this possible, or can I only include static html in new panels?

asked 19 Sep '11, 08:39

jordans's gravatar image

jordans
333
accept rate: 100%

edited 19 Sep '11, 09:10

Does your script that pulls data off of an external site, index/(pull)the external URL ?

(19 Sep '11, 11:44) gekoner

I certainly could add it to the log file that the script appends. What are you thinking?

(19 Sep '11, 14:59) jordans

One Answer:

Certainly. If this is just a static link, ie the link is always the same no matter what the results are, then you can use StaticContentSample:

<module name="StaticContentSample">
  <param name="text"><![CDATA[
    <a href="http://sideviewapps.com">my test link</a>
  ]]></param>
</module>

Or you could use the ServerSideInclude module instead of StaticContentSample. In that case you set a 'src' param instead and you give it the name of a static html file in /etc/apps/<appname>/appserver/static. (dont make it a full HTML file with a <head> and <body> and everything -- just make it a little fragment of well-formed HTML.)

And if it's a dynamic link, meaning part of the URL or maybe one or more of the querystring args a) depends on some values in form elements, or b) depends on some field value(s) from the search result, then you'll want to use Sideview Utils module - HTML because it can do that and more.

link

answered 20 Sep '11, 19:00

nick's gravatar image

nick ♦
14.2k1318
accept rate: 47%

edited 20 Sep '11, 19:01

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×325
×161

Asked: 19 Sep '11, 08:39

Seen: 396 times

Last updated: 20 Sep '11, 19:01

Copyright © 2005-2012 Splunk, Inc. All rights reserved.