I have rearranged my page using panels. The title needs to be in a different place. I have chosen the Title type to be "From pane" to get the proper title in the top of the browser. However, I do not want the title to be written automatically by the system in the HTML as well. That will make the title render twice, e.g. http://vih.dk/underviser/lars-olesen

Comments

Letharion’s picture

Category: feature » support
Status: Active » Fixed

I take it you have somehow figured this out anyway, since I can't see the title twice.
If not, please provide panel exports, as I don't understand what's going on.

lsolesen’s picture

Status: Fixed » Postponed (maintainer needs more info)

I will provide an a panels export. I have hidden it via css, but I think that shouldn't be the way to do it. The problem also being that contextual links are not showing when hiding the title via css. I will get back to you.

Letharion’s picture

It sounds like some confusion between the title set in the browser window, and the title displayed of the current content, which can be different.

I can see a <h1 class=title id=page-title><span>Lars Olesen</span></h1>, as well as a <h2>Lars Olesen</h2>. Since the h1 appears hidden, I take it that's what you want to remove. That should just be a 'title-pane', which you should be able to simply remove form your panel?

authentictech’s picture

The way I read this is, lsolesen does not want the node title to be output automatically in his page (as he is using other means to display it) but he does want the title in the browser tab/title bar.

I also wish the node title to be in the browser tab/title bar but not in the page content (as I am outputting it elsewhere) so I have selected "No title" to stop it being printed on the page but the effect of this is to also hide it also from the browser tab/title bar.

Is there a way to hide the title from automatically displaying on the page but keeping it on the browser tab/title bar?

Thanks.

Letharion’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I wasn't checking this issue since it was still in "postponed", so I haven't seen your post authentictech.
If you don't want to display the title, just don't add it's content pane? I don't think I understand the question.
Closing since it's been in postponed for quite a while without the aforementioned export.

Evoksha’s picture

Here is my interpretation of the use case for lsolesen and authentictech. This is a concern for me as well:

  1. Developer would like to specify the location of the <h1> tag himself, e.g., in a custom content block somewhere on the page.
  2. If the developer does not specify the page title in Panels, the default is for an <h1> automatically generated in the page header area, usually containing the site name.
  3. If the developer does specify the title, the <h1> is automatically generated in the page content area.

Put another way, suppose you are trying to specify the location for the page's <h1>, say in some custom Panels content block. In this case, you will not want the <h1> to appear in the page header, but you will still want to specify where the <h1> will be located. In panels you are only offered the choice of specifying the title and having it automatically appear as HTML on the page, or specifying no title, in which case the <h1> is automatically rendered in the page header.

One workaround for lsolesen and authentictech might be to do something like this in page.tpl.php:

// page.tpl.php

<?php if ($title && $title != "donotshow"): ?>
     <h1 class="title" id="page-title"><?php print $title; ?></h1>
<?php endif; ?>

To make this work, manually set the page title in Panels to "donotshow". This solution, however, is not compatible with modules that will display a set title, Panels Breadcrumbs, for example. As the title of this post suggests, it would be very nice to have this functionality native to Panels.

Evoksha
Marketing, Strategy, and Information Technology
www.evoksha.com

jwilson3’s picture

Issue summary: View changes

If someone were so inclined, they could take the patch at #2262173: Allow users to manually control window title. and expand upon it to add the "From pane" functionality to the new window title field introduced in that patch, which would probably satisfy this use case (eg, set Page title to [None], set Window title to [From Pane]).