Commit graph

4112 commits

Author SHA1 Message Date
Dave Cranwell
6eb5f821ed added quick django example 2014-08-21 15:56:55 +01:00
Dave Cranwell
c0c9c1a7f7 Merge pull request #563 from davecranwell/master
Added more Page model information about previously omitted attributes
2014-08-21 15:30:21 +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
Karl Hobley
e898bc1d78 Updated references to old indexed class to point to index instead 2014-08-21 15:16:06 +01:00
Karl Hobley
ccf89700d7 Renamed wagtailsearch.indexed to wagtailsearch.index 2014-08-21 14:54:42 +01:00
Karl Hobley
521d753a36 Cleaned up bad imports. Fixes #544 2014-08-21 14:51:05 +01:00
Karl Hobley
c5fef182e5 Fixed a couple of documentation links in the readme 2014-08-21 12:19:57 +01:00
Karl Hobley
8a19552033 Changelog and release notes for #560 2014-08-21 12:19:39 +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
Karl Hobley
a175b4d0fb Improvements to type() PageQuerySet method
This commit makes the type PageQuerySet method include all concrete
models that descend from the specified model in the filter.

This makes this method useful for cases where you have many page types
descending from a single abstract model and want to search across all
these page types (which you can't do in Django normally).
2014-08-19 14:27:56 +01:00
Karl Hobley
20636a7119 Added multiple backend support into update_index command. Fixes #552 2014-08-19 11:36:16 +01:00
pvetch
26314bdfc7 Update using_images_outside_wagtail.rst
Fix to code block syntax
2014-08-19 10:52:49 +01:00
pvetch
470a9e4396 Update routable_page.rst
tiny text fix
2014-08-19 10:51:52 +01:00
Karl Hobley
b8eab527c6 Reduced title boost to 2. Fixes #553 2014-08-19 10:37:32 +01:00
Karl Hobley
2afb9fe84e Completely removed all features deprecated in 0.4 2014-08-19 10:31:02 +01:00
Jose Lourenco
bfd83ecefb (re-)add pt_PT localization to wagtail 0.5.0. 2014-08-18 17:27:58 +01:00
Karl Hobley
f7325ca419 Updated deprecation warning classes
Also removed some occurances of RemovedInWagtail06Warning
2014-08-18 16:40:19 +01:00
Karl Hobley
ec7dfb0e84 Removed show_as_mode 2014-08-18 16:34:36 +01:00
Karl Hobley
11c2829e79 Removed features deprecated in wagtailcore models 2014-08-18 16:29:30 +01:00
Karl Hobley
df31e29428 Make sure that update_index doesn't attempt to index the SearchTestOldConfig model 2014-08-18 16:20:19 +01:00
Karl Hobley
269d156a26 Make tests.EventPage use search_fields 2014-08-18 16:06:00 +01:00
Karl Hobley
9cd1acd4a9 Raise error when indexed_fields setting is used 2014-08-18 16:02:33 +01:00
Karl Hobley
b32ba7fee9 Use of old style routing will now raise a RuntimeError 2014-08-18 15:26:00 +01:00
Karl Hobley
a05419bfd1 Removed css_path argument from wagtailuserbar template tag 2014-08-18 15:15:11 +01:00
Karl Hobley
72ffe88d38 Deleted files that were moved in Wagtail 0.4 2014-08-18 15:13:41 +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
Karl Hobley
9d59182a94 Merge pull request #538 from takeflight/feature/routable-page-tags
Add `routablepageurl` template tag
2014-08-18 09:06:49 +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
Matt Westcott
33e93372a1 Merge branch 'master' into kaedroho-project-template 2014-08-15 15:39:12 +01:00
Matt Westcott
e44a351068 document the register_settings_menu_item hook 2014-08-14 17:32:54 +01:00
Matt Westcott
6947e9204b Add some minimally-functional CSS/JS for the settings submenu 2014-08-14 17:11:38 +01:00
Matt Westcott
7943498ed3 implement SubmenuMenuItem class for embedding submenus into a MenuItem; create a Settings menu and move users / redirects / editors picks there 2014-08-14 16:43:56 +01:00
Matt Westcott
02429028e7 pass request object to MenuItem.render_html to allow customising output per request 2014-08-14 15:59:00 +01:00
Matt Westcott
229e111253 Provide a render_html method on Menu, and use that rather than looping over menu_items in the template 2014-08-14 15:59:00 +01:00
Matt Westcott
35d17ab212 Refactor logic for registering menu items into a Menu class, so that it can be re-used for the settings menu 2014-08-14 15:56:57 +01:00
Matt Westcott
be2d058c45 add test for MenuItem media being included 2014-08-14 15:50:50 +01:00
Matt Westcott
72c3888505 Replace the MenuItem.render_js mechanism with the 'media' mechanism from django.forms, which does basically the same thing but better (e.g. handles de-duping where multiple items import the same js file) 2014-08-14 15:46:24 +01:00
Jose Lourenco
675b7d2a4c Merge pull request #1 from torchbox/master
Update from original to 0.5.0
2014-08-13 22:18:50 +01:00
Matt Westcott
f2756ca439 Mention South 1.0 requirement in 0.5 release notes 2014-08-13 16:19:05 +01:00
Matt Westcott
876976fc04 Merge branch 'nathan3d-page_url' 2014-08-12 17:17:39 +01:00
Matt Westcott
a926bf4fe3 changelog entry for #531 2014-08-12 17:17:21 +01:00
Matt Westcott
8f7cb58f0f Add tests for urlconfs that have wagtail_serve at a non-root path 2014-08-12 16:57:08 +01:00
Matt Westcott
07a48abf58 use 'wagtail_serve' as the url name rather than 'wagtail' 2014-08-12 15:36:11 +01:00
Matt Westcott
fe28f5649e Merge branch 'page_url' of https://github.com/nathan3d/wagtail into nathan3d-page_url 2014-08-12 15:26:17 +01:00
Matt Westcott
07d2851e37 documentation for register_admin_menu_item 2014-08-12 12:06:01 +01:00
Matt Westcott
28592b4d9b Allow menu items to define their own javascript includes, and put the explorer menu js there rather than in core.js 2014-08-12 10:49:38 +01:00
Matt Westcott
ee71fff1b8 Convert all remaining menu items to be globally-registered with an is_shown method 2014-08-12 10:49:38 +01:00
Matt Westcott
3c1c2805c7 Add an is_shown() method to allow globally-registered menu items to specify whether or not they should be shown on a given request 2014-08-12 10:49:38 +01:00
Matt Westcott
4e2ebc2ad2 Add register_admin_menu_item hook for registering MenuItems globally 2014-08-12 10:49:38 +01:00