I post it here as I think it is a Panels issue.

I got a D7 website whose pages are rendered through Panels, actually Node, Taxonomy Term and User templates. I haven't added node:content pane to the panels as the main content. Instead I put a collection of views in the different regions of my panel layout.

I installed Remove Generator and set up Meta tags, OpenGraph Meta tags and Schema.org for my node types. But it seems there are no meta nor Schema.org information on pages displayed through Panels. Nor the Generator Meta is removed in them.

I'm sure it is up to Panels as a collection of views and panes since the problem disappears whenever I disable the Panel template or I put the node:content pane in it.

Files: 
CommentFileSizeAuthor
#5 panels-twocol-bricks.tpl_.php_.txt2.69 KBminsky

Comments

The schema.org isn't a requirement to reproduce this bug since it leverages the core RDF API and in particular the RDFa markup that @cesareaugusto was expecting to find in its pages. In other words, simply installing Drupal 7 (standard profile) is enough to have some RDFa markup in the regular node pages (search for the @property attribute for example), which is missing from the output @cesareaugusto is talking about.

I believe the issue is that these things produce their output via hook_node_view -- in order for this to run you must add the 'node: content' pane.

This is a known issue, but a proper solution hasn't arisen yet. One potential solution is to run this using hook_ctools_render_alter()

I believe the issue is that these things produce their output via hook_node_view -- in order for this to run you must add the 'node: content' pane.

Using the node: content pane I couldn't spread fields into the different regions of my custom layout. How could I reproduce this behaviour with node: content pane.

This is a known issue, but a proper solution hasn't arisen yet. One potential solution is to run this using hook_ctools_render_alter()

Do you think it will be fixed in the short period?

Have anyone successfully fixed this using hook_ctools_render_alter() ?

StatusFileSize
new2.69 KB

You can workaround it by overriding your layout's template file, which is found in modules/panels/plugins/layouts . Although not documented, you can use the $variables variable inside. See the attached file for 2 col brick layout example.
Note that I didn't test this thoroughly, but my feeling is that this is the way to go

I am trying to show microtags on my pages which are built using views and panels.
Which template file would I need to override to add the following ?

itemprop="dateCreated" class="field-content">2012
Do I override a panels or views tpl.php file. And how do I label it?
Thanks

I've already created a panels page using the interface. How do I wrap the entire code in a tag and close the tag AFTER ALL the panes?
Is using plugins/layouts/ the way to go?
Thanks

@minsky The overriding you suggested does not serve the full purpose. No doubt this added some properties on the top of the content. I am using the schema properties on a content type recipe. I have override my template file as

<div class="column column-main" id="content" about="<?php print $variables['display']->context['argument_entity_id:node_1']->data->type.'/'.$variables['display']->context['argument_entity_id:node_1']->data->title ;?>" typeof="<?php print implode($variables['display']->context['argument_entity_id:node_1']->data->rdf_mapping['rdftype'], " ");?>">
<span rel="schema:url" resource="<?php print $variables['display']->context['argument_entity_id:node_1']->data->type.'/'.$variables['display']->context['argument_entity_id:node_1']->data->title ;?>" class="rdf-meta"></span>
<span property="schema:name" content="<?php print $variables['display']->context['argument_entity_id:node_1']->data->title ;?>" class="rdf-meta"></span>
    <?php print $content['main']; ?>
  </div>

This outputs the schema properties like typeof and url, but the schema property is not added on other fields like

  1. Preparation time
  2. Cooking time
  3. Yields
  4. ingredients
  5. Cooking directions