Display image on full blog post entry

This topic contains 4 replies, has 2 voices, and was last updated by  ggb3105 3 years, 1 month ago.

  • Author
    Posts
  • #1794

    ggb3105
    Member
    Post count: 14

    Hi
    Another question … Is it possible to keep image showing when displaying full entry blog post ? I’ve modified the image field on content type in order to display it above the body field, however it didn’t work.
    Thanks for your help.

  • #1801

    Stefan
    Staff
    Post count: 25

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #1844

    ggb3105
    Member
    Post count: 14

    Hi

    Here some screenshots for explanation. When I click on entry of menu “Blog” I see a list of all blog posts. This list shows title, metadata and an image (1.jpg). When I click on the titlte the full content is displaying (2.jpg). I ‘d like to keep image displaying on screenshot 2.

    – I’ve tried to manage the image field in structure –> content type –> blog entry field and manage display. I ve selected display for the image field. It didn’t work.

    -I ve also tried to modify the node–blog.tpl.php by adding these lines below between <!–/entry title–> <!–entry meta–> at line 52.

    <!–featured image–>
    <div class=”featured-image”>” class=”img-border image-preview” rel=”prettyPhoto”>“></div>
    <!–featured image–>

    Image doesn’t display (screenshot 3).

    Hope I ve been more clear…

    One more time, thanks for help.

    • This reply was modified 3 years, 1 month ago by  ggb3105.
    • This reply was modified 3 years, 1 month ago by  ggb3105.
  • #1850

    Stefan
    Staff
    Post count: 25

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #1870

    ggb3105
    Member
    Post count: 14

    Hi,
    Great, your code works perfectly.
    Thanks

You must be logged in to reply to this topic.