[ 
http://issues.apache.org/jira/browse/OFBIZ-111?page=comments#action_12459256 ] 
            
Eriks Dobelis commented on OFBIZ-111:
-------------------------------------

The patch is exactly what I was thinking about with regards to FTLs. But then 
there are XML, CSS and JS files. E.g. those 2 I mentioned above. Probably there 
are more of this type. Two more:

framework/images/webapp/images/tabstyles.css:

.tabdownleft {
background-image: url(/images/tabs/tab_down_left.gif);
background-color: #B4B0AA;

}

.tabdownright {
background-image: url(/images/tabs/tab_down_right.gif);
background-color: #B4B0AA;
}

.tabupcenter {
font-family: Arial, Helvetica, sans-serif;
background-image: url(/images/tabs/tab_up_fill.gif);
background-color: #D4D0C8;
font-size: 15pt;
text-align: center;
vertical-align: middle;
color: #000000;
}

.tabupleft {
background-image: url(/images/tabs/tab_up_left.gif);
background-color: #D4D0C8;
border-width: 0px;
padding: 0px;
}


This is from framework/images/webapp/images/calendar1.js:
    var obj_calwindow = window.open('/images/' +
        'calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,
        'Calendar', 'width=150,height='+(this.time_comp ? 220 : 235)+
        
',status=no,resizable=yes,top='+my+',left='+mx+',dependent=yes,alwaysRaised=yes'
    );


> Using hardwired /images instead of <@ofbizContentUrl> in .ftl files
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-111
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-111
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: content, ecommerce, manufacturing, order, party, product
>    Affects Versions: SVN trunk
>            Reporter: Eriks Dobelis
>            Priority: Minor
>         Attachments: additionalContentUrl.patch, contentUrl.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to