Facility Control

 View Only
  • 1.  Relative Paths in Dashboard images

    Posted 09-06-2017 17:13
    Hi,

    I want to place an image in my dashboard panel. I've chosen the image and appears as expected. However the path that is is stored in the code-behind is an absolute path which means when I send this to another person to use, the image wont appear.

    The image lives along side the grid file so ideally I just want to send the other user the grid parents folder and have it all work as the image is still in the same location relative to the grid file.

    I tried giving the parent a base url, this allows me to put the bg image path as a relative path and it appears to work on mine, but once again once it is moved, the base-url is absolute and so we have the same problem.

    Does anyone know how to solve this?

    Thanks


  • 2.  RE: Relative Paths in Dashboard images

    Posted 09-07-2017 19:16
    DashBoard should already be using relative paths for images that are located alongside or in a sub-directory of the folder in which the grid file is stored.

    Which version of DashBoard are you using, which OS, and are you launching DashBoard first and then loading the panel or are you launching DashBoard by double-clicking on the panel?

    James

    #DashBoard


  • 3.  RE: Relative Paths in Dashboard images

    Posted 09-09-2017 14:44
    I've fixed this problem now. Somewhere in the .grid file one of my tags has a baseurl attribute, that was equal to the old location of my .grid file. I think this was causing it to think it was located somewhere different than it actually was
    #DashBoard


  • 4.  RE: Relative Paths in Dashboard images

    Posted 09-11-2017 13:21
    Yes, that will do it. The URLs are by default relative to the panel's source but a baseurl attribute will change it.

    J
    #DashBoard