Commit graph

12 commits

Author SHA1 Message Date
Matt Westcott
bfa4a806ed document PageQuerySet.unpublish 2014-10-04 18:45:50 +02:00
Matt Westcott
d495ad493a Merge branch 'docs-changes' of https://github.com/kaedroho/wagtail into kaedroho-docs-changes 2014-10-04 11:30:36 +02:00
Matt Westcott
82ce4fd861 document the PageQuerySet.type method 2014-10-01 17:37:38 +01:00
Karl Hobley
70d423335a Restructed search docs 2014-09-28 10:11:34 +01:00
Karl Hobley
73d29b99c0 Fixes to RoutablePageMixin examples 2014-09-04 09:20:53 +01:00
Karl Hobley
a314285a1d Changed versionadded for RoutablePageMixin to 0.6 2014-09-04 09:18:13 +01:00
Tim Heap
15419f4d0e Make RoutablePage a mixin
If a developer wanted to have a site-wide base page class, and also have
some pages be `RoutablePage`s, a conflict between the automatically
generated `page_ptr` fields would occur.

```python
from wagtail.wagtailcore.models import Page
from wagtail.contrib.wagtailroutablepage.models import RoutablePage

class SitePageBase(Page):
    # common functionality
    is_abstract = True
    class Meta:
        abstract = True

class MyPage(RoutablePage, SitePageBase):
    # This model is invalid
    pass
```

`RoutablePage` has been changed to be a mixin `RoutablePageMixin`. Page
classes can use this to gain the `RoutablePage` functionality while
still retaining the ability to subclass other models.

A `RoutablePage` class that derives from both `RoutablePageMixin` and
`Page` has been left in for backwards compatibility, so old code will
continue to function without any modifications.
2014-08-21 19:42:17 +10:00
pvetch
470a9e4396 Update routable_page.rst
tiny text fix
2014-08-19 10:51:52 +01:00
Karl Hobley
75e0d32b60 Improved example for 'subpage_urls' in RoutablePage documentation 2014-08-18 11:40:48 +01:00
Karl Hobley
ba6ade482e Changelog and release notes for #538 2014-08-18 09:18:15 +01:00
Tim Heap
98698ef8d4 Add routablepageurl template tag
It is similar to `pageurl`, but works with `RoutablePage`s. Functions
like a hybrid between `reverse` and `pageurl`. For example:

    {% load wagtailroutablepage_tags %}
    {% routablepageurl self "feed" %}
    {% routablepageurl self "archive" 2014 08 14 %}
    {% routablepageurl self "food" foo="bar" baz="quux" %}
2014-08-18 08:27:07 +10:00
Karl Hobley
d9e0ad3a37 Added components sections 2014-07-25 15:31:55 +01:00