2

what format should I use in order to make two fields out of three be inline in a drupal 7 view, and how do I configure this?

5

Hide the two fields in the views ui, then add a Global: Custom text field (make sure it is below the two hidden fields). In this field's text box you then add the two hidden fields back via replacement patterns (that's why it needs to be below the two hidden fields, else it will not see them), and wrap them in inline html or html that you will style inline.

You can use unformatted list format.

To make two rows out of three inline you will just use CSS with :nth selector. Else you can override the theme template for views (in advanced section). You copy and paste the template, then rename it to a proper suggestion. In that template it uses a loop to write the rows. You can rewrite that so that it loops over three at a time, prints two inline, one as block-level element.

4

Under the Format section where it says 'Show: Fields | Settings' select settings. There is an inline fields section. Select the fields you want to be displayed inline.

Note: If the fields render as block elements simply change the CSS for the fields to display: inline-block.

0

Hi I decided to use display suite which makes it responsive as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.