Question

Concrete5 comes with package blog_entry by default.
This package includes image thumbnail with width and height restriction. How can I reuse it with other types? So I want to build a different Blog and use these thumbnails.

Thanks

Was it helpful?

Solution

To make a page type available to the Composer dashboard interface, go to Dashboard -> Pages & Themes -> Page Types, and click the "Composer" button next to the appropriate page type (then check the appropriate boxes depending on how you want this set up).

If you want to make some content fields available for data entry also, click the "Defaults" button next to the page type (in the "Page Types" dashboard page), then add a block to an area on your page, then click on the block and choose "Composer", and check the box to make it available in the composer interface.

The "thumbnail image" for the blog posts are utilizing an "image" block in the page defaults, so after you've enabled your page type to work with composer, go to the page defaults and add an "Image" block to an area, then I think you can edit that block and set some default dimensions. Before you exit edit mode, click on the image block and choose "Composer" and check the box to make it available to the composer interface. Now it should appear when you write new pages of the new page type in Composer.

OTHER TIPS

You'll want to create a custom template for the Page List block (then place the page list block on your blog "index" page, then click on the block in edit mode and choose "Custom Template" from the popup menu and pick your custom template from the list there).

Here are general instructions on how to create custom templates:

Note that as of Concrete 5.5, the markup in the Page List default template is much cleaner and easier to work with than what's shown in the above link. But if you're still on 5.4 or lower, I have cleaner versions of some block templates available here (this is actually what the newer version of the system template is derived from):

See the comments of those templates for instructions on including an image thumbnail specifically.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top