Create a view with :
- style : unformatted
- line style : fields
For the fields add :
- whatever field, Content > Date
- Node > Teaser
- whatever field, example Node > NID
Click on fields on the line style and then click on parameters, then active the inline fields for these 3 fields.
For Content > Date and Node > NID the inline behaviour is OK, however for the teaser it's just half working :
<span class="views-field-field-date-value">
<span class="field-content"><span class="date-display-single">26/01/2009</span></span>
</span>
<span class="views-field-teaser">
<div class="field-content"> <p>This is my teaser...</p> </div>
</span>
<span class="views-field-nid">
<span class="field-content">225</span>
</span>
The problem is of course the div which should be a span in
<div class="field-content">
Since it's for Node > Teaser I think this bug belongs here, but I'm surprised not to see any other issues reported ?
Comments
Comment #1
guillaumeduveauForgot to say, it's tested on the 2009-Jan-09 tarball
Comment #2
atomicman commentedRemember that u can make u own template for each view. in view in theme: information u can find more info.
u have to create a template in your drupal's theme, with the correct name, then rescan templates and u can display the $field item inside u own div with our class, without item-list
Comment #3
guillaumeduveauThanks ! But I know and I anyway need to make a view template so I can do this there like you said, but I thought that made sense to also have span for the teaser, since it works nicely for (some) other fields.
Comment #4
merlinofchaos commentedThe teaser cannot be shown in a 'span' because it passes through filters which will automatically apply
<p>and other block element tags to the teaser. It is invalid HTML to have block elements inside a span, therefore Views will not allow this.Comment #5
guillaumeduveauAh OK, makes sense, thanks !
Comment #6
ifrikIf I understand that correctly, and the teaser can not be displayed inline anyway, would it then be possible to exclude the tick box for "Node: Teaser" in the row style options?
Or at least mention it somehow in the help text for the options?