Skip to content

Commit

Permalink
Fixed Content Menus
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySikorsky committed Aug 11, 2021
1 parent 287f823 commit f4c8dd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fundamentals/content/menus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Each menu item has localized name, URL, and position. Position might be used to

.. image:: /images/fundamentals/content/menus/2.png

After menu is created, you can display it on the frontend using the built-in MenuViewComponent class like this
After menu is created, you can display it on the frontend using the built-in `MenuViewComponent` class like this
(the menu code is passed as the parameter to identify the menu we want to display):

.. code-block:: html
Expand All @@ -20,7 +20,7 @@ After menu is created, you can display it on the frontend using the built-in Men

As you can see, an additional CSS class might be applied using the corresponding optional parameter.

The menu will be displayed using the built-in views
Menu will be displayed using the built-in views
(`_Menu <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Menus.Frontend/Views/Shared/_Menu.cshtml>`_ and
`_MenuItem <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Menus.Frontend/Views/Shared/_MenuItem.cshtml>`_).
The HTML elements have unique CSS classes (the `BEM <https://getbem.com/>`_ methodology is used), so it is easy
Expand All @@ -42,5 +42,5 @@ to apply styles to them:
</div>
</div>

If you want to change the HTML, just copy the views into your project and they will be used instead of the built-in ones,
If you want to change the HTML, just copy these default views into your project and they will be used instead of the built-in ones,
so you will be able to modify them as you want.
Binary file modified images/fundamentals/content/menus/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/fundamentals/content/menus/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f4c8dd3

Please sign in to comment.