Skip to content

Commit fe29009

Browse files
authored
Merge pull request #2089 from kpodemski/improvement/minver-shortcode
Fix problem with minver shortcode
2 parents 074f6be + aa0d75d commit fe29009

File tree

7 files changed

+32
-17
lines changed

7 files changed

+32
-17
lines changed

contribute/documentation/shortcodes/minver.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ To align a pill with a title, use the parameter `title="true"`:
2323
{{</* minver v="1.7.4" title="true"*/>}}
2424
```
2525

26+
Important, if using with title, please make sure the shortcode is on a new line after the title, with the `title="true"` parameter.
27+
2628
Which is rendered like this:
2729

2830
{{% callout %}}

development/architecture/domain/references/attribute-group/index.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ title: AttributeGroup domain
77
### AttributeGroup Commands
88

99

10-
#### BulkDeleteAttributeGroupCommand {{< minver v="8.1.0" >}} {id="BulkDeleteAttributeGroupCommand"}
10+
#### BulkDeleteAttributeGroupCommand
11+
{{< minver v="8.1.0" title="true" >}} {id="BulkDeleteAttributeGroupCommand"}
1112

1213
{{% include-md "content/9/development/architecture/domain/references/attribute-group/_partials/bulk-delete-attribute-group-command.md" %}}
1314

14-
#### DeleteAttributeGroupCommand {{< minver v="8.1.0" >}} {id="DeleteAttributeGroupCommand"}
15+
#### DeleteAttributeGroupCommand
16+
{{< minver v="8.1.0" title="true" >}} {id="DeleteAttributeGroupCommand"}
1517

1618
{{% include-md "content/9/development/architecture/domain/references/attribute-group/_partials/delete-attribute-group-command.md" %}}
1719

18-
#### BulkDeleteAttributeCommand {{< minver v="8.1.0" >}} {id="BulkDeleteAttributeCommand"}
19-
20+
#### BulkDeleteAttributeCommand
21+
{{< minver v="8.1.0" title="true" >}} {id="BulkDeleteAttributeCommand"}
2022
{{% include-md "content/9/development/architecture/domain/references/attribute-group/_partials/bulk-delete-attribute-command.md" %}}
2123

22-
#### DeleteAttributeCommand {{< minver v="8.1.0" >}} {id="DeleteAttributeCommand"}
24+
#### DeleteAttributeCommand
25+
{{< minver v="8.1.0" title="true" >}} {id="DeleteAttributeCommand"}
2326

2427
{{% include-md "content/9/development/architecture/domain/references/attribute-group/_partials/delete-attribute-command.md" %}}
2528

development/architecture/domain/references/order-return/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ title: OrderReturn domain
77
### OrderReturn Commands
88

99

10-
#### UpdateOrderReturnStateCommand {{< minver v="8.1.0" >}} {id="UpdateOrderReturnStateCommand"}
10+
#### UpdateOrderReturnStateCommand
11+
{{< minver v="8.1.0" title="true" >}} {id="UpdateOrderReturnStateCommand"}
1112

1213
{{% include-md "content/9/development/architecture/domain/references/order-return/_partials/update-order-return-state-command.md" %}}
1314

development/architecture/domain/references/title/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ title: Title domain
77
### Title Commands
88

99

10-
#### BulkDeleteTitleCommand {{< minver v="8.1.0" >}} {id="BulkDeleteTitleCommand"}
10+
#### BulkDeleteTitleCommand
11+
{{< minver v="8.1.0" title="true" >}} {id="BulkDeleteTitleCommand"}
1112

12-
{{% include-md "content/9/development/architecture/domain/references/title/_partials/bulk-delete-title-command.md" %}}
13+
{{% include-md "content/9/development/architecture/domain/references/title/_partials/bulk-delete-title-command.md" %}}
1314

14-
#### DeleteTitleCommand {{< minver v="8.1.0" >}} {id="DeleteTitleCommand"}
15+
#### DeleteTitleCommand
16+
{{< minver v="8.1.0" title="true" >}} {id="DeleteTitleCommand"}
1517

16-
{{% include-md "content/9/development/architecture/domain/references/title/_partials/delete-title-command.md" %}}
18+
{{% include-md "content/9/development/architecture/domain/references/title/_partials/delete-title-command.md" %}}
1719

1820
### Title Queries
1921

modules/concepts/hooks/list-of-hooks/actionAjaxDie<Controller><Method>Before.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ description: ''
2222

2323
## Call of the Hook in the origin file
2424

25-
### Before {{< minver v="8.1" >}}
25+
### Before
26+
{{< minver v="8.1" title="true" >}}
2627

2728
```php
2829
Hook::exec('actionAjaxDie' . $controller . $method . 'Before', ['value' => $value])
2930
```
3031

31-
### From {{< minver v="8.1" >}}
32+
### From
33+
{{< minver v="8.1" title="true" >}}
3234

3335
```php
3436
Hook::exec('actionAjaxDie' . $controller . $method . 'Before', ['value' => &$value])

modules/concepts/hooks/list-of-hooks/displayOverrideTemplate.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ description: ''
2222

2323
## Call of the Hook in the origin file
2424

25-
### Before {{< minver v="8.1">}}
25+
### Before
26+
{{< minver v="8.1" title="true" >}}
2627

2728
```php
2829
Hook::exec(
@@ -36,7 +37,8 @@ Hook::exec(
3637
)
3738
```
3839

39-
### From {{< minver v="8.1">}}
40+
### From
41+
{{< minver v="8.1" title="true" >}}
4042

4143
```php
4244
Hook::exec(

modules/sample-modules/extend-product-page.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Extending the new product page form
33
weight: 3
44
---
55

6-
# Extending the new product page form {{< minver v="8.1.0" >}}
6+
# Extending the new product page form
7+
{{< minver v="8.1.0" title="true" >}}
78

89
The new Back Office product page introduced in {{< minver v="8.1.0" >}} removed several hooks which were previously available on the page. Complete list of removed hooks:
910

@@ -30,7 +31,8 @@ In this guide, we will discover how to extend the product page by adding custom
3031

3132
Finally, we will discover how to add a new tab to the product page, which is possible for a new product page from PrestaShop 8.1.
3233

33-
## Add a custom field, before {{< minver v="8.1.0" >}}
34+
## Add a custom field, before
35+
{{< minver v="8.1.0" title="true" >}}
3436

3537
A custom field, before {{< minver v="8.1.0" >}}, was added by hooking to one of the `displayAdminProducts<Location>` hooks.
3638

@@ -92,7 +94,8 @@ Before {{< minver v="8.1.0" >}}, that would produce:
9294

9395
From {{< minver v="8.1.0" >}}, this field won't be displayed as a hook (`displayAdminProductsSeoStepBottom`) is no longer available.
9496

95-
## Add a custom field, from {{< minver v="8.1.0" >}}
97+
## Add a custom field, from
98+
{{< minver v="8.1.0" title="true" >}}
9699

97100
To do exactly the same, from {{< minver v="8.1.0" >}}, we will implement `actionProductFormBuilderModifier` hook and modify product's FormBuilder.
98101

0 commit comments

Comments
 (0)