Show thumbnail in the blog post - HELP PLZ

Permalink Browser Info Environment
Hi Chad and all you other smart people, i came across a problem and need some help.

Is it possible to show the thumbnail in the post? I need to be able to specify a width for the images posted with the blog and as far as i can see this is only possible if i use thumbnails. So if i dont want HUGE images messing up the blogpost i need the thumbnail image showed inside the post and not only in the front end of the post.

Hope someone can help me out with this.

Thank you

Type: Discussion
Status: In Progress
berteldk
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
The design is such that you should be able to use the WYSIWYG editor and add images at will via the "add image" option. You can also control things like widths and heights.

A word of caution on this: if your posts are image heavy, you will want to make sure that your blog lists are pulling the page "description" and not using the content. Otherwise those images will show up in the blog list as well.

ChadStrat
RadiantWeb replied on at Permalink Reply
RadiantWeb
Greetings C5 users,

For support, please direct all questions and issue to the products "support" area.

For pre-sales, please direct your questions to the products "pre-sales" area.

Thanks again for being a ChadStrat product supporter.

Blessings,
ChadStrat
cannonf700 replied on at Permalink Reply
cannonf700
You can use this code in the pb_post.php page type to pull the thumbnail into use.

<img src="<?php echo ($c->getAttribute('thumbnail')->getVersion()->getRelativePath());?>" >
justinvv replied on at Permalink Reply
justinvv
I was looking for something similar. Got things working by adding a file link instead of an image and then replacing the filename with the image I want.
heliocentrix replied on at Permalink Reply
heliocentrix
This line of code works great but only when there the user has chosen to add a thumbnail to the post. If there is no thumbnail, it breaks the page. To get round this I used this...

<?php if($c->getAttribute('thumbnail')){     
      echo '<img src="'.($c->getAttribute('thumbnail')->getVersion()->getRelativePath()).'">'; 
      }
      else { 
      }
      ?>

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.