Web Build Automation Copy Files - Resources path

  1. 8 months ago

    Hal G

    21 Jan 2019 Pre-Release Testers, Xojo Pro, XDC Speakers CampSoftware.com
    Edited 8 months ago

    I'm using Build Automation Copy Files to copy a folder, 'fontawesome-pro' to the Resources folder. That works great as I can see the 'fontawesome-pro' folder in the debug/Resources folder. :)

    But when I add the following to Application.HTMLHeader, it doesn't seem to be able to access that path.

    <!-- FontAwesome https://fontawesome.com/icons -->
    <link href='/Resources/fontawesome-pro/css/all.min.css' rel='stylesheet' type='text/css'>

    In the Resources folder I see a bunch of images referenced in the html source, but using 'framework' in the paths:

    <link rel="shortcut icon" type="image/x-icon" href="/framework/favicon.ico">
    <link rel="apple-touch-icon" href="/framework/homescreen60.png"/>
    <link rel="apple-touch-icon" sizes="76x76" href="/framework/homescreen76.png"/>
    <link rel="apple-touch-icon" sizes="120x120" href="/framework/homescreen120.png"/>
    <link rel="apple-touch-icon" sizes="152x152" href="/framework/homescreen152.png"/>

    But when I try changing the path from 'Resources' to 'framework', the app never loads in the browser.

    <!-- FontAwesome https://fontawesome.com/icons -->
    <link href='/framework/fontawesome-pro/css/all.min.css' rel='stylesheet' type='text/css'>

    Any ideas? I can't seem to find anything in the docs. :(

    The web app doesn’t know anything about the layout on disk. You’ll need to use App.HandleUrl to intercept those requests to /Resources.

  2. Greg O

    21 Jan 2019 Xojo Inc Answer

    The web app doesn’t know anything about the layout on disk. You’ll need to use App.HandleUrl to intercept those requests to /Resources.

  3. Hal G

    21 Jan 2019 Pre-Release Testers, Xojo Pro, XDC Speakers CampSoftware.com

    Thank you!

or Sign Up to reply!