Skip to content

mkulaczkowski/django-cms-menu-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

django-cms-menu-icons

Simple app that allows user to add menu icons in the django-cms

#Dependencies

App requires django-cms to run, check their docs at: https://django-cms.readthedocs.org/

App is compatbile with both django-cms <3 and newest versions.

#Features

App allows you to add a icon class or image or both. Full integration with django cms - to add/change icon - go to edit mode, and on the page dropdown menu you will find "page icon" option.

#Usage

You can access menu icons in the template by using {{child.menu_icon_font_awesome}} or {{child.menu_icon_image}}

Example:

{% for child in children %}
		<li class="{% if child.selected %}active {% endif %}" title="{{child.get_menu_title}}">
			<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}"> <i class="fa color--50 {{child.menu_icon_font_awesome}} "></i>{{child.get_menu_title}}</a>
		</li>
{% endfor %}

About

Simple app that allows user to add menu icons in the django-cms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages