Here is a patch that lets you use the same field tokens that are available to field rewrites as row classes! This adds much more flexibility to Semantic Views and possibility to style each row depending on CCK field etc.

This is the first stab on this, to get some feedback. We still need to provide an visual overview of which tokens that are available. For now, all tokens that are available to the last field in the view, is also available to Semantic Views row settings.

Comments

Anonymous’s picture

This is great. It's exactly what we need. I'll review it over the weekend.

dixon_’s picture

StatusFileSize
new5.68 KB

Here is a complete patch that also exposes a fieldset with all available replacement tokes, to help the user.

Tokenized fields:

  • Row class field
  • The FIRST class and LAST class fields
  • The Striping class field
Anonymous’s picture

Status: Needs review » Fixed

I made some minor changes to semanticviews_get_alias_tokens() which was needlessly reaching deep into the view when it could just iterate through the fields attached to the view it received as an argument.

I also added a @see comment in that same function to refer to Views own field handler code that does token replacement.

Really great stuff dixon_! Thanks!

http://drupal.org/cvs?commit=344984

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

msti’s picture

Has this patch been applied to the atest satble release?