PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Oct 16, 2019 7:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Nov 08, 2016 1:51 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
I currently have the following lines of code in my index.twig file to output the image of a post:

Syntax: [ Download ] [ Hide ]
<img src="{{ record.image|image }}" alt="">


Now i went through the bolt documentation and came to know that there is the following function in bolt:

Syntax: [ Download ] [ Hide ]
thumbnail(filename, w, h)




So now i tried to use the function in the following way:

Syntax: [ Download ] [ Hide ]
<img src="{{ thumbnail(record.image|image, 200, 200)  }}" alt="">


But i get a broken link instead. why is this happening ?


Top
 Profile  
 
PostPosted: Tue Nov 08, 2016 8:18 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
What error messages are you getting? Are you saving thumbnails? Is the directory writable?

_________________


Top
 Profile  
 
PostPosted: Tue Nov 08, 2016 1:43 pm 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331


Last edited by gautamz07 on Tue Nov 08, 2016 1:53 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Nov 08, 2016 1:52 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada

_________________


Top
 Profile  
 
PostPosted: Tue Nov 08, 2016 2:27 pm 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
@celauran ! , Thanks for the inputs , i'll look into all you've said and reply back here :) Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group