ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Thumbnail / resized image of related field / file field

October 29, 2013 5:43am

Subscribe [3]
  • #1 / Oct 29, 2013 5:43am

    A.Daniel

    12 posts

    Hi, i have a code like this

    {service_projects}
    
     <h3>{service_projects:title}</h3>
    <p> {service_projects:project_main_pic}<br />
     {service_projects:project_meta_description}<br />
     <br />
    {/service_projects}

    where {service_projects} is a relationships field, inside service channel, which connects service channel with projects channel.

    i want to show the resized version of {service_projects:project_main_pic}

    the {project_main_pic] is a field type file/ image and i have 2 resized versions of the main picture with name small, medium.

    How do i access inside the related field tags the small thumb.
    I coudn't find any documentation here http://ellislab.com/expressionengine/user-guide/modules/file/file_tag.html

    thank you.

  • #2 / Oct 29, 2013 6:04am

    Ralph

    78 posts

    I’m not sure about how to use the native image resizing. I usually use the add-on Ed Image Resizer or there’s CE Image which has a few more features.

  • #3 / Oct 30, 2013 8:47pm

    Rob Allen

    3114 posts

    You need to add the image manipulation name to the image tag.

    If your image manipulation name is called “small” this is how you add in:

    {service_projects}
    
     <h3>{service_projects:title}</h3>
    <p> {service_projects:project_main_pic:small}<br />
     {service_projects:project_meta_description}<br />
     <br />
    {/service_projects}

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases