By Andy on Tuesday, 18 November 2014
Replies 9
Likes 0
Views 0.9K
Votes 0
I want to pick up a small version of the event cover to use in a custom module promoting events.

Is there a way to get this, hyperlinked is possible. I tried to right click the cover to see the image file but it looks like it's a CSS thing. How would I get the image link? (but preferably not the original as presumably that would be big file size)

Thanks!
Hi,

Great. You would first need to get the ID of the event.


$event = FD::event($eventid);

$event->getCover();


Cover actually doesn't have a size like avatar. The size is always 1 standard large as of now.
·
Tuesday, 18 November 2014 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Are you looking to do this through PHP codes?
·
Tuesday, 18 November 2014 10:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes if that's the way to do it. My Custom Module would be PHP happy.
·
Tuesday, 18 November 2014 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
OK I'll try that. Many Thanks!
·
Tuesday, 18 November 2014 11:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry just to check, in your code example is FD what I replace with the event number?
·
Tuesday, 18 November 2014 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Welcome!
·
Tuesday, 18 November 2014 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh $eventid is what you would replace with the event id.
·
Tuesday, 18 November 2014 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Got it.
·
Tuesday, 18 November 2014 11:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Great.
·
Tuesday, 18 November 2014 11:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post