Best way of showing the same images across multiple pages (with the same page type)

Permalink
Sorry to keep on posting what would seem, to some, to be a basic question (s)

What I am trying to do is as follows:
My client is featured in a number of publications and they would like post the covers as thumbnails (max 3) of the publication on all "News pages" of their website where people can click and download the PDF of the relating cover thumbnail.

What I would like the client to do is add the cover thumbnail (from the file manager) to one page which inturn adds it to all the other news pages.

Now the page list block would be ideal if the publications had their own page... the don't, and then I thought a Block of Blocks that shows on the "news" page type, but now I realise that this is not possible.

So with the advent of 5.4 – Layouts I thought I could save the layout and the content within in a global Scrap book, but whilst typing this I realise it may also be wrong...

How would you do it?

Please be gentle as I have no PHP experience and my developer has gone down with a tropical bug...

Thanks

dancer
 
goldfish replied on at Permalink Reply
goldfish
Two methods I would consider. I'd recommend #1 as there's no coding involved.

1) In the dashboard under pages and themes, Edit the default for the News Page type. Add in your thumbnail images one by one as image blocks, and hyperlink to the download URL. You can get that out of the "properties" dialog for the PDF files in the File manager. Once you have added the blocks to the default template for the news page type, just click "setup on child pages' on each new block and you can apply that block to the selected pages.

Method 2) Add the block into a global scrapbook (not the admin personal scrapbook) and name it "Publications" Then insert this code to call the block by name and insert it into the appropriate spot in the template for your News page in your theme folder. <?php $b = Block::getByName('Publications');
$b->display(); ?> You can repeat and name blocks other names. You can always go into the global scrapbook through the dashboard and edit the block there if you need to make changes in the future. I tend to use this method when I know the block is needed uniformly in the same position on every page.

Hope that helps.
dancer replied on at Permalink Reply
dancer
Goldfish!!!

Thanks so much for the response. Method 1 is by far the simplest (I didn't realise you could do this) but as I want to learn I may go with option 2... the next thing I will have to do is look into is how the client can add a new publications which will simply bump the old one of the news page and into an "archive gallery" ;-)

Amazin', thanks Goldefish

D