@salesforce/b2c-cli 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dev.js +8 -8
- package/bin/run.js +5 -7
- package/content/guidance/b2c/b2c-business-manager-extensions/SKILL.md +361 -0
- package/content/guidance/b2c/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
- package/content/guidance/b2c/b2c-controllers/SKILL.md +301 -0
- package/content/guidance/b2c/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
- package/content/guidance/b2c/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
- package/content/guidance/b2c/b2c-custom-api-development/SKILL.md +281 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/CONTRACT.md +142 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/TESTING.md +118 -0
- package/content/guidance/b2c/b2c-custom-caches/SKILL.md +279 -0
- package/content/guidance/b2c/b2c-custom-job-steps/SKILL.md +520 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
- package/content/guidance/b2c/b2c-custom-objects/SKILL.md +327 -0
- package/content/guidance/b2c/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
- package/content/guidance/b2c/b2c-forms/SKILL.md +242 -0
- package/content/guidance/b2c/b2c-forms/references/FORM-XML.md +409 -0
- package/content/guidance/b2c/b2c-hooks/SKILL.md +500 -0
- package/content/guidance/b2c/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
- package/content/guidance/b2c/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
- package/content/guidance/b2c/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
- package/content/guidance/b2c/b2c-isml/SKILL.md +320 -0
- package/content/guidance/b2c/b2c-isml/references/EXPRESSIONS.md +366 -0
- package/content/guidance/b2c/b2c-isml/references/TAGS.md +443 -0
- package/content/guidance/b2c/b2c-localization/SKILL.md +344 -0
- package/content/guidance/b2c/b2c-localization/references/PATTERNS.md +407 -0
- package/content/guidance/b2c/b2c-logging/SKILL.md +352 -0
- package/content/guidance/b2c/b2c-logging/references/LOG-FILES.md +282 -0
- package/content/guidance/b2c/b2c-metadata/SKILL.md +406 -0
- package/content/guidance/b2c/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
- package/content/guidance/b2c/b2c-metadata/references/XML-EXAMPLES.md +366 -0
- package/content/guidance/b2c/b2c-onboarding/SKILL.md +154 -0
- package/content/guidance/b2c/b2c-ordering/SKILL.md +391 -0
- package/content/guidance/b2c/b2c-page-designer/SKILL.md +410 -0
- package/content/guidance/b2c/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
- package/content/guidance/b2c/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
- package/content/guidance/b2c/b2c-querying-data/SKILL.md +289 -0
- package/content/guidance/b2c/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
- package/content/guidance/b2c/b2c-scapi-admin/SKILL.md +53 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
- package/content/guidance/b2c/b2c-scapi-shopper/SKILL.md +56 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +351 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/SCOPES.md +290 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/SKILL.md +420 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
- package/content/guidance/b2c/b2c-webservices/SKILL.md +318 -0
- package/content/guidance/b2c/b2c-webservices/references/FTP-SERVICES.md +524 -0
- package/content/guidance/b2c/b2c-webservices/references/HTTP-SERVICES.md +578 -0
- package/content/guidance/b2c/b2c-webservices/references/SERVICES-XML.md +351 -0
- package/content/guidance/b2c/b2c-webservices/references/SOAP-SERVICES.md +587 -0
- package/content/guidance/b2c-cli/b2c-am/SKILL.md +277 -0
- package/content/guidance/b2c-cli/b2c-bm-users-roles/SKILL.md +210 -0
- package/content/guidance/b2c-cli/b2c-cap/SKILL.md +131 -0
- package/content/guidance/b2c-cli/b2c-cip/SKILL.md +116 -0
- package/content/guidance/b2c-cli/b2c-cip/references/KNOWN_TABLES.md +105 -0
- package/content/guidance/b2c-cli/b2c-cip/references/SALES_ANALYSIS.md +50 -0
- package/content/guidance/b2c-cli/b2c-cip/references/STARTER_QUERIES.md +147 -0
- package/content/guidance/b2c-cli/b2c-code/SKILL.md +146 -0
- package/content/guidance/b2c-cli/b2c-config/SKILL.md +462 -0
- package/content/guidance/b2c-cli/b2c-content/SKILL.md +176 -0
- package/content/guidance/b2c-cli/b2c-debug/SKILL.md +138 -0
- package/content/guidance/b2c-cli/b2c-docs/SKILL.md +301 -0
- package/content/guidance/b2c-cli/b2c-ecdn/SKILL.md +135 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/ADVANCED.md +97 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/SECURITY.md +75 -0
- package/content/guidance/b2c-cli/b2c-import-set-migrations/SKILL.md +265 -0
- package/content/guidance/b2c-cli/b2c-job/SKILL.md +64 -0
- package/content/guidance/b2c-cli/b2c-job/references/EXPORT.md +121 -0
- package/content/guidance/b2c-cli/b2c-job/references/IMPORT.md +55 -0
- package/content/guidance/b2c-cli/b2c-job/references/RUN-AND-MONITOR.md +119 -0
- package/content/guidance/b2c-cli/b2c-logs/SKILL.md +249 -0
- package/content/guidance/b2c-cli/b2c-metrics/SKILL.md +315 -0
- package/content/guidance/b2c-cli/b2c-mrt/SKILL.md +207 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/BUNDLE-COMMANDS.md +203 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +218 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
- package/content/guidance/b2c-cli/b2c-sandbox/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-scapi-custom/SKILL.md +126 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/SKILL.md +66 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/SKILL.md +57 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/METADATA-XML.md +381 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/WORKFLOWS.md +182 -0
- package/content/guidance/b2c-cli/b2c-sites/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-slas/SKILL.md +182 -0
- package/content/guidance/b2c-cli/b2c-webdav/SKILL.md +186 -0
- package/content/guidance/b2c-ops/b2c-checkout-triage/SKILL.md +68 -0
- package/content/guidance/b2c-ops/b2c-job-health/SKILL.md +75 -0
- package/content/guidance/b2c-ops/b2c-job-health/references/job-logs.md +21 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/SKILL.md +66 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/references/order-evidence.md +87 -0
- package/content/guidance/b2c-ops/b2c-production-triage/SKILL.md +87 -0
- package/content/guidance/b2c-ops/b2c-production-triage/references/escalation.md +57 -0
- package/content/guidance/index.json +1949 -0
- package/content/guidance/storefront-next/sfnext-accessibility/SKILL.md +103 -0
- package/content/guidance/storefront-next/sfnext-accessibility/references/checklist.md +64 -0
- package/content/guidance/storefront-next/sfnext-analytics-consent/SKILL.md +91 -0
- package/content/guidance/storefront-next/sfnext-analytics-consent/references/CUSTOM-ADAPTER.md +49 -0
- package/content/guidance/storefront-next/sfnext-authentication/SKILL.md +127 -0
- package/content/guidance/storefront-next/sfnext-authentication/references/COOKIES.md +39 -0
- package/content/guidance/storefront-next/sfnext-authentication/references/LOGIN-FLOWS.md +59 -0
- package/content/guidance/storefront-next/sfnext-commerce-features/SKILL.md +67 -0
- package/content/guidance/storefront-next/sfnext-commerce-features/references/FEATURE-PREREQUISITES.md +37 -0
- package/content/guidance/storefront-next/sfnext-components/SKILL.md +153 -0
- package/content/guidance/storefront-next/sfnext-components/references/COMPONENT-AUTHORING.md +118 -0
- package/content/guidance/storefront-next/sfnext-components/references/SHAPE-TOKENS.md +51 -0
- package/content/guidance/storefront-next/sfnext-components/references/STORYBOOK.md +54 -0
- package/content/guidance/storefront-next/sfnext-components/references/TOKEN-SYSTEM.md +53 -0
- package/content/guidance/storefront-next/sfnext-components/references/TROUBLESHOOTING.md +19 -0
- package/content/guidance/storefront-next/sfnext-configuration/SKILL.md +163 -0
- package/content/guidance/storefront-next/sfnext-configuration/references/ENV-VARIABLES.md +55 -0
- package/content/guidance/storefront-next/sfnext-configuration/references/MULTI-SITE-URLS.md +137 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/SKILL.md +140 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/ACTIONS.md +53 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/API-CLIENTS.md +34 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/LOADERS.md +73 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/SCAPI-FETCHER.md +39 -0
- package/content/guidance/storefront-next/sfnext-deployment/SKILL.md +127 -0
- package/content/guidance/storefront-next/sfnext-deployment/references/MRT-DEPLOYMENT.md +59 -0
- package/content/guidance/storefront-next/sfnext-extensions/SKILL.md +118 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/ACTION-HOOKS.md +57 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/BASE-AUDIT.md +68 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/CLI-AND-INSTALL.md +58 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/EXTENSION-EXAMPLES.md +79 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/SKILL.md +93 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +86 -0
- package/content/guidance/storefront-next/sfnext-i18n/SKILL.md +152 -0
- package/content/guidance/storefront-next/sfnext-i18n/references/locale-config.md +35 -0
- package/content/guidance/storefront-next/sfnext-overview/SKILL.md +101 -0
- package/content/guidance/storefront-next/sfnext-page-designer/SKILL.md +202 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/BUSINESS-MANAGER.md +46 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/COMPONENT-REGISTRY.md +111 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/DECORATOR-PATTERNS.md +168 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/REVIEW-CHECKLIST.md +83 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/TROUBLESHOOTING.md +35 -0
- package/content/guidance/storefront-next/sfnext-performance/SKILL.md +102 -0
- package/content/guidance/storefront-next/sfnext-performance/references/PERFORMANCE-REVIEW-CHECKLIST.md +85 -0
- package/content/guidance/storefront-next/sfnext-performance/references/SUSPENSE-AND-STREAMING.md +58 -0
- package/content/guidance/storefront-next/sfnext-project-setup/SKILL.md +147 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/PROJECT-STRUCTURE.md +61 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/SCRIPTS.md +47 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/SFNEXT-CLI.md +63 -0
- package/content/guidance/storefront-next/sfnext-quality-gates/SKILL.md +70 -0
- package/content/guidance/storefront-next/sfnext-quality-gates/references/lint-and-budgets.md +39 -0
- package/content/guidance/storefront-next/sfnext-revalidation/SKILL.md +121 -0
- package/content/guidance/storefront-next/sfnext-revalidation/references/POLICIES-AND-TAGS.md +55 -0
- package/content/guidance/storefront-next/sfnext-routing/SKILL.md +123 -0
- package/content/guidance/storefront-next/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
- package/content/guidance/storefront-next/sfnext-routing/references/URLS-AND-SEO-ROUTES.md +22 -0
- package/content/guidance/storefront-next/sfnext-scapi/SKILL.md +126 -0
- package/content/guidance/storefront-next/sfnext-scapi/references/WORKED-EXAMPLE.md +39 -0
- package/content/guidance/storefront-next/sfnext-security/SKILL.md +129 -0
- package/content/guidance/storefront-next/sfnext-security/references/COOKIE-DOMAIN.md +39 -0
- package/content/guidance/storefront-next/sfnext-security/references/TURNSTILE.md +43 -0
- package/content/guidance/storefront-next/sfnext-seo/SKILL.md +95 -0
- package/content/guidance/storefront-next/sfnext-seo/references/MULTI-DOMAIN-BASE-PATH.md +17 -0
- package/content/guidance/storefront-next/sfnext-seo/references/SEO-ROUTES.md +31 -0
- package/content/guidance/storefront-next/sfnext-state-management/SKILL.md +114 -0
- package/content/guidance/storefront-next/sfnext-state-management/references/PATTERNS.md +45 -0
- package/content/guidance/storefront-next/sfnext-testing/SKILL.md +151 -0
- package/content/guidance/storefront-next/sfnext-testing/references/E2E.md +38 -0
- package/content/guidance/storefront-next/sfnext-testing/references/STORYBOOK-PATTERNS.md +97 -0
- package/content/guidance/storefront-next/sfnext-testing/references/UNIT-AND-ROUTE-TESTS.md +60 -0
- package/content/guidance/storefront-next/sfnext-theming/SKILL.md +104 -0
- package/content/guidance/storefront-next/sfnext-theming/references/REBRAND-CHECKLIST.md +29 -0
- package/dist/commands/cap/install.d.ts +1 -0
- package/dist/commands/cap/list.d.ts +1 -0
- package/dist/commands/cap/pull.d.ts +1 -0
- package/dist/commands/cap/tasks.d.ts +1 -0
- package/dist/commands/cap/uninstall.d.ts +1 -0
- package/dist/commands/cip/describe.d.ts +1 -0
- package/dist/commands/cip/query.d.ts +1 -0
- package/dist/commands/cip/report/bot-traffic-share.d.ts +1 -0
- package/dist/commands/cip/report/checkout-funnel-dropoff.d.ts +1 -0
- package/dist/commands/cip/report/controller-error-rate-trend.d.ts +1 -0
- package/dist/commands/cip/report/controller-health-scorecard.d.ts +1 -0
- package/dist/commands/cip/report/customer-registration-trends.d.ts +1 -0
- package/dist/commands/cip/report/discount-depth-breakdown.d.ts +1 -0
- package/dist/commands/cip/report/inventory-stockout-by-location.d.ts +1 -0
- package/dist/commands/cip/report/new-vs-returning-buyer-revenue.d.ts +1 -0
- package/dist/commands/cip/report/ocapi-client-usage.d.ts +1 -0
- package/dist/commands/cip/report/ocapi-requests.d.ts +1 -0
- package/dist/commands/cip/report/payment-method-performance.d.ts +1 -0
- package/dist/commands/cip/report/product-co-purchase-analysis.d.ts +1 -0
- package/dist/commands/cip/report/promotion-discount-analysis.d.ts +1 -0
- package/dist/commands/cip/report/promotion-roi-leaderboard.d.ts +1 -0
- package/dist/commands/cip/report/recommender-effectiveness.d.ts +1 -0
- package/dist/commands/cip/report/remote-include-performance.d.ts +1 -0
- package/dist/commands/cip/report/revenue-by-channel.d.ts +1 -0
- package/dist/commands/cip/report/sales-analytics.d.ts +1 -0
- package/dist/commands/cip/report/sales-summary.d.ts +1 -0
- package/dist/commands/cip/report/scapi-cache-hit-ratio.d.ts +1 -0
- package/dist/commands/cip/report/scapi-error-rate-by-status.d.ts +1 -0
- package/dist/commands/cip/report/scapi-latency-distribution.d.ts +1 -0
- package/dist/commands/cip/report/scapi-traffic-latency.d.ts +1 -0
- package/dist/commands/cip/report/search-query-performance.d.ts +1 -0
- package/dist/commands/cip/report/top-referrers.d.ts +1 -0
- package/dist/commands/cip/report/top-selling-products.d.ts +1 -0
- package/dist/commands/cip/report/zero-result-searches.d.ts +1 -0
- package/dist/commands/cip/tables.d.ts +1 -0
- package/dist/commands/code/activate.d.ts +1 -0
- package/dist/commands/code/delete.d.ts +1 -0
- package/dist/commands/code/deploy.d.ts +1 -0
- package/dist/commands/code/download.d.ts +1 -0
- package/dist/commands/code/watch.d.ts +1 -0
- package/dist/commands/commands/search.d.ts +35 -0
- package/dist/commands/commands/search.js +85 -0
- package/dist/commands/commands/search.js.map +1 -0
- package/dist/commands/content/export.d.ts +1 -0
- package/dist/commands/content/list.d.ts +1 -0
- package/dist/commands/content/validate.d.ts +1 -0
- package/dist/commands/debug/cli.d.ts +1 -0
- package/dist/commands/debug/index.d.ts +1 -0
- package/dist/commands/docs/cache.d.ts +1 -0
- package/dist/commands/docs/download.d.ts +1 -0
- package/dist/commands/docs/read.d.ts +1 -0
- package/dist/commands/docs/schema.d.ts +1 -0
- package/dist/commands/docs/search.d.ts +1 -0
- package/dist/commands/docs/skill.d.ts +41 -0
- package/dist/commands/docs/skill.js +183 -0
- package/dist/commands/docs/skill.js.map +1 -0
- package/dist/commands/ecdn/cache/purge.d.ts +1 -0
- package/dist/commands/ecdn/certificates/add.d.ts +1 -0
- package/dist/commands/ecdn/certificates/delete.d.ts +1 -0
- package/dist/commands/ecdn/certificates/list.d.ts +1 -0
- package/dist/commands/ecdn/certificates/update.d.ts +1 -0
- package/dist/commands/ecdn/certificates/validate.d.ts +1 -0
- package/dist/commands/ecdn/cipher-suites/get.d.ts +1 -0
- package/dist/commands/ecdn/cipher-suites/update.d.ts +1 -0
- package/dist/commands/ecdn/firewall/create.d.ts +1 -0
- package/dist/commands/ecdn/firewall/delete.d.ts +1 -0
- package/dist/commands/ecdn/firewall/get.d.ts +1 -0
- package/dist/commands/ecdn/firewall/list.d.ts +1 -0
- package/dist/commands/ecdn/firewall/reorder.d.ts +1 -0
- package/dist/commands/ecdn/firewall/update.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/create.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/delete.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/get.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/list.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/update.d.ts +1 -0
- package/dist/commands/ecdn/logpush/ownership.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/create.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/delete.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/get.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/rules/delete.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/rules/update.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/update.d.ts +1 -0
- package/dist/commands/ecdn/mtls/create.d.ts +1 -0
- package/dist/commands/ecdn/mtls/delete.d.ts +1 -0
- package/dist/commands/ecdn/mtls/get.d.ts +1 -0
- package/dist/commands/ecdn/mtls/issue.d.ts +1 -0
- package/dist/commands/ecdn/mtls/list.d.ts +1 -0
- package/dist/commands/ecdn/mtls/setup.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/delete.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/get.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/set.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/create.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/delete.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/list.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/create.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/delete.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/get.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/list.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/update.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/scripts/get.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/scripts/list.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/create.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/delete.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/get.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/list.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/update.d.ts +1 -0
- package/dist/commands/ecdn/security/get.d.ts +1 -0
- package/dist/commands/ecdn/security/update.d.ts +1 -0
- package/dist/commands/ecdn/speed/get.d.ts +1 -0
- package/dist/commands/ecdn/speed/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/groups/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/groups/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/managed-rules/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/managed-rules/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/migrate.d.ts +1 -0
- package/dist/commands/ecdn/waf/owasp/get.d.ts +1 -0
- package/dist/commands/ecdn/waf/owasp/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/get.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/rulesets/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/rulesets/update.d.ts +1 -0
- package/dist/commands/ecdn/zones/create.d.ts +1 -0
- package/dist/commands/ecdn/zones/list.d.ts +1 -0
- package/dist/commands/job/execution/delete.d.ts +1 -0
- package/dist/commands/job/export.d.ts +1 -0
- package/dist/commands/job/import-set.d.ts +1 -0
- package/dist/commands/job/import.d.ts +1 -0
- package/dist/commands/job/log.d.ts +1 -0
- package/dist/commands/job/run.d.ts +1 -0
- package/dist/commands/job/search.d.ts +1 -0
- package/dist/commands/job/wait.d.ts +1 -0
- package/dist/commands/logs/get.d.ts +1 -0
- package/dist/commands/logs/list.d.ts +1 -0
- package/dist/commands/logs/tail.d.ts +1 -0
- package/dist/commands/metrics/controller.d.ts +1 -0
- package/dist/commands/metrics/ecdn.d.ts +1 -0
- package/dist/commands/metrics/mrt.d.ts +1 -0
- package/dist/commands/metrics/ocapi.d.ts +1 -0
- package/dist/commands/metrics/overall.d.ts +1 -0
- package/dist/commands/metrics/sales.d.ts +1 -0
- package/dist/commands/metrics/scapi-hooks.d.ts +1 -0
- package/dist/commands/metrics/scapi.d.ts +1 -0
- package/dist/commands/metrics/third-party.d.ts +1 -0
- package/dist/commands/mrt/bundle/delete.d.ts +1 -0
- package/dist/commands/mrt/bundle/deploy.d.ts +1 -0
- package/dist/commands/mrt/bundle/download.d.ts +1 -0
- package/dist/commands/mrt/bundle/history.d.ts +1 -0
- package/dist/commands/mrt/bundle/list.d.ts +1 -0
- package/dist/commands/mrt/bundle/save.d.ts +1 -0
- package/dist/commands/mrt/bundle/upload-v2.d.ts +1 -0
- package/dist/commands/mrt/env/access-control/list.d.ts +1 -0
- package/dist/commands/mrt/env/b2c.d.ts +1 -0
- package/dist/commands/mrt/env/clone.d.ts +1 -0
- package/dist/commands/mrt/env/create.d.ts +1 -0
- package/dist/commands/mrt/env/delete.d.ts +1 -0
- package/dist/commands/mrt/env/get.d.ts +1 -0
- package/dist/commands/mrt/env/invalidate.d.ts +1 -0
- package/dist/commands/mrt/env/list.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/clone.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/create.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/delete.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/list.d.ts +1 -0
- package/dist/commands/mrt/env/update.d.ts +1 -0
- package/dist/commands/mrt/env/var/delete.d.ts +1 -0
- package/dist/commands/mrt/env/var/list.d.ts +1 -0
- package/dist/commands/mrt/env/var/push.d.ts +1 -0
- package/dist/commands/mrt/env/var/set.d.ts +1 -0
- package/dist/commands/mrt/org/b2c.d.ts +1 -0
- package/dist/commands/mrt/org/cert/create.d.ts +1 -0
- package/dist/commands/mrt/org/cert/delete.d.ts +1 -0
- package/dist/commands/mrt/org/cert/get.d.ts +1 -0
- package/dist/commands/mrt/org/cert/list.d.ts +1 -0
- package/dist/commands/mrt/org/cert/restart-validation.d.ts +1 -0
- package/dist/commands/mrt/org/list.d.ts +1 -0
- package/dist/commands/mrt/org/member/add.d.ts +1 -0
- package/dist/commands/mrt/org/member/get.d.ts +1 -0
- package/dist/commands/mrt/org/member/list.d.ts +1 -0
- package/dist/commands/mrt/org/member/remove.d.ts +1 -0
- package/dist/commands/mrt/org/member/update.d.ts +1 -0
- package/dist/commands/mrt/project/create.d.ts +1 -0
- package/dist/commands/mrt/project/delete.d.ts +1 -0
- package/dist/commands/mrt/project/get.d.ts +1 -0
- package/dist/commands/mrt/project/list.d.ts +1 -0
- package/dist/commands/mrt/project/member/add.d.ts +1 -0
- package/dist/commands/mrt/project/member/get.d.ts +1 -0
- package/dist/commands/mrt/project/member/list.d.ts +1 -0
- package/dist/commands/mrt/project/member/remove.d.ts +1 -0
- package/dist/commands/mrt/project/member/update.d.ts +1 -0
- package/dist/commands/mrt/project/notification/delete.d.ts +1 -0
- package/dist/commands/mrt/project/notification/get.d.ts +1 -0
- package/dist/commands/mrt/project/update.d.ts +1 -0
- package/dist/commands/mrt/save-credentials.d.ts +1 -0
- package/dist/commands/mrt/tail-logs.d.ts +1 -0
- package/dist/commands/mrt/user/api-key.d.ts +1 -0
- package/dist/commands/mrt/user/email-prefs.d.ts +1 -0
- package/dist/commands/mrt/user/profile.d.ts +1 -0
- package/dist/commands/scaffold/init.js +2 -1
- package/dist/commands/scaffold/init.js.map +1 -1
- package/dist/commands/scapi/custom/status.d.ts +1 -0
- package/dist/commands/scapi/schemas/get.d.ts +1 -0
- package/dist/commands/scapi/schemas/list.d.ts +1 -0
- package/dist/commands/setup/ide/tsserver-plugin.d.ts +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +1 -0
- package/dist/commands/setup/index.js +4 -3
- package/dist/commands/setup/index.js.map +1 -1
- package/dist/commands/setup/inspect.d.ts +1 -0
- package/dist/commands/setup/inspect.js +17 -2
- package/dist/commands/setup/inspect.js.map +1 -1
- package/dist/commands/setup/instance/create.d.ts +1 -0
- package/dist/commands/setup/instance/list.d.ts +1 -0
- package/dist/commands/setup/instance/remove.d.ts +1 -0
- package/dist/commands/setup/instance/set-active.d.ts +1 -0
- package/dist/commands/setup/openshell.d.ts +1 -0
- package/dist/commands/setup/skills.d.ts +1 -0
- package/dist/commands/slas/client/create.d.ts +1 -0
- package/dist/commands/slas/client/delete.d.ts +1 -0
- package/dist/commands/slas/client/get.d.ts +1 -0
- package/dist/commands/slas/client/list.d.ts +1 -0
- package/dist/commands/slas/client/open.d.ts +1 -0
- package/dist/commands/slas/client/update.d.ts +1 -0
- package/dist/commands/slas/token.d.ts +1 -0
- package/dist/commands/slas/token.js +2 -1
- package/dist/commands/slas/token.js.map +1 -1
- package/dist/commands/webdav/get.d.ts +1 -0
- package/dist/commands/webdav/rm.d.ts +1 -0
- package/dist/help.d.ts +25 -0
- package/dist/help.js +96 -0
- package/dist/help.js.map +1 -0
- package/dist/lib/scaffold/generate-helper.js +3 -2
- package/dist/lib/scaffold/generate-helper.js.map +1 -1
- package/dist/lib/skills.d.ts +19 -0
- package/dist/lib/skills.js +75 -0
- package/dist/lib/skills.js.map +1 -0
- package/dist/utils/cip/command.d.ts +1 -0
- package/dist/utils/ecdn/zone-command.d.ts +1 -0
- package/dist/utils/slas/client.d.ts +1 -0
- package/oclif.manifest.json +21814 -18473
- package/package.json +11 -5
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
# ISML Tags Reference
|
|
2
|
+
|
|
3
|
+
Comprehensive reference for ISML tags.
|
|
4
|
+
|
|
5
|
+
## Control Flow Tags
|
|
6
|
+
|
|
7
|
+
### isif / iselseif / iselse
|
|
8
|
+
|
|
9
|
+
Conditional rendering:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<isif condition="${customer.authenticated}">
|
|
13
|
+
Welcome back, ${customer.profile.firstName}!
|
|
14
|
+
<iselseif condition="${session.custom.guestName}">
|
|
15
|
+
Welcome, ${session.custom.guestName}!
|
|
16
|
+
<iselse>
|
|
17
|
+
Welcome, Guest!
|
|
18
|
+
</isif>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### isloop
|
|
22
|
+
|
|
23
|
+
Iterate over collections:
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<isloop items="${productList}" var="product" status="loopstatus" begin="0" end="9" step="1">
|
|
27
|
+
<div class="item-${loopstatus.count}">
|
|
28
|
+
${product.name}
|
|
29
|
+
</div>
|
|
30
|
+
</isloop>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Attributes:**
|
|
34
|
+
- `items` - Collection to iterate (required)
|
|
35
|
+
- `var` - Variable name for current item (required)
|
|
36
|
+
- `status` - Loop status object name (optional)
|
|
37
|
+
- `begin` - Start index (optional, default 0)
|
|
38
|
+
- `end` - End index (optional)
|
|
39
|
+
- `step` - Increment (optional, default 1)
|
|
40
|
+
|
|
41
|
+
**Status properties:**
|
|
42
|
+
- `count` - 1-based iteration count
|
|
43
|
+
- `index` - 0-based index
|
|
44
|
+
- `first` - true on first iteration
|
|
45
|
+
- `last` - true on last iteration
|
|
46
|
+
- `odd` - true on odd iterations (1, 3, 5...)
|
|
47
|
+
- `even` - true on even iterations (2, 4, 6...)
|
|
48
|
+
|
|
49
|
+
### isbreak / iscontinue / isnext
|
|
50
|
+
|
|
51
|
+
Loop control:
|
|
52
|
+
|
|
53
|
+
```html
|
|
54
|
+
<isloop items="${products}" var="product">
|
|
55
|
+
<isif condition="${product.ID == 'STOP'}">
|
|
56
|
+
<isbreak/> <!-- Exit loop -->
|
|
57
|
+
</isif>
|
|
58
|
+
<isif condition="${!product.online}">
|
|
59
|
+
<iscontinue/> <!-- Skip to next iteration -->
|
|
60
|
+
</isif>
|
|
61
|
+
${product.name}
|
|
62
|
+
</isloop>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Variable Tags
|
|
66
|
+
|
|
67
|
+
### isset
|
|
68
|
+
|
|
69
|
+
Set a variable (allowed anywhere in template):
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<isset name="total" value="${price * quantity}" scope="page"/>
|
|
73
|
+
<isset name="cartId" value="${basket.UUID}" scope="session"/>
|
|
74
|
+
<isset name="viewMode" value="grid" scope="request"/>
|
|
75
|
+
<isset name="title" value="My Page" scope="pdict"/>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Attributes (all required):**
|
|
79
|
+
- `name` - Variable name
|
|
80
|
+
- `value` - Value to assign
|
|
81
|
+
- `scope` - Variable scope (required)
|
|
82
|
+
|
|
83
|
+
**Scopes:**
|
|
84
|
+
- `page` - Current template only
|
|
85
|
+
- `request` - Current request (across includes)
|
|
86
|
+
- `session` - User session (persistent)
|
|
87
|
+
- `pdict` - Pipeline dictionary (for decorator pattern)
|
|
88
|
+
|
|
89
|
+
### isremove
|
|
90
|
+
|
|
91
|
+
Remove a variable:
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<isremove name="tempData" scope="page"/>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Output Tags
|
|
98
|
+
|
|
99
|
+
### isprint
|
|
100
|
+
|
|
101
|
+
Output values with encoding and formatting.
|
|
102
|
+
|
|
103
|
+
**Allowed location:** `<body>` only.
|
|
104
|
+
|
|
105
|
+
```html
|
|
106
|
+
<!-- Basic (HTML encoded) -->
|
|
107
|
+
<isprint value="${product.name}"/>
|
|
108
|
+
|
|
109
|
+
<!-- No encoding (dangerous - only for trusted HTML) -->
|
|
110
|
+
<isprint value="${richTextContent}" encoding="off"/>
|
|
111
|
+
|
|
112
|
+
<!-- Number formatting -->
|
|
113
|
+
<isprint value="${price}" style="CURRENCY"/>
|
|
114
|
+
<isprint value="${quantity}" style="INTEGER"/>
|
|
115
|
+
<isprint value="${rate}" style="DECIMAL"/>
|
|
116
|
+
|
|
117
|
+
<!-- Date formatting -->
|
|
118
|
+
<isprint value="${order.creationDate}" style="DATE_SHORT"/>
|
|
119
|
+
<isprint value="${order.creationDate}" style="DATE_LONG"/>
|
|
120
|
+
<isprint value="${order.creationDate}" style="DATE_TIME"/>
|
|
121
|
+
|
|
122
|
+
<!-- Custom formatter -->
|
|
123
|
+
<isprint value="${date}" formatter="yyyy-MM-dd"/>
|
|
124
|
+
|
|
125
|
+
<!-- Padding -->
|
|
126
|
+
<isprint value="${orderNumber}" padding="10"/>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Encoding options:** `on` (default), `off`, `htmlcontent`, `htmlsinglequote`, `htmldoublequote`, `xml`, `jshtml`, `jsattribute`, `jsblock`, `uricomponent`, `uristrict`
|
|
130
|
+
|
|
131
|
+
## Template Composition
|
|
132
|
+
|
|
133
|
+
### isinclude
|
|
134
|
+
|
|
135
|
+
Include another template:
|
|
136
|
+
|
|
137
|
+
```html
|
|
138
|
+
<!-- Local include (from cartridge) -->
|
|
139
|
+
<isinclude template="components/header"/>
|
|
140
|
+
|
|
141
|
+
<!-- URL include (controller output) -->
|
|
142
|
+
<isinclude url="${URLUtils.url('Header-Include')}"/>
|
|
143
|
+
|
|
144
|
+
<!-- Disable Storefront Toolkit markers for this include -->
|
|
145
|
+
<isinclude sf-toolkit="off" template="checkout/billing"/>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Max include depth:** 20 for local, 10 for URL includes.
|
|
149
|
+
|
|
150
|
+
**Disabling Storefront Toolkit markers (`sf-toolkit`):**
|
|
151
|
+
|
|
152
|
+
When the Storefront Toolkit is enabled, the content of every `<isinclude>` is
|
|
153
|
+
wrapped in a `dwMarker` comment tag (`sf-toolkit="on"` is the default). This
|
|
154
|
+
marker can push Internet Explorer into Quirks mode. Set `sf-toolkit="off"` to
|
|
155
|
+
suppress the `dwMarker` tag for that include:
|
|
156
|
+
|
|
157
|
+
```html
|
|
158
|
+
<isinclude template="test/customassets" sf-toolkit="off"/>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
- Only supported on **local (template) includes** — remote (`url=`) includes do
|
|
162
|
+
not support the attribute.
|
|
163
|
+
- Not applied recursively — the marker is suppressed for that tag only, not for
|
|
164
|
+
any child `<isinclude>` inside the included template.
|
|
165
|
+
|
|
166
|
+
See the [isinclude Element docs](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-isinclude.html).
|
|
167
|
+
|
|
168
|
+
### isdecorate / isreplace
|
|
169
|
+
|
|
170
|
+
Decorator pattern for layouts:
|
|
171
|
+
|
|
172
|
+
**Decorator template (common/layout/page.isml):**
|
|
173
|
+
```html
|
|
174
|
+
<!DOCTYPE html>
|
|
175
|
+
<html>
|
|
176
|
+
<head><title>${pdict.title}</title></head>
|
|
177
|
+
<body>
|
|
178
|
+
<isinclude template="components/header"/>
|
|
179
|
+
<main>
|
|
180
|
+
<isreplace/>
|
|
181
|
+
</main>
|
|
182
|
+
<isinclude template="components/footer"/>
|
|
183
|
+
</body>
|
|
184
|
+
</html>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Page template:**
|
|
188
|
+
```html
|
|
189
|
+
<isdecorate template="common/layout/page">
|
|
190
|
+
<isset name="title" value="My Page" scope="pdict"/>
|
|
191
|
+
<h1>Page Content</h1>
|
|
192
|
+
</isdecorate>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### ismodule
|
|
196
|
+
|
|
197
|
+
Define custom tags:
|
|
198
|
+
|
|
199
|
+
```html
|
|
200
|
+
<!-- In util/modules.isml -->
|
|
201
|
+
<ismodule template="components/badge"
|
|
202
|
+
name="badge"
|
|
203
|
+
attribute="text"
|
|
204
|
+
attribute="type"/>
|
|
205
|
+
|
|
206
|
+
<!-- Component template (components/badge.isml) -->
|
|
207
|
+
<span class="badge badge-${pdict.type}">${pdict.text}</span>
|
|
208
|
+
|
|
209
|
+
<!-- Usage -->
|
|
210
|
+
<isinclude template="util/modules"/>
|
|
211
|
+
<isbadge text="Sale" type="danger"/>
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Content Tags
|
|
215
|
+
|
|
216
|
+
### iscontent
|
|
217
|
+
|
|
218
|
+
Set response content type.
|
|
219
|
+
|
|
220
|
+
**Allowed location:** Must be before DOCTYPE declaration (first in template).
|
|
221
|
+
|
|
222
|
+
```html
|
|
223
|
+
<!-- HTML (default) -->
|
|
224
|
+
<iscontent type="text/html" charset="UTF-8"/>
|
|
225
|
+
|
|
226
|
+
<!-- JSON -->
|
|
227
|
+
<iscontent type="application/json" charset="UTF-8"/>
|
|
228
|
+
|
|
229
|
+
<!-- XML -->
|
|
230
|
+
<iscontent type="application/xml" charset="UTF-8"/>
|
|
231
|
+
|
|
232
|
+
<!-- Plain text -->
|
|
233
|
+
<iscontent type="text/plain" charset="UTF-8"/>
|
|
234
|
+
|
|
235
|
+
<!-- Compact mode (strips whitespace) -->
|
|
236
|
+
<iscontent type="text/html" charset="UTF-8" compact="true"/>
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
**Must be first in template.**
|
|
240
|
+
|
|
241
|
+
### iscache
|
|
242
|
+
|
|
243
|
+
Page caching:
|
|
244
|
+
|
|
245
|
+
```html
|
|
246
|
+
<!-- Relative cache (from request time) -->
|
|
247
|
+
<iscache type="relative" hour="24"/>
|
|
248
|
+
<iscache type="relative" minute="30"/>
|
|
249
|
+
|
|
250
|
+
<!-- Daily cache (at specific time) -->
|
|
251
|
+
<iscache type="daily" hour="0" minute="0"/>
|
|
252
|
+
|
|
253
|
+
<!-- Vary by factors -->
|
|
254
|
+
<iscache type="relative" hour="1" varyby="price_promotion"/>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**varyby options:** `price_promotion`, `request_path`, custom
|
|
258
|
+
|
|
259
|
+
### iscomment
|
|
260
|
+
|
|
261
|
+
Template comments (not in output):
|
|
262
|
+
|
|
263
|
+
```html
|
|
264
|
+
<iscomment>
|
|
265
|
+
This will not appear in rendered HTML.
|
|
266
|
+
Use for developer documentation.
|
|
267
|
+
</iscomment>
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### iscomponent
|
|
271
|
+
|
|
272
|
+
Include pipeline/controller output:
|
|
273
|
+
|
|
274
|
+
```html
|
|
275
|
+
<iscomponent pipeline="Product-Price" pid="${product.ID}"/>
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Navigation Tags
|
|
279
|
+
|
|
280
|
+
### isredirect
|
|
281
|
+
|
|
282
|
+
Redirect to URL.
|
|
283
|
+
|
|
284
|
+
**Allowed location:** Must be before DOCTYPE declaration.
|
|
285
|
+
|
|
286
|
+
```html
|
|
287
|
+
<!-- Temporary redirect (302) -->
|
|
288
|
+
<isredirect location="${URLUtils.url('Home-Show')}"/>
|
|
289
|
+
|
|
290
|
+
<!-- Permanent redirect (301) -->
|
|
291
|
+
<isredirect location="${URLUtils.url('NewPage-Show')}" permanent="true"/>
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
**Must be before any HTML output.**
|
|
295
|
+
|
|
296
|
+
### isstatus
|
|
297
|
+
|
|
298
|
+
Set HTTP status code:
|
|
299
|
+
|
|
300
|
+
```html
|
|
301
|
+
<isstatus value="404"/>
|
|
302
|
+
<isstatus value="500"/>
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## Form Tags
|
|
306
|
+
|
|
307
|
+
### isselect
|
|
308
|
+
|
|
309
|
+
Enhanced HTML select element (allowed anywhere in template):
|
|
310
|
+
|
|
311
|
+
```html
|
|
312
|
+
<isselect
|
|
313
|
+
name="country"
|
|
314
|
+
iterator="${countries}"
|
|
315
|
+
description="Select Country"
|
|
316
|
+
value="${countryCode}"
|
|
317
|
+
condition="${true}"
|
|
318
|
+
encoding="on"/>
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
**Attributes:**
|
|
322
|
+
- `name` - Name attribute for form submission (required)
|
|
323
|
+
- `iterator` - Collection to iterate for options (required)
|
|
324
|
+
- `description` - Display text for default/empty option (required)
|
|
325
|
+
- `value` - Property to use as option value (required)
|
|
326
|
+
- `condition` - Expression to mark option as selected (optional)
|
|
327
|
+
- `encoding` - HTML encoding on/off (optional, default: on)
|
|
328
|
+
|
|
329
|
+
## Script Tag
|
|
330
|
+
|
|
331
|
+
### isscript
|
|
332
|
+
|
|
333
|
+
Embed server-side JavaScript:
|
|
334
|
+
|
|
335
|
+
```html
|
|
336
|
+
<isscript>
|
|
337
|
+
var ProductMgr = require('dw/catalog/ProductMgr');
|
|
338
|
+
var product = ProductMgr.getProduct('ABC123');
|
|
339
|
+
var available = product.availabilityModel.inStock;
|
|
340
|
+
</isscript>
|
|
341
|
+
|
|
342
|
+
<isif condition="${available}">
|
|
343
|
+
In Stock
|
|
344
|
+
</isif>
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**Best Practice:** Minimize inline scripts. Use controllers for complex logic.
|
|
348
|
+
|
|
349
|
+
## Slot Tag
|
|
350
|
+
|
|
351
|
+
### isslot
|
|
352
|
+
|
|
353
|
+
Content slot:
|
|
354
|
+
|
|
355
|
+
```html
|
|
356
|
+
<!-- Global slot -->
|
|
357
|
+
<isslot id="header-banner" context="global" description="Header Banner"/>
|
|
358
|
+
|
|
359
|
+
<!-- Category slot -->
|
|
360
|
+
<isslot id="category-banner" context="category" context-object="${category}"/>
|
|
361
|
+
|
|
362
|
+
<!-- Folder slot -->
|
|
363
|
+
<isslot id="folder-promo" context="folder" context-object="${folder}"/>
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
## Cookie Tag
|
|
367
|
+
|
|
368
|
+
### iscookie
|
|
369
|
+
|
|
370
|
+
Set HTTP cookie:
|
|
371
|
+
|
|
372
|
+
```html
|
|
373
|
+
<iscookie
|
|
374
|
+
name="preference"
|
|
375
|
+
value="dark-mode"
|
|
376
|
+
path="/"
|
|
377
|
+
domain=".example.com"
|
|
378
|
+
maxAge="31536000"
|
|
379
|
+
secure="true"/>
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
## Active Data Tags
|
|
383
|
+
|
|
384
|
+
### isobject
|
|
385
|
+
|
|
386
|
+
Track page impressions/views. Must pass an object of type ProductHit.
|
|
387
|
+
|
|
388
|
+
```html
|
|
389
|
+
<isobject object="${productHit}" view="detail">
|
|
390
|
+
<!-- Product content -->
|
|
391
|
+
</isobject>
|
|
392
|
+
|
|
393
|
+
<isobject object="${productHit}" view="searchhit">
|
|
394
|
+
<!-- Search result item -->
|
|
395
|
+
</isobject>
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
**Attributes:**
|
|
399
|
+
- `object` - ProductHit object (required)
|
|
400
|
+
- `view` - View type (required): `none`, `searchhit`, `recommendation`, `setproduct`, `detail`
|
|
401
|
+
|
|
402
|
+
### isactivedatahead
|
|
403
|
+
|
|
404
|
+
**Allowed location:** `<head>` only.
|
|
405
|
+
|
|
406
|
+
```html
|
|
407
|
+
<isactivedatahead/>
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
Enables active data collection for pages with a `<head>` tag.
|
|
411
|
+
|
|
412
|
+
### isactivedatacontext
|
|
413
|
+
|
|
414
|
+
**Allowed locations:** `<head>`, `<body>`, anywhere script tags are valid.
|
|
415
|
+
|
|
416
|
+
```html
|
|
417
|
+
<isactivedatacontext category="${category}"/>
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
Collects category context from a page. Should only be in one template used to render a page.
|
|
421
|
+
|
|
422
|
+
### isanalyticsoff
|
|
423
|
+
|
|
424
|
+
Disable analytics for single pages.
|
|
425
|
+
|
|
426
|
+
**Allowed locations:** `<head>`, `<body>`, anywhere script tags are valid.
|
|
427
|
+
|
|
428
|
+
```html
|
|
429
|
+
<isanalyticsoff/>
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
## Special Tags
|
|
433
|
+
|
|
434
|
+
### isprint with style options
|
|
435
|
+
|
|
436
|
+
| Style | Description | Example Output |
|
|
437
|
+
|-------|-------------|----------------|
|
|
438
|
+
| `CURRENCY` | Currency format | $1,234.56 |
|
|
439
|
+
| `INTEGER` | Integer only | 1,235 |
|
|
440
|
+
| `DECIMAL` | Decimal format | 1,234.56 |
|
|
441
|
+
| `DATE_SHORT` | Short date | 1/15/24 |
|
|
442
|
+
| `DATE_LONG` | Long date | January 15, 2024 |
|
|
443
|
+
| `DATE_TIME` | Date and time | 1/15/24 3:30 PM |
|