<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access the static images in app path in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516177#M9208</link>
    <description>&lt;P&gt;have you tried using a relative URL as either&lt;/P&gt;&lt;P&gt;background-image: url( 'images/hot-water-icon.gif' );&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;background-image: url( 'hot-water-icon.gif' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2020 02:41:06 GMT</pubDate>
    <dc:creator>aa70627</dc:creator>
    <dc:date>2020-08-26T02:41:06Z</dc:date>
    <item>
      <title>Access the static images in app path</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516160#M9207</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating a custom visualisation for my org, so I'm developing it into an app, following this tutorial:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/AdvancedDev/CustomVizTutorial" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/AdvancedDev/CustomVizTutorial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything's great so far and working perfectly on my local machine when I'm referencing a background image in my CSS using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;background-image: url( '/static/app/********/images/hot-water-icon.gif' );&lt;/LI-CODE&gt;&lt;P&gt;(obviously ********&amp;nbsp;is the name of my app, on my local machine).&lt;BR /&gt;&lt;BR /&gt;This is great, until I sent an upgrade to test on another machine, where it got installed into an app directory called "******** - Copy" (I assume because that was the name of the file of the folder I copied to zip &amp;amp; send thru, because I didn't want to send some other things in the /static/app/********/bin/ folder I was still working on at the time....)&lt;BR /&gt;&lt;BR /&gt;So... How do I access the URI for the named app install folder? Can it be done? or do I just need to presume it'll always be as I set it?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Phil&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 22:35:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516160#M9207</guid>
      <dc:creator>phil__tanner</dc:creator>
      <dc:date>2020-08-25T22:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Access the static images in app path</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516177#M9208</link>
      <description>&lt;P&gt;have you tried using a relative URL as either&lt;/P&gt;&lt;P&gt;background-image: url( 'images/hot-water-icon.gif' );&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;background-image: url( 'hot-water-icon.gif' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 02:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516177#M9208</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2020-08-26T02:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Access the static images in app path</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516178#M9209</link>
      <description>&lt;P&gt;Unfortunately that's not going to work as we plan on using the visualisation in many dashboards, and across multiple embedded reports - which of course have URLs outside of the particular app (and the visualisation is marked as being set to be available globally within the instance).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 02:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516178#M9209</guid>
      <dc:creator>phil__tanner</dc:creator>
      <dc:date>2020-08-26T02:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access the static images in app path</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516441#M9210</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;background-image: url( '/en-US/static/app/{yourapp}/images/simple_chart.png' );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;no matter which app your using this from, it should still work as long as you replace {yourapp} with the actual app where the image resides.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 06:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516441#M9210</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2020-08-27T06:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Access the static images in app path</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516445#M9211</link>
      <description>&lt;P&gt;Thanks Path Finder.&lt;/P&gt;&lt;P&gt;Unfortunately, that's my question - for my local dev {yourapp} is one value. But when testing on another machine, they have installed it (somehow) into {yourapp - Copy}&amp;nbsp; - I'm trying to work out if I can programmatically access what value {yourapp} has been set to on the currently running install.&lt;/P&gt;&lt;P&gt;I think the answer is "no", and my edge case is so edge-casey that it wouldn't be worth developing anything for.&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 06:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-the-static-images-in-app-path/m-p/516445#M9211</guid>
      <dc:creator>phil__tanner</dc:creator>
      <dc:date>2020-08-27T06:54:53Z</dc:date>
    </item>
  </channel>
</rss>

