-
Notifications
You must be signed in to change notification settings - Fork 15
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
Image formats defined inside of theme directory are ignored #16
Comments
you have to clear cache |
Thank you for your reply. I did it x-times and including rm var/cache. It started working afterchanging this code inside theme bundle.
So it has nothing to do with the cache. I think. |
Seems like @sulu/core-team where should we store theme specific configurations in a project. I would think about something like @almare you can still define all your image formats in the default |
root/config/image-formats.xml did also not work for me. |
@alexander-schranz The path you have suggested makes sense to me 👍 |
Is this not part of the milestone 2.0? |
I am open to accept a PR which fixes this, but since you should still be able to define your image formats in However, what bugs me more is that you've said that this is also not working for you. Did you add this to the And I just realized that this might also be related to sulu/sulu#2639. If we allow to split the @alexander-schranz And I am right with my assumption, that this issue should actually go into the SuluThemeBundle? If I see this correctly, this issue has to be fixed there. |
@almare Oh, and where in the docs did you find some text that explains this should be possible? Just looked it up, and I couldn't find it. |
I came across this issue today and figured it out in the code that it's not intended like I understood it - so I came here to report/discuss about changing the docs or maybe a PR: https://docs.sulu.io/en/latest/book/image-formats.html
combined with
from the documentation here made me assume that "themes//config/image-formats.xml" would be a valid option as well. I'm open to provide a PR extending the current compiler-pass or adding a second one for this :) |
Do I understand this right the path |
I recently started working with this bundle and trying to get this particular feature to work as described led me here. Unless I'm missing something obvious, I can confirm that Since themes found in |
Had the same issue on my environment, created a pull request that fixes the issue for me: #34 |
Actual Behavior
At the moment the image-format.xml inside path/to//config/image-formats.xml is ignored.
Expected Behavior
As written inside the docu I would expect that the path is working.
Steps to Reproduce
Add file to path/to//config/image-formats.xml
Possible Solutions
If have extended the ImageFormatCompilerPass inside theme Bundle to load the theme path. But this is not enough, because the preview inside the admin also not working. I need to add a image-format.xml inside src/Resources/config/image-formats.xml to get the admin preview working.
The text was updated successfully, but these errors were encountered: