Closed GoogleCodeExporter closed 8 years ago
When you first init the system, the Create Page function will create the page
that is hosted at the root of the
system (i.e. http://localhost:8080/). After that, the Create Page link is
throwing this error for me as well. To
create additional pages you would click on "Add Child" of the root page. This
is clearly a bug, thanks.
As for Edit Sidebar, there is a yaml format for the sidebar definition which we
are looking at eliminating (or
replacing with a UI). An example for what this looks like can be found in the
help section
(http://localhost:8080/admin/help/). You can also have the system auto-add
pages to the sidebar from the edit
page to avoid having to edit the yaml by hand.
Original comment by James.Bo...@gmail.com
on 23 Dec 2008 at 2:33
Original comment by James.Bo...@gmail.com
on 23 Dec 2008 at 2:34
right now every page is forced to be at least a child of the homepage (if not a
grandchild, etc.)... at least in practice. i don't see that as a bad thing
either. if
you keep it that way and have no qualms about the issue, then you can get the
Create
Page functionality working by just setting the new page's parent_id to the root
page
(homepage) key().id
in views/admin.py in the new_page method, where it check "if not parent_page"
right
before doing the initialization, change that to
if parent_page:
parent_id = parent_page.key().id()
else:
this will allow the create page functionality to work. i have added this to my
modified codebase which also includes functionality mentioned in issue #19
Original comment by realgt
on 29 Jan 2009 at 7:45
Attachments:
As mentioned the bug for creating a page was fixed in r44. If the other errors
continue to manifest themselves
please open an individual defect and we will investigate.
Original comment by James.Bo...@gmail.com
on 1 Feb 2009 at 1:42
Original issue reported on code.google.com by
warrenin...@gmail.com
on 23 Dec 2008 at 3:40