Closed (fixed)
Project:
Views TimelineJS integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 19:40 UTC
Updated:
14 May 2015 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
polComment #3
christiaan_ commentedGreat module - thank you. From Pol's example I got it working with the following changes in the views_timelinejs_plugin_style_timelinejs.inc file. It will now use the image style of the selected image field.
Comment #4
jamescook commentedIf you're seeking to apply patch #3 to current dev, you need to do some prefixing with
$this->.Comment #5
sdsheridanDefinitely need this included!
Shawn
Comment #6
liquidcms commentedpretty sure this has not been committed so changing back to Active.
Comment #7
liquidcms commented#3 does not work; likely as jamescook suggested.
on a similar note; i dont think any field styles are used by this module.. which would be good.. but i'll open a separate issue (e.g. date formatting is allowed in the date field by the view; but ignored when displayed).
Comment #8
liquidcms commentedthis is better:
but, even though the uri to the img is now correct; the inline style is set to still make the img small... my guess is the timeline js is setting size.Comment #9
zincdesign commentedI'd love this feature. How do I implement this @Liquidcms ?
I have tried pasting in the above but in various places in the views_timelinejs_plugin_style_timelinejs and it's throwing up errors so i am sure I am not doing it correctly
Comment #10
liquidcms commentedlook at the post in #3... you should be able to tell from there where the code goes. search for the lines:if
and then paste the code i provided just after that.
Comment #11
zincdesign commentedThanks for your help Liquidcms. It throws up the same error which make me think I was adding the code correctly.
Notice: Undefined index: image_style in views_timelinejs_plugin_style_timelinejs->render() (line 586 of ........./sites/all/modules/views_timelinejs/views_timelinejs_plugin_style_timelinejs.inc).
If you can assist any further I'd appreciate it but I totally understand if not. Thanks again :-)
Comment #12
liquidcms commentedthat's not an error; its a Notice. just disable php from showing notices... they don't hurt.
is your timeline using the style? it actually kind of sounds like you just haven't set a style for your image field in the view.
Comment #13
letrotteur commentedPlease provie a patch file. This is a must have feature or you end up loading huge image for nothing.
Comment #14
roderikThanks for this. There should be no need to call image_style_create_derivative() though. It just slows down loading the page. This should be enough:
I will integrate this into the patch #2117733-9: Add separately selectable thumbnail field because they're changing the same lines, and you want to have a mapping for thumbnail too.
Comment #16
WorldFallz commentedFixed! Up next: #2117733: Add separately selectable thumbnail field
Comment #17
polRevival ! :)
Comment #18
WorldFallz commentedyou bet! This is an AWESOME module... kudos to all those maintainers who came before me.
Comment #19
replicaobscuraThis seems to introduce the problem of, in the case of an image field with no image in it, the image style URL is still returned with no image filename on the end, causing it to try to generate a thumbnail of the 404 page indicating that there is no image.
Shouldn't it check to see if the field is empty before trying to apply an image style to it?
Comment #20
replicaobscuraComment #21
WorldFallz commentedYeah... I noticed this myself. Working on a fix.
Comment #22
replicaobscuraI did post a patch here that resolves it if you'd like to use that--it's a really simple code fix.
Comment #23
WorldFallz commentedawesome... just committed it in #2480427: Tries to render image style even if image uri is empty. Thanks!