I'm sure this has been discussed before, but I have searched everywhere for a solution without finding much.

I have a two column layout where the left column contains the node content and the right column related info, view panes etc...

The problem is that to get the node title to be within the <title> it seems I have to use the Title type above the regions. That means it will push both columns down and if the title is long it will also end above the right column. I want to avoid that as it is both looking bad and indicates that the right column is part of the individual nodes content.

Therefore I added the node->title object in the left region. But when viewing the node the title does not have the right html tags, and it is also not populating the <title>.

I have tried every possible combination of settings in panels, but I simply can't figure out how to do this.

If anyone can point me to a page where this is discussed, or even better a tutorial on how I can solve it I would be very happy.

Comments

tsvenson’s picture

While working on something else I found the Page element / Page title and tried adding that one in the region. Now the title was showing in the region with H1 tags and all.

Unfortunately it disappeared as soon as I changed the Title type to No title, thus it killed that possibility as well.

Is there no way I can get panel to both populate the title tag and use the proper H1 tag within a region?

merlinofchaos’s picture

Your node.tpl.php is capable of displaying the title. It might be easiest to put the h1 tag on the title in your node template for that region.

Another possibility is to theme the panels-pane.tpl.php, since the title of a pane is normally an h2, and put a conditional on that there. Ideally you could create a style plugin that themes a pane to use h1 as the title instead of h2, and then set that pane to use that style, but that might be going a little farther than you really need to.

tsvenson’s picture

I am planning to use custom node-[ct].tpl.php since I plan quite a bit of custom theming for the nodes.

Until I get down to that I suppose it will have to look the way it does. Not optimal, but it is OK for now.

merlinofchaos’s picture

Status: Active » Fixed

Probably about as fixed as this one can be in the queue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.