Coming off of this issue #1375998: Getting custom classes to work I was fixing my templates.

I have a node and a media field that use the same layout. The content type's ouput includes the template class (screenshot), but the media field does not (screenshot).

Example output (notice how panel-1col is only included in the node and not in the field)

<div class="panel-display panel-1col clearfix  test-class">
	<div class="panel-panel panel-col">
		<div>
		<div class="panel-pane pane-entity-field pane-node-field-image">
		<div class="pane-content">
		<div class="field field-name-field-image">
		<div id="file-15" class="file file-image file-image-jpeg contextual-links-region">
		<div class="content">
		<img typeof="foaf:Image" src="http://localhost/...test.jpg" width="480" height="333" alt="">
		<div class="field field-name-field-caption">Test</div>
		<div class="field field-name-field-credit">
			<a href="http://www.test.com">Test</a>
		</div>
		</div>
		</div>
		</div> 
		</div>
		</div>
		</div>
	</div>
</div>
CommentFileSizeAuthor
#2 9FJ4cP.jpg34.12 KBbryancasler
#1 B4IAUp.jpg50.47 KBbryancasler

Comments

bryancasler’s picture

Issue summary: View changes

Fix

bryancasler’s picture

StatusFileSize
new50.47 KB

deleted

bryancasler’s picture

StatusFileSize
new34.12 KB

A better screen cap of the source.

Source

swentel’s picture

Status: Active » Closed (won't fix)

Panel view modes support is discontinued and the code will be gone in the 7.x-2.x of Display Suite. From now on you can use the 7.x-3.x branch of Panelizer now that #1361530: Allow default Panel/layout per view mode is committed.

bryancasler’s picture

So excited about this! Will there be a migration path?

swentel’s picture

Probably not, by the time I've got it all figured out and coded, people will have clicked the configuration together. The panel view modes implementation in DS is missing all sorts of power features anyway that's in panelizer now.

bryancasler’s picture

I'm still super excited, thanks for all your work Swentel.

bryancasler’s picture

Issue summary: View changes

correction