在Component wrapper里加上一行打印语句:
输出效果:
以CostCentersHomeLink为例:Spartacus里搜索不到,因为这是一个CMS Component:
从spartacussampledata addon的cms-responsive-content.impex文件里,找到了CostCentersHomeLink对应的url:
## BannerComponent in Organization Home Page
INSERT_UPDATE BannerComponent;$contentCV[unique=true];uid[unique=true];name;urlLink;&componentRef;
;;BudgetsHomeLink;Budgets Home Link;/organization/budgets;BudgetsHomeLink
;;CostCentersHomeLink;CostCenters Home Link;/organization/cost-centers;CostCentersHomeLink
;;UnitsHomeLink;Units Home Link;/organization/units;UnitsHomeLink
;;UsersHomeLink;Users Home Link;/organization/users;UsersHomeLink
;;UserGroupsHomeLink;UserGroups Home Link;/organization/user-groups;UserGroupsHomeLink
;;PurchaseLimitsHomeLink;PurchaseLimits Home Link;/organization/purchase-limits;PurchaseLimitsHomeLink
更多Jerry的原创文章,尽在:“汪子熙”: