-
Notifications
You must be signed in to change notification settings - Fork 80
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
Set a default type for each article type #473
Comments
|
Just for completeness, it should be possible to create an article by selecting the correct template in the template dropdown of the toolbar, even if an error is printed to the browser console 🙂 Obviously, this is not the desired behaviour. It should be possible to set a default type per article type IMO. |
+1 |
1 similar comment
+1 |
I am experiencing this issue :) +1 |
I temporary fixed it by setting the default type to the first key in the array.
In my case this fixes the issue because the defaultTemplate has to be set to the only type in the array. Just wanted to drop this here, hopefully this doesn't create confusion. |
How does your config look like? |
What config do you mean? The YAML? |
@jordygroote yes, your yaml |
Like this:
The default type is If you need help you can contact me on SULU slack |
Hey everybody, sulu_core:
content:
structure:
default_type:
article: "default" After removing this config (and clearing the cache of the application), you should be able to create new articles without any errors. Sulu should automatically select the first template of the selected article type as default. |
Thanks for fixing this! |
Perfect, thank you for sharing this |
There is a error related to this if you upgraded and forget to remove the default_type you will run into the "Missing type" dialog now instead of an hard error. So its important to not set the default_type when you are using multiple article types. |
It should be possible to define a default type for each article type.
At the moment, you can only set one default type for all article types which is a problem when using tabs.
When you create an article, it doesn't select a default type.
This error is displayed in the console browser:
The text was updated successfully, but these errors were encountered: