Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-111

Using hardwired /images instead of <@ofbizContentUrl> in .ftl files

    XMLWordPrintableJSON

Details

    Description

      There are some template and script files which use hardwired links, e.g. /images. This means that ofbizContentUrl is not taken into account and may not work if some components (especially images) are mounted at different locations.

      For ftl files <@ofbizContentUrl> should be used. I have no good idea what to do with javascript and css files.

      This is a list of files created by grep (grepping "\"/images" ) from application directory, which probably should be fixed.

      content/webapp/content/images/composite.js
      ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
      ecommerce/webapp/ecommerce/cart/showcart.ftl
      ecommerce/webapp/ecommerce/includes/header.ftl
      ecommerce/webapp/ecommerce/order/splitship.ftl
      manufacturing/webapp/manufacturing/routing/EditRoutingTaskAssoc.ftl
      manufacturing/webapp/manufacturing/jobshopmgt/CreateProductionRun.ftl
      manufacturing/webapp/manufacturing/bom/EditProductBom.ftl
      order/webapp/ordermgr/entry/cart/showcartitems.ftl
      order/webapp/ordermgr/entry/cart/showcart.ftl
      order/webapp/ordermgr/entry/catalog/productsummary.ftl
      order/webapp/ordermgr/entry/catalog/productdetail.ftl
      order/webapp/ordermgr/entry/catalog/configproductdetail.ftl
      order/webapp/ordermgr/order/appendorderitem.ftl
      party/webapp/partymgr/party/EditPartyRelationships.ftl
      product/webapp/facility/returns/receiveReturn.ftl
      product/webapp/facility/facility/FindFacilityLocation.ftl
      product/webapp/facility/facility/EditFacilityGroups.ftl
      product/webapp/facility/shipment/QuickShipOrder.ftl
      product/webapp/facility/shipment/FindShipment.ftl
      product/webapp/facility/group/EditFacilityGroupMembers.ftl
      product/webapp/facility/group/EditFacilityGroupRollup.ftl
      product/webapp/facility/inventory/receiveInventory.ftl
      product/webapp/facility/inventory/TransferInventoryItem.ftl
      product/webapp/facility/inventory/EditInventoryItem.ftl
      product/webapp/catalog/product/EditProductQuickAdmin.ftl
      product/webapp/catalog/product/ApplyFeaturesFromCategory.ftl
      product/webapp/catalog/product/EditProductAssoc.ftl
      product/webapp/catalog/product/EditProductFeatures.ftl
      product/webapp/catalog/product/EditProductFacilityLocations.ftl
      product/webapp/catalog/find/keywordsearch.ftl
      product/webapp/catalog/promo/EditProductPromoStores.ftl
      product/webapp/catalog/store/EditProductStorePromos.ftl
      product/webapp/catalog/store/EditProductStoreSurveys.ftl
      product/webapp/catalog/category/EditCategoryProducts.ftl
      product/webapp/catalog/category/EditCategoryParties.ftl
      product/webapp/catalog/category/EditCategoryRollup.ftl
      product/webapp/catalog/category/EditCategoryProdCatalogs.ftl
      product/webapp/catalog/category/EditCategoryFeatureCats.ftl

      Attachments

        1. contentUrl.patch
          73 kB
          Chris Howe
        2. additionalContentUrl.patch
          3 kB
          Chris Howe

        Activity

          People

            jleroux Jacques Le Roux
            phaethon Eriks Dobelis
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: