Skip to main content
edited tags
Link
avpaderno
  • 98.1k
  • 15
  • 165
  • 284
deleted 84 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 51
  • 183

I'am thea newbie guy, and I want to make a simple view with simplyan image filedfield (in article nodes), that looks like this layout :

enter image description here

And for this, I don't want to use CSS rules to resize the view rows images, for two raisonsreasons :

  1. I am using bootstrap grid, and iI don't want to deal with relative heights, since images in articles have various sizes, so I prefer that this view do the image resizing for me.
  2. I want to learn this view trick without relaying on CSS tricks.

I tryedtried different tricks, like:

  1. importing the image filed twice, making each one in different image style, rewriting them (displaying them conditionaly) based on "view result counter", but putting a condion like {% if counter == 1 %} or like {% if counter == '1' %} don't work (i think it still an open issue).
  2. I tried also making some theme preprocess or theme hook alter altering to force a different image style for the first iteration, but like I said, I'm the newbie guy.

I'm soooooooooooooso frustrated because of such an easy task that looks so hard to me. Please

Any help me and thank you so much.?

I'am the newbie guy, and I want to make a simple view with simply image filed (in article nodes), that looks like this layout :

enter image description here

And for this, I don't to use CSS rules to resize the view rows images, for two raisons :

  1. I am using bootstrap grid, and i don't want to deal with relative heights, since images in articles have various sizes, so I prefer that this view do the image resizing for me.
  2. I want to learn this view trick without relaying on CSS tricks.

I tryed different tricks, like:

  1. importing the image filed twice, making each one in different image style, rewriting them (displaying them conditionaly) based on "view result counter", but putting a condion like {% if counter == 1 %} or like {% if counter == '1' %} don't work (i think it still an open issue).
  2. I tried also making some theme preprocess or theme hook alter altering to force a different image style for the first iteration, but like I said, I'm the newbie guy.

I'm sooooooooooooo frustrated because of such an easy task that looks so hard to me. Please help me and thank you so much.

I'am a newbie, and I want to make a simple view with an image field (in article nodes), that looks like this layout :

enter image description here

And for this, I don't want to use CSS rules to resize the view rows images, for two reasons :

  1. I am using bootstrap grid, and I don't want to deal with relative heights, since images in articles have various sizes, so I prefer that this view do the image resizing for me.
  2. I want to learn this view trick without relaying on CSS tricks.

I tried different tricks, like:

  1. importing the image filed twice, making each one in different image style, rewriting them (displaying them conditionaly) based on "view result counter", but putting a condion like {% if counter == 1 %} or like {% if counter == '1' %} don't work (i think it still an open issue).
  2. I tried also making some theme preprocess or theme hook altering to force a different image style for the first iteration.

I'm so frustrated because of such an easy task that looks so hard to me.

Any help?

edited body
Source Link

I'am the newbie guy, and I want to make a simple view with simply image filed (in article nodes), that looks like this layout :

enter image description hereenter image description here

And for this, I don't to use CSS rules to resize the view rows images, for two raisons :

  1. I am using bootstrap grid, and i don't want to deal with relative heights, since images in articles have various sizes, so I prefer that this view do the image resizing for me.
  2. I want to learn this view trick without relaying on CSS tricks.

I tryed different tricks, like:

  1. importing the image filed twice, making each one in different image style, rewriting them (displaying them conditionaly) based on "view result counter", but putting a condion like {% if counter == 1 %} or like {% if counter == '1' %} don't work (i think it still an open issue).
  2. I tried also making some theme preprocess or theme hook alter altering to force a different image style for the first iteration, but like I said, I'm the newbie guy.

I'm sooooooooooooo frustrated because of such an easy task that looks so hard to me. Please help me and thank you so much.

I'am the newbie guy, and I want to make a simple view with simply image filed (in article nodes), that looks like this layout :

enter image description here

And for this, I don't to use CSS rules to resize the view rows images, for two raisons :

  1. I am using bootstrap grid, and i don't want to deal with relative heights, since images in articles have various sizes, so I prefer that this view do the image resizing for me.
  2. I want to learn this view trick without relaying on CSS tricks.

I tryed different tricks, like:

  1. importing the image filed twice, making each one in different image style, rewriting them (displaying them conditionaly) based on "view result counter", but putting a condion like {% if counter == 1 %} or like {% if counter == '1' %} don't work (i think it still an open issue).
  2. I tried also making some theme preprocess or theme hook alter altering to force a different image style for the first iteration, but like I said, I'm the newbie guy.

I'm sooooooooooooo frustrated because of such an easy task that looks so hard to me. Please help me and thank you so much.

I'am the newbie guy, and I want to make a simple view with simply image filed (in article nodes), that looks like this layout :

enter image description here

And for this, I don't to use CSS rules to resize the view rows images, for two raisons :

  1. I am using bootstrap grid, and i don't want to deal with relative heights, since images in articles have various sizes, so I prefer that this view do the image resizing for me.
  2. I want to learn this view trick without relaying on CSS tricks.

I tryed different tricks, like:

  1. importing the image filed twice, making each one in different image style, rewriting them (displaying them conditionaly) based on "view result counter", but putting a condion like {% if counter == 1 %} or like {% if counter == '1' %} don't work (i think it still an open issue).
  2. I tried also making some theme preprocess or theme hook alter altering to force a different image style for the first iteration, but like I said, I'm the newbie guy.

I'm sooooooooooooo frustrated because of such an easy task that looks so hard to me. Please help me and thank you so much.

Source Link
Loading