Tag: wagtail

02 Feb, 17

How To Remove Snippets Menu Item From Wagtail CMS Admin Menu

Put this hook into wagtail_hooks.py file of your Wagtail CMS app.

1
2
3
4
5
  1. from wagtail.wagtailcore import hooks
  2. @hooks.register('construct_main_menu')
  3. def hide_snippets_menu_item(request, menu_items):
  4. menu_items[:] = [item for item in menu_items if item.name != 'snippets']

Restart your server and you're done!

Read now
20 Jan, 17

Use Specific() Method On PageQuerySet To Access Referenced Model's Field Data in Wagtail CMS

Wagtail CMS provides a very handy content tree that really helps in organizing website's content hierarchy. The tree itself is powered by django-treebeard library (https://github.com/django-treebeard/django-treebeard). 

As a developer you should be aware of several handy methods that you can execute on any item of a ...

Read now
12 Jan, 17

There's Wagtail CMS Admin Styleguide Available

In case you didn't know and always been wondering about the next wagtail admin icon class, there's Wagtail CMS admin styleguide which comes with core packages. To enable it just update your INSTALLED_APPS config:

1
2
3
4
5
  1. INSTALLED_APPS = [
  2. ...
  3. 'wagtail.contrib.wagtailstyleguide',
  4. ...
  5. ]

And you're ready to access the guide ...

Read now
01 May, 15

Installing libsass (django_libsass) on Mac OS Yosemite

I started playing with wagtail recently (a very promisiing Django CMS) and they use django_libsass to compile their sass into css. Unfortunatelly, if you'll try to install django libsass via PIP on Mac you'll get a compile error message. I tried lots of approaches to fix this and it didn't ...

Read now