Skip to content

Commit

Permalink
[4.0] Menu description
Browse files Browse the repository at this point in the history
We have a field called Menu Description which as the name implies is used to provide an optional description of the menu. But we only display it on the menu edit form.

This field really is functionally the same as the "note" field that we have elsewhere which is displayed on the list views.

So this simple PR adds the display of the description below the menu name
  • Loading branch information
brianteeman committed Jul 28, 2019
1 parent 942cfd4 commit 0d9b9b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions administrator/components/com_menus/tmpl/menus/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
<?php else : ?>
<?php echo $this->escape($item->title); ?>
<?php endif; ?>
<?php if (!empty($item->description)) : ?>
<div class="small">
(<?php echo $this->escape($item->description); ?>)
</div>
<?php endif; ?>
</div>
</td>
<td class="text-center btns">
Expand Down

0 comments on commit 0d9b9b6

Please sign in to comment.