-
Notifications
You must be signed in to change notification settings - Fork 379
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
wrong mimetypes for phpcr images #167
Comments
in the file system loader we go through several steps to try and find the on disc file based on the provided path. we should add similar logic to the phpcr loader: ie. we should do a |
can you try #169 ? note the service definition changed |
hi lukas, i tried it but i dont see any changes ....i changed the data loaders in config and joiz.imagine.data_loader.phpcr signature. thanks my diff diff --git a/app/main/config/config.yml b/app/main/config/config.yml
diff --git a/composer.lock b/composer.lock
diff --git a/src/Joiz/CmsBundle/Resources/config/services.yml b/src/Joiz/CmsBundle/Resources/config/services.yml
On 04.04.2013, at 10:59, Lukas Kahwe Smith notifications@github.com wrote:
|
you need to adjust the template to include the extension you want in the file name:
this will now work even if there is only a node |
its prob just me beeing stupid - but this doesnt work ! {{ content.teaserImage~'.jpg'| imagine_filter('cmf_319_179') }} On 04.04.2013, at 12:04, Lukas Kahwe Smith notifications@github.com wrote:
|
@JOiz Your code is wrong. {{ content.teaserImage~'.jpg'| imagine_filter('cmf_319_179') }} What you actually want: {{ (content.teaserImage~'.jpg')|imagine_filter('cmf_319_179') }} |
yeah .. figure it out .. there were some other issues. all fixed now. |
using the data_loader: phpcr works fine but all images dont have an extension -
a extension is needed for apache to send the correct mime type.
since there is already talk about using something other than the name of the content document image field - (cache busting ) it would be great to add the correct extension based on the content of the (binary) image
so
http://joiz.lo/media/cache/cmf_169_70/cms/content/show/Darlingz/iconImage
would become
http://joiz.lo/media/cache/cmf_169_70/cms/content/show/Darlingz/iconImage_cashbustingidentifier.gif
The text was updated successfully, but these errors were encountered: