0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Dave Cranwell
04c65833f0 Update creating_pages.rst 2014-09-01 16:31:41 +01:00
Dave Cranwell
e2a3d549f8 Added how to add model descriptions 2014-09-01 16:30:43 +01:00
Dave Cranwell
0b3515a916 Update creating_pages.rst 2014-09-01 16:16:15 +01:00
Dave Cranwell
f0db8082c8 Better description of purpose 2014-09-01 16:09:22 +01:00
Dave Cranwell
6eb5f821ed added quick django example 2014-08-21 15:56:55 +01:00
Dave Cranwell
628f94519c added more Page model information about previouslly missing attributes like subpage_types 2014-08-21 15:17:14 +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
509d066a41 Merge remote-tracking branch 'torchbox/master' into image-smartcropping 2014-07-29 13:08:14 +01:00
Karl Hobley
fc4b1ba177 Removed 'Overview' title from Pages index (was messing up toctree) 2014-07-25 15:41:20 +01:00
Karl Hobley
d9e0ad3a37 Added components sections 2014-07-25 15:31:55 +01:00