Skip to content

Commit

Permalink
Merge pull request #662 from LiFaytheGoblin/patch-1
Browse files Browse the repository at this point in the history
[Docs] navigation: Add hint on version for adding node to primary navigation
  • Loading branch information
andrewnicols authored Jul 10, 2023
2 parents ca70465 + d4bbba4 commit 2bae615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apis/core/navigation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ navigation_node::override_active_url(

### **Q.** How do I add a node to the "flat" navigation in the Boost theme?

After creating a node and adding it to the navigation tree - you can set the property `showinflatnavigation` to true in order for this node to be displayed in the flat navigation.
Adding a node to the "flat" navigation is only possible for Moodle versions before 4.0. After creating a node and adding it to the navigation tree - you can set the property `showinflatnavigation` to true in order for this node to be displayed in the flat navigation.

```php
$node = navigation_node::create(...);
Expand Down

0 comments on commit 2bae615

Please sign in to comment.