Jump to content

How to display record image thumbnail?

Featured Replies

Posted

I know the code for record image is 

{file="$record->record_image" extension="cms_Records"}

but how do I call the record image thumbnail?

Is this for posts or articles? I'm trying to locate the variable for post thumbnails.

  • Community Expert

but how do I call the record image thumbnail?

The field name is: ​record_image_thumb

 

Hi Ralf, so somethign like:

{template="A VIABLE TEMPLATE" group="global" app="core" params="$topic->​record_image_thumb(), 'tiny'"}

Would work, or is it not that simple?

Hi guys sorry for asking a not directly related question but I have been searching for an answer for this for weeks. And would be forever grateful if you could help!!!

why does this 

{file="$record->record_image" extension="cms_Records"}

return this in source

url(http://lightpile.net/uploads/);

and not an actual url? I can show the rest of the code if necessary. 

  • Community Expert

and not an actual url? I can show the rest of the code if necessary. 

​I don’t need to see more code, but the question is WHERE you put that. Either that template or record has no record image available or it’s in another variable like $row instead of $record. 

Sorry for hijacking your post Kirill.

Thanks for the reply Ralf. It is in a database template (featured records, in the entry part) just as as ABGenc suggested in his post about it. You posted in that thread because I wasn't the only one who couldn't get record images to show.

I get the exact same result he gets (css working) but without the images showing. Lightpile.net is my site 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.