Problem:
- Views has contextual links that appear when a View is rendered as a page, and those contextual links appear to the right of the page title (the <h1>
element), but the code Views uses to achieve this is ugly: see views_page_alter(), views_preprocess_html(), and views_contextual_links_view_alter().
- As of #1874664: Reconcile "Edit" toolbar option with local tasks (tabs) and contextual links for editing, contextual links for nodes now appear on the node page itself, but they are attached to the node's <article>
tag, which does not include the page title.
Questions:
- Do we want to continue the pattern of contextual links used for main page content? Much of #1874664: Reconcile "Edit" toolbar option with local tasks (tabs) and contextual links for editing was about answering yes to that question, but that was not the original intent of contextual.module for D7.
- If we do, do we want the contextual-region including the
<h1>
tag, as in how views pages currently works, or not, as in how node pages currently work? - Most page.tpl.php implementations currently print $tabs in between the page title and the main content. Is there a legitimate use case for tabs and main content contextual links both appearing, or should they always be mutually exclusive?
- If we do want to encompass the page title, how do we need to change our page.tpl.php rendering pipeline to support that cleanly, so we can remove the current Views hacks?