For some views i don't need a title, and leaving it without title also makes the 'edit view' contextual link to go away.

Comments

dawehner’s picture

What kind of display has this behaviour? I guess it's something else then page as this works fine without a page title, maybe block?

As views just extends the contextual links provided by core, this is maybe a core bug.

Yuri’s picture

In my site, this behavior appears for a normal page display in views. If that page display has set an empty title (thus Title:None is shown), then the contextual link to the view is not visible on the page.

I checked the html, and the piece that is completely removed when no views page title is present is the following:

<h1 class="title" id="page-title">Web Links</h1>
<div class="contextual-links-wrapper contextual-links-processed">
   <a class="contextual-links-trigger" href="#">Configure</a>
   <ul class="contextual-links element-hidden views-contextual-links-page">
      <li class="views-ui-edit first last">
      <a href="/admin/structure/views/view/web_links/edit/page?destination=web-links">Edit view</a>
      </li>
   </ul>
</div>

I checked if the contextual links shows in normal core blocks when the block title is not present, and those link are present.

Might indeed be a core bug.
I am using the Omega theme.

dawehner’s picture

Project: Views (for Drupal 7) » Omega

Well if you don't have a title it still works on bartik, but it's sort of a core bug, see screenshot.

Let's move to omega, if they totally remove it from the page but i guess the part shown in the screenshot is another bug.

cellar door’s picture

Status: Active » Closed (works as designed)

Omega shouldn't cause any change in the contextual links for a view or page that doesn't have a title. Should this continue please re-open the issue with details and we'll look into it. Thanks!