我们正在尝试覆盖“找不到URL”页面的默认模板。模板名称为URLError.isml,位于sld_system_app盒式磁带中。当我们尝试通过“覆盖现有”向导覆盖模板时,即使sld_system_app位于墨盒依赖关系层次结构中,也找不到模板:
同时,通常可以覆盖同一盒带(sld_system_app)中的任何管道。例如,我们可以覆盖使用URLError.isml的URLMapping.pipeline:
位于sld_system_app盒式磁带中的任何ISML模板都是相同的。没有模板可以被覆盖。
是否有某种方法可以覆盖默认的ISML,或者我们真的需要覆盖管道吗?
更新#1:
在某些工作室重新启动并清理目标并刷新gradle依赖项之后,我们设法使向导正常工作。但是,通过向导创建模板,在服务器上部署文件并重新启动服务器后,替代仍然无法正常工作。我们仍在获取系统页面。
这是我们自定义墨盒中的替代模板:
这是cartallist.properties的内容:
cartridges=\
libs \
runtime \
3rd_oracle \
pf_cartridge \
pf_objectgraph \
pf_objectgraph_guice \
servletengine \
component \
file \
emf \
pf_extension \
pf_property \
jmx \
app \
messaging \
pf_kafka \
cache \
pipeline \
isml \
orm \
configuration \
businessobject \
core \
orm_oracle \
orm_mssql \
wsrp \
rest \
bc_authorization \
bc_repository \
bc_spreadsheet \
bc_foundation \
bc_i18n \
bc_application \
bc_auditing \
bc_region \
bc_service \
bc_mail \
bc_ruleengine \
report \
bc_auditing_orm \
bc_organization \
bc_approval \
bc_validation \
bc_address \
bc_address_orm \
bc_user \
bc_user_orm \
bc_captcha \
bc_pdf \
bc_processchain \
bc_processchain_orm \
ui_web_library \
ac_captcha_recaptcha \
ac_mail \
ac_ruleengine_drools \
ac_pdf_flyingsaucer \
pf_axis2 \
ac_eureka \
bc_transport \
bc_transport_orm \
bc_transport_azure \
dev_swagger \
pf_jrockit \
dev_lilith \
etest \
tool_webtest \
dev_query \
pf_objectgraph_test \
pf_businessobject_test \
pf_core_test \
pf_rest_test \
pf_orm_test \
orm_oracle_test \
orm_mssql_test \
pf_property_test \
pf_messaging_test \
bc_foundation_test \
bc_service_test \
bc_auditing_test \
bc_application_test \
bc_i18n_test \
bc_validation_test \
bc_user_test \
bc_address_test \
bc_approval_test \
ac_ruleengine_drools_test \
bc_processchain_test \
ui_web_library_test \
pf_axis2_test \
bc_handler_chain \
bc_urlrewrite \
bc_image \
xcs \
bc_shipping_data \
bts \
btc \
monitor \
smc \
bc_pricing \
bc_pmc \
bc_pmc_auditing \
bc_pmc_validation \
bc_preview \
bc_preview_orm \
pmc_rest \
bc_search \
bc_mvc \
bc_productbinding \
bc_customer_segment \
bc_customer \
bc_customer_orm \
bc_catalog \
bc_catalog_orm \
bc_product \
bc_product_orm \
bc_product_validation \
bc_rating \
bc_rating_orm \
bc_product_rating \
bc_product_rating_orm \
bc_customer_catalog_filter \
bc_customer_catalog_filter_orm \
bc_wishlist \
bc_wishlist_orm \
bc_addresscheck \
bc_basket \
bc_basket_orm \
bc_basket_service \
bc_order \
bc_order_orm \
bc_order_service \
bc_warranty \
bc_profanitycheck \
bc_requisition \
bc_tendering \
bc_giftpackaging \
bc_shipping \
bc_promotion \
bc_recommendation \
bc_marketing \
bc_marketing_impex \
bc_abtest \
bc_abtest_orm \
bc_payment \
bc_payment_orm \
bc_giftcard \
bc_taxation \
bc_product_pricing \
bc_product_pricing_orm \
bc_orderprocess \
bc_order_impex \
bc_payment_service \
bc_gdpr \
bc_store \
bc_store_orm \
bc_dashboard \
bc_dashboard_orm \
sld_system_app \
as_system \
sld_pmc \
sld_pdf \
sld_preview \
sld_mcm \
sld_ch_b2c_base \
sld_ch_sf_base \
ac_bmecat \
sld_enterprise_app \
sld_ch_base \
sld_ch_partner_plugin \
sld_ch_consumer_plugin \
ac_giftcard_std \
ac_payment_std \
ac_taxation_std \
ac_customer_segment_std \
sld_ch_b2c_image \
app_sf_rest \
app_sf_rest_b2c \
app_sf_rest_smb \
app_sf_rest_recomm \
ac_oci \
ac_cxml \
ac_order_export_xml \
ac_order_submission_service \
ac_order_history_service \
ac_order_status_import_xml \
migration \
sld_ch_consumer_orderimport_es64 \
app_bo_rest_job \
app_bo_catalog \
app_bo_dashboard \
app_bo_gdpr \
as_backoffice \
ac_search_solr \
ac_search_solr_bo \
ac_addresscheck_demo \
ac_payment_demo \
ac_customer_segment_demo \
ac_webhook_inventory \
as_contactcenter \
app_sf_contactcenter_rest \
app_bo_contactcenter_cobrowsing \
ac_gtm \
ac_gtm_google_analytics \
ac_gtm_sf \
app_bo_transport \
dev_handler_chain \
dev_organizationinfo \
dev_bostyleguide \
dev_basketinfo \
dev_apiinfo \
dev_payment \
bc_pmc_test \
bc_handler_chain_test \
bc_xcs_test \
bc_shipping_test \
bc_mvc_test \
bc_product_test \
bc_product_orm_test \
bc_bts_test \
bc_pricing_test \
bc_requisition_test \
bc_marketing_test \
bc_marketing_impex_test \
bc_preview_test \
sld_preview_test \
ac_customer_segment_std_test \
bc_customer_test \
bc_customer_catalog_filter_orm_test \
bc_wishlist_test \
ac_giftcard_std_test \
bc_warranty_test \
bc_promotion_test \
bc_basket_test \
sld_ch_b2c_base_test \
sld_enterprise_app_test \
sld_ch_consumer_plugin_test \
bc_catalog_test \
ac_taxation_std_test \
bc_product_pricing_test \
bc_order_test \
bc_payment_test \
bc_orderprocess_test \
sld_pmc_test \
app_bo_cms_test \
app_bo_dashboard_test \
bc_search_test \
bc_store_test \
bc_image_test \
bc_dashboard_test \
app_bo_test \
app_sf_contactcenter_rest_test \
app_sf_rest_test \
ac_search_solr_test \
bc_urlrewrite_test \
bc_product_rating_orm_test \
ac_order_submission_service_test \
test_app_sf \
test_app_cm \
pmc_unit_testing \
commerce_management_b2c_component \
core_a1 \
app_core_a1 \
bc_a1_orm \
service_a1_esb \
service_a1_siebel \
service_a1_sap \
ac_payment_cccorvus \
app_sf_responsive \
app_sf_responsive_cm \
app_sf_responsive_b2c \
app_sf_responsive_smb \
as_responsive \
app_sf_responsive_gdpr \
app_sf_a1_tomato \
app_sf_a1_tomato_cm \
app_sf_a1_shop \
app_sf_a1_shop_cm \
as_a1 \
app_bo_a1 \
dev_storefront \
app_sf_responsive_test
答案 0 :(得分:1)
应该没有必要覆盖管道。老实说,我不知道为什么您的向导没有显示for (var i = 5; i > 0; i--)
{
Console.WriteLine(string.Join(" ",
Enumerable.Range(1, i)
.Reverse()));
}
模板。在我的ISH .isml
上,一旦将7.9
添加到自定义墨盒的.isml
文件中,覆盖向导就会显示sld_system_app
墨盒中的所有compile group: 'com.intershop.business', name: 'sld_system_app'
文件,然后刷新gradle依赖项。
一个可能的解决方案是手动覆盖build.gradle
文件,看看是否可行。为此,请在自定义墨盒中重新创建文件夹结构URLError.isml
,并在其中手动创建staticfiles/cartridge/templates/default/application
。
答案 1 :(得分:1)
问题是我们试图覆盖未分配给该应用程序的自定义店面墨盒中的intershop.SLDSystem应用程序中的模板。
由于我们没有覆盖该应用程序的任何其他功能,因此我们决定采用其他方法,而不是覆盖模板。
替代解决方案是: