Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b51a1d1

Browse files
authored
Merge branch 'master' into patch-57
2 parents 915fd76 + 24aef96 commit b51a1d1

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

src/_includes/layout/footer-scripts.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
})();
2626
</script>
2727

28-
<script type="text/javascript">_satellite.pageBottom();</script>
29-
3028
{% endif %}
3129

3230
<script type="text/javascript" src="{{ site.baseurl }}/common/js/glossary-link-enhancer.js"></script>

src/cloud/cdn/cloud-fastly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Fastly provides the following services to optimize and secure content delivery o
3535

3636
- **SSL/TLS certificates**–The Fastly service requires an SSL/TLS certificate to serve secure traffic over HTTPS. Magento provides a Domain-validated Let's Encrypt SSL/TLS certificate for each Staging and Production environment. Magento completes domain validation and certificate provisioning during the Fastly set up process. See [TLS and Fastly].
3737

38-
- **Origin cloaking**–Magento can enable Origin Cloaking for all Magento Commerce projects hosted on the Cloud platform. This option hides the IP addresses of your origin servers to protect them from direct attack. When this feature is enabled, all traffic to your Cloud infrastructure must route through the Fastly CDN or another secure channel. Any traffic sent directly to the Origin servers is blocked. If you have traffic that does not require caching, you can customize the Fastly service configuration to allow requests to [bypass the Fastly cache].
38+
- **Origin cloaking**–Magento can enable Origin Cloaking for all Magento Commerce projects hosted on the Cloud platform. This option hides the IP addresses of your origin servers to protect them from direct access. When this feature is enabled, all traffic to your Cloud infrastructure must route through the Fastly CDN or another secure channel. Any traffic sent directly to the Origin servers is blocked. If you have traffic that does not require caching, you can customize the Fastly service configuration to allow requests to [bypass the Fastly cache].
3939

4040
- **Image optimization**—Offloads image processing and resizing load to the Fastly service freeing servers to process orders and conversions efficiently. See [Fastly image optimization].
4141

src/guides/v2.3/frontend-dev-guide/layouts/xml-manage.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,16 +360,17 @@ There are two ways to set the template for a block:
360360

361361
- using the `template` attribute
362362
- using the `<argument>` instruction
363+
- using the `<action method="setTemplate">` instruction
363364

364365
Both approaches are demonstrated in the following examples of changing the template of the page title block.
365366

366-
**Example 1:**
367+
**Example 1:** using the `template` attribute
367368

368369
```xml
369370
<referenceBlock name="page.main.title" template="%Namespace_Module::new_template.phtml%"/>
370371
```
371372

372-
**Example 2:**
373+
**Example 2:** using the `<argument>` instruction
373374

374375
```xml
375376
<referenceBlock name="page.main.title">
@@ -379,13 +380,25 @@ Both approaches are demonstrated in the following examples of changing the templ
379380
</referenceBlock>
380381
```
381382

382-
In both examples, the template is specified according to the following:
383+
**Example 3:** using the `<action method="setTemplate">` instruction
384+
385+
```xml
386+
<referenceBlock name="page.main.title">
387+
<action method="setTemplate">
388+
<argument name="template" xsi:type="string">%Namespace_Module::new_template.phtml%</argument>
389+
</action>
390+
</referenceBlock>
391+
```
392+
393+
In the above examples, the template is specified according to the following:
383394

384395
- `Namespace_Module:` defines the module the template belongs to. For example, `Magento_Catalog`.
385-
- `new_template.phtml`: the path to the template relatively to the `templates` directory. It might be `<module_dir>/view/<area>/templates` or `<theme_dir>/<Namespace_Module>/templates`.
396+
- `new_template.phtml`: the path to the template relative to the `templates` directory. For example: `<module_dir>/view/<area>/templates` or `<theme_dir>/<Namespace_Module>/templates`.
386397

387398
{:.bs-callout-info}
388-
Template values specified as attributes have higher priority during layout generation, than the ones specified using `<argument>`. It means, that if for a certain block, a template is set as attribute, it will override the value you specify in `<argument>` for the same block.
399+
The highest priority template is one with setTemplate action `<action method="setTemplate">`. Second priority has the attribute specified as `<referenceBlock name="..." template="..."/>`, and the lowest priority has the template using `<argument>`.
400+
401+
It means, that if for a certain block, a template is set as an attribute, it will override the value you specify in `<argument>` for the same block. In the case where we have `<action method="setTemplate">` construction - it will override the values that you specified in the template attribute `<referenceBlock name="..." template="..."/>` and the value you specified using `<argument>`.
389402

390403
## Modify block arguments {#layout_markup_modify-block}
391404

0 commit comments

Comments
 (0)