Asset position integer?


(Chris Horikx) #1

Before trying the nth-child approach, which is wrought with browser support issues. I thought I'd try using keyword modifiers to alter the class on listed items before installing selectivizr.

 

Ideally, if I could have on the default format something along the lines of: 

<div class="
%asset_position^modulo:3^eq:1:col-md-3%
%asset_position^modulo:3^eq:2:col-md-6%
%asset_position^modulo:3^eq:0:col-md-3%
">
  <!-- LISTING CONTENTS HERE -->
</div>

It seems that the modifier works for other number keywords (I tested asset_assetid) but not for asset_position. I also tested if asset_position works on other number modifiers and it doesn't. Does anyone know why? Is this a bug?

 


(Ashish Karelia) #2

Hi Chris,

What version of Matrix are you using. Looks like the keyword modifiers didn't work on all the keywords for Asset listing and was fixed on 4.4.5+ versions.

 

Ash


(Chris Horikx) #3

Hi Chris,

What version of Matrix are you using. Looks like the keyword modifiers didn't work on all the keywords for Asset listing and was fixed on 4.4.5+ versions.

 

Ash

 

Hi Ash,

 

I'm on 4.12.2

 

Chris


(Ashish Karelia) #4

Hmm, that should have had the fix if ti was the same issue. I'll try and check the behaviour on my local system a bit later to see if it's a bug or not.

 

Ash


(Chris Horikx) #5

Hey Ash,

 

Any word on this one?


(Bart Banda) #6

Just tested this on 4.18.3 and it seems to work. I think it might have been fixed with this bug fix: http://bugs.matrix.squiz.net/view_bug.php?bug_id=6168 


(Chris Horikx) #7

Thanks Bart