diff --git a/pr-1540/dev-docs-preview/README.html b/pr-1540/dev-docs-preview/README.html index 293792e713b..8fbb3116100 100644 --- a/pr-1540/dev-docs-preview/README.html +++ b/pr-1540/dev-docs-preview/README.html @@ -392,7 +392,7 @@
x-link
component
-Tip: When using subdirectory-based dropdowns, you can set their priority using the directory name as the array key.
You can easily add custom navigation menu links similar how we add Authors. Simply add a NavItem
model to the navigation.custom
array.
When linking to an external site, you should use the NavItem::forLink()
method facade. The first two arguments are the
-destination and label, both required. Third argument is the priority, which is optional, and defaults to 500.
Filepath: config/hyde.phpuse Hyde\Framework\Features\Navigation\NavItem;
-
-'navigation' => [
- 'custom' => [
- NavItem::forLink('https://github.com/hydephp/hyde', 'GitHub', 200),
- ]
-]
-
-Simplified, this will then be rendered as follows:
-<a href="https://github.com/hydephp/hyde">GitHub</a>
-
HydePHP has a neat feature to automatically place pages in dropdowns based on subdirectories.
For pages that can be in the main site menu, ths feature needs to be enabled in the hyde.php
config file.
getBladeView()
Hyde makes a few attempts to find a suitable label for the navigation menu items to automatically create helpful titles.
From the Hyde config you can override the label of navigation links using the by mapping the route key to the desired title. This is not yet supported for the sidebar, but will be in the future.
@@ -498,7 +501,7 @@Sometimes, especially if you have a lot of pages, you may want to prevent links from showing up in the main navigation menu. To remove items from being automatically added, simply add the page's route key to the blacklist.
Filepath: config/hyde.php'navigation' => [
@@ -507,6 +510,21 @@ Excluding Items (Blacklist)
You can easily add custom navigation menu links similar how we add Authors. Simply add a NavItem
model to the navigation.custom
array.
When linking to an external site, you should use the NavItem::forLink()
method facade. The first two arguments are the
+destination and label, both required. Third argument is the priority, which is optional, and defaults to 500
.
Filepath: config/hyde.phpuse Hyde\Framework\Features\Navigation\NavItem;
+
+'navigation' => [
+ 'custom' => [
+ NavItem::forLink('https://github.com/hydephp/hyde', 'GitHub', 200),
+ ]
+]
+
+Simplified, this will then be rendered as follows:
+<a href="https://github.com/hydephp/hyde">GitHub</a>
+
While not required to know, you may find it interesting to learn more about how the navigation is handled internally. The best way to learn about this is to look at the source code, so here is a high-level overview with details on where to look in the source code.
@@ -622,7 +640,7 @@booted()