e8855a5af3
* templates README and block-template-controller README * Add execution scenario to block template controller readme * Amend return value to block template controller readme * Add source file link to block template controller docs * LegacyTemplate.php overview * Legacy Template JavaScript block README * Update requirements of templates feature * Doc updates based on feedback, and change Legacy Template references to Classic Template in anticipation of naming convention updates * Update classic-template.md README * Reword part of the add_block_templates section * Update assets/js/blocks/legacy-template/README.md Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com> * Update docs/readme.md Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com> * Update docs/templates/README.md Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com> * Update docs/templates/README.md Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com> * Update README for blocktemplatecontroller * Review feedback for Woo FSE technical documentation Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com> |
||
---|---|---|
.. | ||
assets | ||
README.md | ||
constants.ts | ||
editor.scss | ||
index.tsx |
README.md
Classic Template Block
The Classic Template block is a placeholder block for specific WooCommerce block templates which are rendered on the server-side when a block theme is active.
By assigning a template identifier to the attribute prop, the block will render that specific template on the front-end, and a placeholder for said template in the Site Editor.
It's worth noting that the placeholder in the Site Editor is merely an approximate representation of a template's front-end view.
Usage
This block does not have any customizable options available, so any style or customization updates will not be reflected on the placeholder.
Props
attributes
template
:single-product
|archive-product
|taxonomy-product_cat
|taxonomy-product_tag
<!-- wp:woocommerce/legacy-template {"template":"single-product"} /-->