You should be able to define a @property within the ParentPage class. Something like: class ParentPage(Page): ... @property def related_pages(self): pages = ParentPageRelatedLink.objects.filter(page_id=self.id) return pages ...
You'll need to provide an explicit panels definition on RichContent, possibly something like: RichContent.panels = SimpleContent.panels + VisualContent.panels + Ctalinkitem.panels Wagtail is able to auto-generate a panels definition in some circumstances, but this is rather limited (for example, it doesn't recognise page chooser panels) - and in particular, if you...
After going through the debugger for a while, I found out that wagtail already has two methods: get_prev_sibling() and get_next_sibling(). So the methods could look like this (accounting for the first page in the previous method and the last item in the next method): def prev_portrait(self): if self.get_prev_sibling(): return self.get_prev_sibling().url...
Your attempted fix of {% main_nav %} suggests you aren't that familiar with Django. The fact you were able to edit Wagtail's internal files also indicates you're perhaps installing it from Git, rather than with pip or from Pypi, which would normally hide Wagtail's code relatively out of reach. If...
In addition to making sure that Django's runserver is properly bound ./manage.py runserver 0.0.0.0:8000, you also need to check to see if Vagrant is forwarding the port for the host machine. This can be seen as a part of the STDOUT which comes from the vagrant up command: Bringing machine...
django,django-allauth,django-1.7,wagtail
ended up being a problem with sequencing I guess.... 1.disable all of the allauth apps within INSTALLED_APPS in settings.py 2.run manage.py migrate enable all of the allauth apps and disable the wagtail app that was generated for the project (e.g. blog) 3.run manage.py migrate again enable both sets of apps...
twitter-bootstrap,content-management-system,wagtail
You can do this through image formats: http://docs.wagtail.io/en/v0.8.5/core_components/pages/editing_api.html#image-formats-in-the-rich-text-editor The "Full width" / "Left-aligned" / "Right-aligned" options you usually get when inserting an image into the rich text area come from Format objects, which determine how to translate the image reference into the final tag. So, you need to replace the...