Add Image to Blog Entry Output

Permalink
I have created the blog and blog entry page types, I have added custom attributes one being the thumbnail image/file attribute. Does anyone know how I get the image that is inserted in the composer to show on the blog entry page type output? Basically I would like the image beside the blog entry content.

View Replies: View Best Answer
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi wcldev,

You can use the Page Attribute Display block and select the thumbnail attribute.

Editing the form allows you to add attributes to the Composer form.
Dashboard > Pages & Themes > Page Types > Edit Form button

To place the thumbnail on all pages for that page type and page template, you need edit the page defaults.
Dashboard > Pages & Themes > Page Types > Output button > Edit Defaults button

While editing defaults, you can add the Page Attribute Display block.
wcldev replied on at Permalink Reply
Thanks for the help again, you are by far the most active member of the community I have seen yet, and your help is very welcome. I found the block you was talking about and it all works perfectly, thank you.
ntisithoj replied on at Permalink Reply
ntisithoj
This is great! Thanks.... the one small problem I am having with this is the order they appear on the page is not the order they appear in the template.

I have
[Page Attribute Display (Thumbnail)]
[composer control block]

but the thumbnail appears at the bottom of the page, under the composer control block. Is this a bug or do I have to specify the order they appear somewhere?

I have deleted all the blocks and re-added them, just in case the blocks were appearing chronologically (which would make no sense, but I was outta idea)
MrKDilkington replied on at Permalink Reply
MrKDilkington
@ntisithoj

Just to clarify, are you saying that the position of the blocks changes?

If so, when do they change?

Can you take a before and after screenshot of this happening.
ntisithoj replied on at Permalink Reply 2 Attachments
ntisithoj
yes, exactly. Here are the screenshots
MrKDilkington replied on at Permalink Reply
MrKDilkington
@ntisithoj

I am not quite sure what to look for in the livemode screenshot.
ntisithoj replied on at Permalink Reply
ntisithoj
In editmode the thumbnail is above the blog. In the livemode the thumbnail appears below the blog.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@ntisithoj

Does this only happen for a certain page type or template?
ntisithoj replied on at Permalink Reply
ntisithoj
I only tested on page template Right Sidebar] as this problem is appearing in the blog which uses that template.

I have three page types "Page", "Problog Post" and "Excerpt" (which was originally a copy of Problog Post) and it is the same on all three
MrKDilkington replied on at Permalink Reply
MrKDilkington
@ntisithoj

Have you tested this with another theme?
thebogdan replied on at Permalink Reply
thebogdan
Thank you, this helped a lot!
losttheplot replied on at Permalink Reply
losttheplot
I'm having problems showing the thumbnail image on the applicable blog page (to allow users to edit the thumbnail image). I have created a custom attribute called 'thumbnail' which allows me to fetch the image on the blog page listing (this works fine). I have a Page Type called 'blog_entry' to which I have assigned the 'thumbnail' custom attribute under a composer form set called 'Content'. In this same set is 'Content' and 'Header Image', both of which are blocks, not attributes.

I can add the 'Content' and 'Header Image' elements to the Page Type Template (output) using the Composer Control block, but 'thumbnail' does not come up as a 'control' option in the composer control block form.

Can anyone tell me what I am doing wrong please? I had all this covered with 5.6 but trying to design similar composer template pages in 5.7 is driving me up the wall!
losttheplot replied on at Permalink Reply
losttheplot
I'll answer my own question now, after more reading. To add a custom attribute to a page-type template, one needs to use the Page Attribute Display block, which can be found in the Multimedia section of the blocks side-panel. Also, the thumbnail can be changed by the user in the Composer interface, or edited as a thumbnail if you have locked the thumbnail image to a custom file thumbnail type. Such a lot has changed in 5.7!