First let me say this module is GREAT! Thank you thank you thank you!

I have a couple of sites where I need nesting of some elements. E.g.,

<div class="row">
  <div class="left"><b>[field1]</b> [field2]</div>
  <div class="right>[field3]</div>
</div>

It appears the current row style only allows linear element addition, such that each field can only be enclosed by its set of tags.

Could you do a looser row style that may allow markup similar to above? We would use token-like parameters to refer to fields and entirely construct our own row?

Comments

Anonymous’s picture

After working on this module, I also came up with this idea. It's a completely different paradigm for doing row rendering. It also possibly conflicts with the token feature in field (not technically but in terms of how the user understands fields vs. rows, especially when it comes to labels and links).

Using token replacement in a row style would essentially bring Contemplate to Views.

I think if anything this would need to be a different row style. Should it be part of Semantic Views? I don't know. I'll think about it.

aren cambre’s picture

Contemplate applies to all views of the node. I am using Contemplate and want to use it for default node views, but I also want a special view in the template that is different from my Contemplate settings.

Anonymous’s picture

I understand what you want. The concepts are basically the same. We need a row output style with a text area whose value is passed through token with the Views row. It may be too divergent to drop into this module, but if someone wants to give start it, I will take patches here, review and assist. Ultimately it may need its own module.

aren cambre’s picture

Suggested it here because it seemed like an "advanced mode" counterpart, but I hear you on the complexity and divergence.

aren cambre’s picture

Looks like what I want is mostly built into Views. Using "Rewrite the output of this field," I can alter anything except the tags that define the row.

Anonymous’s picture

Another way to do this is to use semantic views to disable the tags from the output style (that wrap each row), exclude all fields from being displayed in your view and use a Global: custom text field to set up your row using tokens.

Anonymous’s picture

Status: Active » Closed (works as designed)