Add Thumbnail to created asset

Hi Folks


I've trying to create a trigger to add a specific thumbnail to an asset created under a location. The trigger fires (tested it with other action) but I tried using the set thumbnail action without much luck. This is what I am currently trying…







…anyone any better ideas on how to make this work / see why that wont?



Cheers



K

I can't comment on the method used above, as I have not done it. But for thumbnails, we always create the image as a child of the parent. Then, have a paint layout with a nested asset listing using list_current_asset_id which looks one level down under the parent for image assets, and then prints that. Using this method in my opinion, is much more flexible.


What are you trying to achieve with adding the thumbnail? Could you tell us your situation?

[quote]
What are you trying to achieve with adding the thumbnail? Could you tell us your situation?

[/quote]



Ok its for an calendar asset. Each time a calendar asset is created I want it to have a thumbnail attached. This image wont actually be used in a matrix page but rather will appear in XML feed (customised Rolling calendar page) for an 'event' that can be fed to a script that makes up posters from the calendar asset data (and other metadata attached to that asset).



K

What have you set for your trigger condition?


I tried setting this up as well and it is not working for me either. There might be a chance that the session var gets set right as it gets checked by the set thumbnail action, and it might not see if, but I am really not sure.



Are you planning on using the same thumbnail for each asset?




..works as I had it setup to fire off an e-mail to check that part.



K

Are you planning on using the same thumbnail for each asset?

[quote]
Are you planning on using the same thumbnail for each asset?

[/quote]



the same thumbnail for each asset in that location (and thus firing the trigger) yes… i will create different triggers for events in different locations (or that's the plan)



K

[quote]
the same thumbnail for each asset in that location (and thus firing the trigger) yes… i will create different triggers for events in different locations (or that's the plan)



K

[/quote]



If it is the same each for multiple assets, why not just hard code the asset id of the image into the type format for your asset listing?

[quote]
If it is the same each for multiple assets, why not just hard code the asset id of the image into the type format for your asset listing?

[/quote]



because the 'feed' will include the events from all locations for the next 7 days. that way an admin person here presses a button an a pdf of all the posters is produced that they can print out. As well as the title, speaker etc of the event the image needs to change as each event series (location) has a different image.



However (thinks on feet) I could set the image name as a metadata field that isn't in the asset builder or simple edit layout… that might work. But even then as there is a 'set thumbnail condition' it must be possible without resorting that kinda work around…



K

[quote]
because the ‘feed’ will include the events from all locations for the next 7 days. that way an admin person here presses a button an a pdf of all the posters is produced that they can print out. As well as the title, speaker etc of the event the image needs to change as each event series (location) has a different image.

[/quote]



Check out this post: http://forums.matrix.squiz.net/index.php?showtopic=5415



Also, you might try just testing the set thumbnail trigger with using a get var just for testing. It would be much easier to debug that way.

[quote]
Check out this post: http://forums.matrix.squiz.net/index.php?showtopic=5415



Also, you might try just testing the set thumbnail trigger with using a get var just for testing. It would be much easier to debug that way.

[/quote]



cheers - I’ll try that tomorrow. Surely tho setting session var should have the same effect (will also reread the PHP docs tomorrow :wink:



K