|
I've created a list called "Gallery" with the "<label class="forcheckbox" for="OnAdminMenu">Show on admin menu" option checked</label> with a title "Gallery", I've also created a content type
called "Gallery Page" i've added the autoroute part to the Gallery Page with the pattern {Content.Container}/{Content.Slug} I have also selected "Automatically regenerate when editing content"
Now there is 2 navigation options to create a new gallery page:
1, from the "New" sub menu
2, From "Gallery" -> "Create New Gallery Page"
The difference in the 2 options above is whether or not the List the Gallery page will be contained under is preselected.
this can be seen from the url's
1, http://localhost:30320/OrchardLocal/Admin/Contents/Create/GalleryPage
2, http://localhost:30320/OrchardLocal/Admin/Contents/Create/GalleryPage?ContainerId=43&ReturnUrl=%2FOrchardLocal%2FAdmin%2FLists%2F43
Now if I create a Gallery page using 1, the autoroute does not get set correctly. It ignores the container and only uses the {Content.Slug}
If I create a gallery page using 2, the autoroute works correctly.
It appears that creating a Gallery page with the "ContainerId=43" query string results in the hidden field being populated and everything works fine <input id="CommonPart_ContainerId" name="CommonPart.ContainerId" type="hidden"
value="43" />
If I use method 1 and I click publish for a second time the route is fixed as I have selected "Automatically regenerate when editing content" in the options.
I don't see this listed as a issue, surly someone else is using Lists and can verify this?
Using orchard 1.4.1
|