Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Examples and links added #8594

Merged
merged 4 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/_includes/cache/page-cache-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ We recommend using [Varnish]({{ page.baseurl }}/config-guide/varnish/config-varn

To create an uncacheable page, mark any block on that page as uncacheable in the layout using `cacheable="false"`.

```xml
<block class="Magento\Customer\Block\Form\Edit" name="customer_edit" template="Magento_Customer::form/edit.phtml" cacheable="false">
<container name="form.additional.info" as="form_additional_info"/>
</block>
```

Examples of uncacheable pages include the compare products, cart, [checkout](https://glossary.magento.com/checkout) pages, and so on.

[Example]({{ site.mage2bloburl }}/{{ page.guide_version }}/app/code/Magento/Paypal/view/frontend/layout/paypal_payflow_returnurl.xml){:target="_blank"}
Expand Down
2 changes: 1 addition & 1 deletion src/guides/v2.3/frontend-dev-guide/cache_for_frontdevs.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can clean generated static view files in any of the following ways:
- In the [Magento Admin](https://glossary.magento.com/magento-admin). Go to **System** > **Tools** > **Cache Management** and click **Flush [Static Files](https://glossary.magento.com/static-files) Cache**.

{:.bs-callout-info}
This option is only available in `developer` mode. Refer to the [static view files overview]({{ page.baseurl }}/config-guide/cli/config-cli-subcommands-static-view.html#config-cli-static-overview) for more information.
This option is only available in `developer` mode. Refer to the [static view files overview]({{ page.baseurl }}/config-guide/cli/config-cli-subcommands-static-view.html#config-cli-static-overview) for more information. For more details about the Magento modes, see [Magento Modes]({{ page.baseurl }}/config-guide/cli/config-cli-subcommands-mode.html)

- Manually by clearing the `pub/static` and `var/view_preprocessed` directories and subdirectories _except_ for `pub/static/.htaccess`.

Expand Down
2 changes: 1 addition & 1 deletion src/guides/v2.3/frontend-dev-guide/themes/product-video.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ functional_areas:

## What's in this topic

In Magento 2 on product pages you can add video from external resources (currently, from [YouTube](https://youtube.com) and [Vimeo](https://vimeo.com/)). Video is [added in Admin](http://docs.magento.com/m2/2.1/ee/user_guide/catalog/product-video.html?Highlight=product%20video) when creating or editing a product.
In Magento 2 on product pages you can add video from external resources (currently, from [YouTube](https://youtube.com) and [Vimeo](https://vimeo.com/)). Video is [added in Admin](https://docs.magento.com/user-guide/catalog/product-video.html) when creating or editing a product.
Certain product video options can be set in the `config.xml` configuration file. These settings are not theme-specific.

## Configure product video options
Expand Down
4 changes: 3 additions & 1 deletion src/guides/v2.3/frontend-dev-guide/themes/theme-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The high-level steps required to add a new theme in the Magento system are the f

1. Create a directory for the theme under `app/design/frontend/<your_vendor_name>/<your_theme_name>`.
1. Add a declaration file `theme.xml` and optionally create `etc` directory and create a file named `view.xml` to the theme directory.
1. Add a `composer.json` file.
1. Add a `composer.json` file (Optional).
1. Add `registration.php`.
1. Create directories for CSS, JavaScript, images, and fonts.
1. Configure your theme in the [Admin](https://glossary.magento.com/admin) panel.
Expand Down Expand Up @@ -70,6 +70,8 @@ After you create a directory for your theme, you must create `theme.xml` contain
</theme>
```

Add the `preview.jpg` file to the `app/design/frontend/<Vendor>/<theme>/media/` directory.

If you do not have a preview image for your theme, remove the `<media>` node:

```xml
Expand Down