- Issue created by @aharown07
- π§πͺBelgium BramDriesen Belgium π§πͺ
I think this is because all the poll create/edit/update routes are defined as admin routes. Hence why the admin theme is being used.
I think if you want to create a form for other users to create polls you would be best off to create a custom form and then create the poll 1 choices programatically, and only expose the things you want to expose. I can't think of a reason for example where a user in your case would need to be able to decide if anonymous users are allowed to vote or not.
This might be a good thing to write some documentation for.
- π§πͺBelgium BramDriesen Belgium π§πͺ
You can probably also do this with a custom form mode, and then override the theme setting. But I haven't tried this yet.
- πΊπΈUnited States aharown07
Webform?
It's been a while since I worked on this issue--or used Webform module, but the idea occurs to me that presenting non-admin themed form to users for making their own polls might be a good Webform use case.It's still not clear to me, though, why the checkbox to use the default theme shouldn't just work as expected.
(If it helps, the use case here is a forum where users not only post comments but create nodes of the allowed type. They are also allowed to create polls to add to their nodes.)
- π¨πSwitzerland berdir Switzerland
> It's still not clear to me, though, why the checkbox to use the default theme shouldn't just work as expected.
The reason is that the settings is from node module and only applies to nodes, no other core entity type respects that.
poll was a node type in D7 but not anymore in D8+.
(I'm not saying it's a good reason, just that it's the reason. We could set the _node_operation_route option on the respective routes if we'd want to respect it)