FLUID-4393: UI Options' prefix option breaks on absolute paths

Metadata

Source
FLUID-4393
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Justin Obara
Reporter
Colin Clark
Created
2011-08-08T19:05:05.152-0400
Updated
2013-10-04T09:54:34.321-0400
Versions
  1. 1.4
Fixed Versions
  1. 1.4
Component
  1. UI Options

Description

UI Options can currently only handle relative paths in the "prefix" option. When providing a URL like this:

http://localhost:8888/wordpress/wp-content/themes/FSSFive/infusion/components/uiOptions/html/

the result is URLs to templates like this:

:8888/wordpress/http://localhost:8888/wordpress/wp-content/themes/FSSFive/infusion/components/uiOptions/html/UIOptionsTemplate-text.html

Comments

  • Colin Clark commented 2011-08-08T19:05:57.421-0400

    Bug Parade Infusion

  • Colin Clark commented 2011-08-08T19:09:15.983-0400

    Here's the snippet of code I'm using to instantiate UI Options:

    <!-- UI Options -->
    <div class="flc-uiOptions-fatPanel fl-uiOptions-fatPanel">
    <div id="myUIOptions" class="flc-slidingPanel-panel flc-uiOptions-iframe"></div>
    <div class="fl-panelBar">
    <button class="flc-slidingPanel-toggleButton fl-toggleButton">Show display preferences</button>
    </div>
    </div>
    <script>
    fluid.pageEnhancer({
    tocTemplate: "<?php bloginfo('template_url'); ?>/infusion/components/tableOfContents/html/TableOfContents.html"
    });

    fluid.uiOptions.fatPanel(".flc-uiOptions-fatPanel", {
    prefix: "<?php bloginfo('template_url'); ?>/infusion/components/uiOptions/html/"
    });
    </script>

    At runtime on my blog, "<?php bloginfo('template_url'); ?>" resolves to "http://localhost:8888/wordpress/wp-content/themes/FSSFive/"

  • Michelle D'Souza commented 2011-08-18T10:23:28.246-0400

    Pull request https://github.com/fluid-project/infusion/pull/133 merged into project repo at 457fba9c079883f6e4f518693da0f1a4e4dddb0e