Skip to content
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: 3 additions & 3 deletions docs/customer_management/cp_page_builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ibexa:
content:
tree_root:
location_id: location_id_of_customer_portal
excluded_uri_prefixes: [ /media, /images ]
excluded_uri_prefixes: [ /media/, /images/ ]
```

Next, under the `ibexa.system.admin.page_builder` [configuration key](configuration.md#configuration-files), add `custom_portal` to [the SiteAccess list available to Page Builder](multisite_configuration.md#siteaccesses-and-page-builder):
Expand Down Expand Up @@ -136,7 +136,7 @@ ibexa:
content:
tree_root:
location_id: location_id_of_customer_portals_root_folder
excluded_uri_prefixes: [ /media, /images ]
excluded_uri_prefixes: [ /media/, /images/ ]
```

Next, under the `ibexa.system.admin.page_builder` [configuration key](configuration.md#configuration-files), add `custom_portal` to [the SiteAccess list available to Page Builder](multisite_configuration.md#siteaccesses-and-page-builder):
Expand Down Expand Up @@ -234,7 +234,7 @@ ibexa:
content:
tree_root:
location_id: location_id_of_customer_portals_root_folder
excluded_uri_prefixes: [ /media, /images ]
excluded_uri_prefixes: [ /media/, /images/ ]
```

To generate the Customer Portal menu you should use `customer_portal.menu.main` key:
Expand Down
5 changes: 3 additions & 2 deletions docs/multisite/multisite_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,14 @@ ibexa:
content:
tree_root:
location_id: 42
excluded_uri_prefixes: [/media, /images]
excluded_uri_prefixes: [/media/, /images/]
index_page: /EventFrontPage
```

- `location_id` defines the location ID of the content root for the SiteAccess.
- `excluded_uri_prefixes` defines which URIs ignore the root limit set by using `location_id`.
In the example above, to access the Media and Images folders, you can use their own URI, even though they're outside the location provided in `content.tree_root.location_id`.
In the example above, to access the Media and Images folders, you can use their own URI, even though they're outside the location provided in `content.tree_root.location_id`.
It's an array of prefixes. So, for example, `[/media]` would also exclude `/mediation` from root limit.
- `index_page` is the page shown when you access the root index `/`.

!!! note
Expand Down
4 changes: 2 additions & 2 deletions docs/multisite/set_up_campaign_siteaccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
## Reuse content

Finally, reuse some content between sites, for example "Logos" from "Images/Media".
You can allow the `campaign` site to access them, even though they're in a different part of the tree, via `excluded_uri_prefixes`:
You can allow the `campaign` site to access them, even though they're in a different part of the tree, via [`excluded_uri_prefixes`](multisite_configuration.md#location-tree):

``` yaml
ibexa:
Expand All @@ -60,7 +60,7 @@
content:
tree_root:
location_id: 57
excluded_uri_prefixes: [ /media/images/logos ]
excluded_uri_prefixes: [ /media/images/logos/ ]

Check failure on line 63 in docs/multisite/set_up_campaign_siteaccess.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/multisite/set_up_campaign_siteaccess.md#L63

[Ibexa.Spellcheck] Did you really mean 'excluded_uri_prefixes'?
Raw output
{"message": "[Ibexa.Spellcheck] Did you really mean 'excluded_uri_prefixes'?", "location": {"path": "docs/multisite/set_up_campaign_siteaccess.md", "range": {"start": {"line": 63, "column": 21}}}, "severity": "ERROR"}
```

Now, when you use the `campaign` SiteAccess, you can reach `<your site>/campaign/Media/Images/Logos`, despite the fact that it's not a sub-item of the "Campaign" location.
Expand Down
Loading