Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc Fix-Update home.rst #803

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/features/home.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Add blog apphook to the home page
Amend configuration
*******************

Permalinks must be updated to avoid blog urlconf swallowing django CMS page patters.
Permalinks must be updated to avoid blog urlconf swallowing django CMS page patterns.

To avoid this add the following settings to you project:
To avoid this add the following settings to your project:

.. code-block:: python

Expand All @@ -32,14 +32,14 @@ To avoid this add the following settings to you project:
)
BLOG_PERMALINK_URLS = {
"full_date": "<int:year>/<int:month>/<int:day>/<str:slug>/",
"short_date: "<int:year>/<int:month>/<str:slug>/",
"short_date": "<int:year>/<int:month>/<str:slug>/",
"category": "<str:category>/<str:slug>/",
}

Notice that the last permalink type is no longer present.

Then, pick any of the three remaining permalink types in the layout section of the apphooks config
linked ot the home page (at http://yoursite.com/admin/djangocms_blog/blogconfig/).'
linked to the home page (at http://yoursite.com/admin/djangocms_blog/blogconfig/).'

.. warning:: Version 1.2 introduce a breaking change as it drops ``url`` function in favour of ``path``.
If you have customized the urls as documented above you **must** update the custom urlconf to path-based
Expand Down