How to make such a layout as on example screenshot? Picture on left, Title and truncated content on right.
What view format i need to use?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityHow to make such a layout as on example screenshot? Picture on left, Title and truncated content on right.
What view format i need to use?
I have achieved this by setting up my view in this way.
View format: Grid
View show: fields
In settings for Grid view select no. of colums to 1
After adding your required fields, suppose image, title, description. Add one more field Global:custom text
Make sure this field should be the last field. And 'exclude from display' all fields except Global:custom text field
Now I added this into the custom field
CSS Style:
.custom-left, .custom-right{
float:left;
}
You can add more fields and style them accordingly. Hopes this will help you to get exactly what you want.
float:left !important;
– echo
Nov 27 '14 at 4:40
If you are just trying to create a layout for a node, not a view, then take a look at Display Suite. You can choose a simple layout in the settings e.g Header with left and right columns, then drag and drop which node fields you want into those areas.
There are lots of good help videos too.
You want to create a new view of View type = Node. Then
Now you just edit the CSS in your theme to float the image left, and the title and teaser will appear on the right. I use the CSS Injector module to quickly specify the required CSS.
I would also use the Imagecache module to automatically create the appropriate size of image, that is selected in your View image field.
If you were lazy, you could specify a display style of Table, to place the image in the left column, and the Title and Teaser in the next column, but this wouldn't be mobile freindly.