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

Docs: fix docs/extending_cms/extending_examples.rst #961

Merged
merged 3 commits into from Aug 25, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/extending_cms/app_integration.rst
Expand Up @@ -282,7 +282,13 @@ We would now create a menu out of these categories::
def get_nodes(self, request):
nodes = []
for category in Category.objects.all().order_by("tree_id", "lft"):
nodes.append(NavigationNode(category.name, category.pk, category.parent_id))
node = NavigationNode(
category.name,
category.get_absolute_url(),
category.pk,
category.parent_id
)
nodes.append(node)
return nodes

menu_pool.register_menu(CategoryMenu)
Expand Down
2 changes: 1 addition & 1 deletion docs/extending_cms/extending_examples.rst
Expand Up @@ -252,7 +252,7 @@ So open your ``cms_apps.py`` and write::
class PollsApp(CMSApp):
name = _("Poll App")
urls = ["polls.urls"]
menu = [PollsMenu] # attach a CMSAttachMenu to this apphook.
menus = [PollsMenu] # attach a CMSAttachMenu to this apphook.

apphook_pool.register(PollsApp)

Expand Down