For more flexibility it would be cool to have the ability to have more than one striping class on each row.
Here is the usecase that isn't possible today:
http://drupal.org/files/issues/semanticviews-tokens.patch
...but it would be possible with this small patch. I realize that this can't go into 6.x-1.x because it would break existing views in a horrible way. But why not start a 6.x-2.x branch?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | semanticviews-comma-sep-stripes-2.patch | 969 bytes | dixon_ |
| semanticviews-comma-sep-stripes.patch | 769 bytes | dixon_ |
Comments
Comment #1
dixon_Oops, I had the wrong URL in the clipboard. Sorry about that. Here is the usecase: http://drupal.pastebin.com/PHysxN9h
Comment #2
Anonymous (not verified) commentedFor this to be added to Semantic Views, we can't break backward compatibility so easily.
I suggest this:
If there are commas, split on the comma,
else split on the space.
I'm looking in the HTML standards for rules about class attributes. Logic dictates that commas can't be in class attributes. Just think how hard it would be to write styles for class attributes containing commas.
Would be styled with:
This would cause all paragraphs (p) to be blue.
It only makes sense that commas need to be encoded if they are to be allowed at all. Normally we don't force users to pre-encode HTML entities, so this would be exceptional.
Comment #3
Anonymous (not verified) commentedI just ran a test.
This validates. Commas are allowed in class attributes.
Comment #4
dixon_Okey. That is a problem. Anyway, here is a patch that solves the backward compatibility (if you aren't using commas in your class names) :)
Comment #5
dixon_Setting this to postponed after out last discussion in IRC.
Comment #6
Scyther commentedThis would be a nice feature to have, I have thought about this my self.
This patch needs update for Drupal 8 and Drupal 7.
Comment #7
cuman commented+1