This may be linked in some way to other existing issues but as I don't think it's totally clear what those issues are yet I am posting this as a new issue.
In the node template editor I am adding content to a pane using the selection rule "Node: type > Node being viewed is type X". In the content editor, I am adding to a column content of "Node body" and overriding the title to be "
%node:title
" as I prefer h1 content headings over Drupal's usual h2.
The expected output is that the h2 element usually output in the pane (i.e.
) will be replaced by my overriding h1 title.
The actual output is that the original title heading element (h2) is left empty and the overriding title heading element is output following the empty heading element.
The consequence of this is not only redundant HTML but breaking accessibility tests due to the wrong ordering of headings (h2 before h1).
The fix would be that overriding titles would result in the original HTML element being removed/ replaced by the overriding title output.
Thanks.
Comments
Comment #1
authentictech commentedCorrection to above due to tags being stripped out:
and
Comment #2
Letharion commentedThe alpha3 is quite old. Have you checked if the -dev version does this properly?
Comment #3
authentictech commentedI just checked and the same problem occurs in the -dev version.
Thanks.
Comment #4
authentictech commentedComment #5
merlinofchaos commentedThat H2 is in your node.tpl.php; Panels (or more accurately CTools) cannot edit your node.tpl.php for you and make it not render. You'll have to edit your node.tpl.php appropriately.