0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
Matt Westcott
6adf7c8423 Add register_page_action_menu_item hook 2018-11-22 11:14:01 +00:00
Sergey Fedoseev
47465197a9 Use intersphinx for Django references when possible. (#4896) 2018-11-14 11:48:32 +00:00
Matt Westcott
4965d85e72 Update hook examples to use django.templatetags.static
django.contrib.staticfiles.templatetags.staticfiles is deprecated as of Django 2.0
2018-10-18 08:49:15 +01:00
Matt Westcott
31a1126123 Remove construct_whitelister_element_rules hook 2018-05-18 11:43:28 +01:00
Matt Westcott
5ce14841d8 Remove ancient versionchanged notes 2018-05-15 14:54:41 +01:00
Karl Hobley
bf3e994505 Fix capitalisation of QuerySet 2018-04-05 12:13:05 +01:00
Karl Hobley
a9b4b09152 Fix spelling mistakes in documentation 2018-04-05 12:13:05 +01:00
Bertrand Bordage
0fcd6d8cc1 Improves #4421 documentation example. 2018-03-29 21:01:23 +02:00
Michael van Tellingen
c5d21a76d9 Add a new hook 'register_account_menu_item' (#4421)
* Add a new hook 'register_account_menu_item'

This new hook makes it easier for third party apps to add new buttons on
the 'my account' page in the Wagtail admin. Existing buttons are
converted to the new hooks to make the code consistent.

* Add documentation for the new register_account_menu_item hook
2018-03-29 20:48:23 +02:00
Matt Westcott
b9a548f424 Update documentation for rich text element whitelisting 2018-01-05 16:15:59 +00:00
LB (Ben Johnston)
e20fbcc3cd Update register_page_listing_more_buttons example
Use Button instead of PageListingButton in **register_page_listing_more_buttons** section.
2017-12-14 12:37:16 +00:00
Philipp Bosch
a9f51a09c4 [Docs] Fix imports in "Buttons with dropdown lists" hooks example 2017-12-05 00:12:06 +00:00
Mads Jensen
ffd93a0d28 Don't inherit from object 2017-11-27 10:06:03 +00:00
Karl Hobley
062d05189b Rename wagtail.wagtailadmin to wagtail.admin
Conflicts:
	docs/advanced_topics/customisation/admin_templates.rst
	docs/advanced_topics/customisation/page_editing_interface.rst
	docs/advanced_topics/i18n/duplicate_tree.rst
	docs/advanced_topics/jinja2.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/reference/hooks.rst
	docs/reference/pages/panels.rst
	docs/topics/pages.rst
	docs/topics/streamfield.rst
	wagtail/admin/blocks.py
	wagtail/admin/checks.py
	wagtail/admin/edit_handlers.py
	wagtail/admin/forms.py
	wagtail/admin/rich_text.py
	wagtail/admin/search.py
	wagtail/admin/site_summary.py
	wagtail/admin/templatetags/wagtailadmin_tags.py
	wagtail/admin/tests/test_admin_search.py
	wagtail/admin/tests/test_buttons_hooks.py
	wagtail/admin/tests/test_compare.py
	wagtail/admin/tests/test_edit_handlers.py
	wagtail/admin/tests/test_page_chooser.py
	wagtail/admin/tests/test_pages_views.py
	wagtail/admin/tests/test_rich_text.py
	wagtail/admin/tests/test_widgets.py
	wagtail/admin/tests/tests.py
	wagtail/admin/urls/__init__.py
	wagtail/admin/views/account.py
	wagtail/admin/views/chooser.py
	wagtail/admin/views/collection_privacy.py
	wagtail/admin/views/collections.py
	wagtail/admin/views/home.py
	wagtail/admin/views/page_privacy.py
	wagtail/admin/viewsets/model.py
	wagtail/admin/wagtail_hooks.py
	wagtail/admin/widgets.py
	wagtail/contrib/settings/registry.py
	wagtail/contrib/wagtailsearchpromotions/wagtail_hooks.py
	wagtail/contrib/wagtailstyleguide/wagtail_hooks.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/project_template/project_name/urls.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/snippets/models.py
	wagtail/tests/testapp/models.py
	wagtail/tests/testapp/wagtail_hooks.py
	wagtail/tests/urls.py
	wagtail/wagtaildocs/models.py
	wagtail/wagtaildocs/views/chooser.py
	wagtail/wagtaildocs/wagtail_hooks.py
	wagtail/wagtailembeds/wagtail_hooks.py
	wagtail/wagtailforms/models.py
	wagtail/wagtailforms/tests/test_views.py
	wagtail/wagtailforms/views.py
	wagtail/wagtailforms/wagtail_hooks.py
	wagtail/wagtailimages/models.py
	wagtail/wagtailimages/views/chooser.py
	wagtail/wagtailimages/wagtail_hooks.py
	wagtail/wagtailredirects/forms.py
	wagtail/wagtailredirects/wagtail_hooks.py
	wagtail/wagtailsites/forms.py
	wagtail/wagtailsites/views.py
	wagtail/wagtailsites/wagtail_hooks.py
	wagtail/wagtailsnippets/tests.py
	wagtail/wagtailsnippets/wagtail_hooks.py
	wagtail/wagtailusers/forms.py
	wagtail/wagtailusers/views/groups.py
	wagtail/wagtailusers/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley
4300e19da2 Rename wagtail.wagtailcore to wagtail.core 2017-11-26 22:43:47 +00:00
Jonathan Carmack
7859627a6e Added hooks for user for create, delete, and edit actions 2017-11-03 16:53:32 +00:00
Karl Hobley
bf7936ade2 Replace django.core.urlresolvers with django.urls 2017-11-01 16:22:46 +00:00
Matt Westcott
119d2334ac Replace insert_editor_js hook example with a non-registerHalloPlugin one
Fixes #3839
2017-10-10 11:51:45 +01:00
Eugene Morozov
7b55c5094f Backslash is not necessary when multi-line expression is parenthesized. 2017-07-18 09:56:42 +03:00
Matt Westcott
049b15f3fe Define a 'before_serve_document' hook 2017-06-16 14:50:47 +01:00
Gagaro
46c9cdda15 feat: Added construct_image_chooser_queryset, construct_document_chooser_queryset and construct_page_chooser_queryset hooks 2017-02-17 10:40:03 +00:00
Andy Chosak
b00bf70229 Document register_page_listing_more_buttons (#3377)
* add docs for register_page_listing_more_buttons
2017-02-16 21:40:57 +00:00
Gagaro
ac7ad067d2 feat: can order hooks 2017-02-10 10:06:43 +00:00
Matheus Bratfisch
b01376ad72 Add after/before_copy_page hooks, test and docs 2017-01-16 19:00:29 +00:00
Tim Heap
16213db0f8 Remove old versionadded notes
A step has been added to the release process notes to do this for future
releases as well.

https://github.com/torchbox/wagtail/wiki/Creating-a-new-Wagtail-release
2016-11-28 13:41:35 +00:00
Mikalai Radchuk
fb93a6d6b9 Allow to limit access to form submissions (#3016)
Add the filter_form_submissions_for_user hook

Thanks @kaedroho for the code review and docs.
2016-09-22 14:36:39 +03:00
Matt Westcott
89f4699a91 Fix underlines 2016-09-19 13:51:04 +01:00
Karl Hobley
4dc1ef05f8 Removed unused import from example
Thanks @timheap for spotting
2016-09-15 09:18:04 +01:00
Karl Hobley
8b9b2ced36 Docs for new hooks 2016-09-14 16:52:28 +01:00
Robert Rollins
7523d7f57f Removed all uses of STATIC_URL from code samples, replaced with static().
Concatinating with settings.STATIC_URL is no longer reccomended for creating
URLs to static resources, because it doesn't take the configured storage engine
into account. For example, a site using S3 to store its static files will need
static URLs that link out to S3, rather than relative URLs within the same
domain.

I replaced it with django.contrib.staticfiles.templatetags.staticfiles.static()
in python example code, and the {% static %} tag in template examples.
2016-04-28 10:57:22 +01:00
Robert Rollins
11793f88c5 Changed indentation on all code samples to 4 spaces.
Most of the samples were already 4-space indented, but a few were using 2-space,
which is both inconsistent and, when it happened with Python code samples,
incompatible with PEP8.
2016-04-28 10:57:22 +01:00
Tom Dyson
6dcb433215 CamelCase JavaScript in hooks documentation 2016-03-11 17:19:45 +00:00
Tom Dyson
43cb7f8e83 Hook for adding JS to all admin pages
Like insert_editor_js but not just for edit pages.
2016-03-11 17:19:45 +00:00
Matt Westcott
6803075188 Release notes for #1940 2016-03-11 15:43:43 +00:00
Josh Barr
a7d8a7bd4d added documentation for page listing buttons 2016-03-11 15:43:42 +00:00
Matt Westcott
d1a86c06da documentation: now with 8.3% more underline 2016-02-29 15:03:28 +00:00
Matt Westcott
3195a5200f Prevent deletion of collections that are non-empty
Since the collections infrastructure itself does not know about the object types that
can exist within collections, this requires a new hook `describe_collection_contents`
to allow collection contents to be discovered.
2016-02-29 13:14:10 +00:00
Matt Westcott
766e2501e4 Implement register_group_permission_panel hook for adding new panels to the group edit form 2016-02-29 13:14:05 +00:00
Tom Dyson
985a987436 Hook for adding CSS to all admin pages 2016-02-25 10:24:54 +02:00
Matt Westcott
d620ce9656 Document the construct_explorer_page_queryset hook 2016-02-12 11:15:13 +00:00
Matt Westcott
cddbc7c4a8 Remove 'versionadded:: 0.7' tags - 0.7 is ancient enough to be irrelevant 2016-02-11 10:53:03 +00:00
Matt Westcott
1677bd5a0d insert_editor_css no longer provides a mechanism for custom SCSS 2016-02-11 10:53:03 +00:00
Matt Westcott
dc0d18b6a4 Reorganise Hooks reference into meaningful sections 2016-02-11 10:53:03 +00:00
Tim Heap
224f3f5c37 Remove final references to django-compressor
* Remove references from docs
* Fix comment in SCSS files, and fix related variable names
* Remove COMPRESS_ENABLED setting from tests
2016-02-09 18:41:56 +00:00
Ben Kerle
3ef94d60a2 Documentation for admin search area hook 2015-12-14 21:21:45 +00:00
Matt Westcott
a679d4f7f5 Remove all menu-{section_name} classnames on the <body> element and menu item <li>s.
These were introduced in 9d7d016b7c to support menu item highlighting, but this mechanism was superseded by #1186. There's no sign of any code still using these classnames, and any code that relies on them would be liable to fail on non-English-language sites anyhow (since the menu item name is derived from the label by default, and the label is a translatable string).
2015-07-30 23:19:12 +01:00
Karl Hobley
739ef64cf1 Started fixing spellings. Added wordlist 2015-04-17 23:05:08 +01:00
Karl Hobley
8d162d0a86 Removed all versionadded older than 0.7 2015-04-09 17:03:33 +01:00
Dan Braghis
aa5fe7574b Tweak code and docs based on feedback 2015-04-03 18:34:03 +01:00
Dan Braghis
c174de8724 Rename construct_wagtail_edit_bird hook 2015-04-03 13:36:32 +01:00