In editing the node view panel I inserted the node content into the top panel. I edited it and checked "Leave node title". Believing that this caused the duplicate I went in and unchecked it, but still I have the two titles. I even deleted the pane, saved, and recreated it with the box unchecked. The extra title is still there.

Comments

scalp’s picture

Disregard. I found the extra "Display settings" tab on the content page and found where to hide the title. Excellent job with this module! So far it's been very easy to work with.

merlinofchaos’s picture

Status: Active » Fixed
Kutakizukari’s picture

Version: 6.x-3.0-beta1 » 6.x-3.0-beta2
Status: Fixed » Active

Where did you find this? Having the same problem but with beta2

Kutakizukari’s picture

Status: Active » Fixed

Never mind, right under my nose!

Status: Fixed » Closed (fixed)

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

rhache’s picture

Component: Display rendering » Code
Status: Closed (fixed) » Active

I've re-opened this issue because I wondering about this description text under the "Leave node title" option when changing the settings of the "node being viewed content".

Advanced: if checked, do not touch the node title; this can cause the node title to appear twice unless your theme is aware of this.

For my theme, for the title not too appear twice, I have to override the title and leave it blank. I was wondering exactly how the theme could be aware of panels, as to not duplicate the title or to respect the "leave node title" option. I'm assuming some kind of condition in the node tpl, but I don't know what that would be.

I'd like to know this for D6 or 7. If you can point to a theme that already has that support, let me know and I can figure it out from there.

Thanks,
Rene

seemas’s picture

he, here i have the same issue - and when i leave only 1 title - link still exist on the empty white place...
so this needs to review on panels module.

subscribing

merlinofchaos’s picture

Status: Active » Closed (fixed)

This happens in node.tpl.php where it prints $title, usually in an H2 or something. To be panels aware, the best thing to do is simply to have your template test to see if the title exists; if not, do not print the empty markup.

Another possibility would be to set the panel identifier to something (anything, really) and then in your node.tpl.php, test to see if $node->panel_identifier is set.

It doesn't appear there is a super easy way to tell if the node is being rendered directly from Panels, though, without doing one of those things.

#7: Since the empty link is rendered by node.tpl.php, there's nothing more Panels can do to control its rendering.

batandwa’s picture

Issue summary: View changes

The test for $title works fine for me.

debasisnaskar’s picture

If you have your own title tag into your particular tpl.php node then you can remove the title from the node.tpl.php to be printed or else make comment for same.

//print render($title_prefix);
if (!$page):

//print $title_attributes; >
print $node_url; "> //print $title;

endif;
// print render($title_suffix);
I hope it might work as I did it worked for me.