Greetings,

Does anybody know how I can modify my meta tags on panel pages? I've tried to find this information and am not finding very much about it. Surely, I'm overlooking something obvious. I tried to use page title and meta tag modules and none of them seem to be able to override panels page meta tags. Any help would be appreciated. Thanks. K

Comments

ethanre’s picture

I'm having the same exact issue. Using panels 3. The 'title' tag in the head seems to be empty.. I cannot figure how to have a panel page (admin/build/pages/edit-panel-page/..) show the title in head. I tried adding content with titles and tried many settings, also used the page title module (admin/content/page_title) and setup the Pattern for Panel but nothing is working. The head title works on other content pages.

Help plzz

pyxio’s picture

I ultimately ended up switching back to straight views pages. Not only were the meta tags too difficult. But more links and pagers were next to impossible to deal with. I keep panel pages only for my homepages and mode override pages. In this case, you can easily handle your meta tags with the meta tags module and the titles by path module. Don't ask me why they work without a problem on node override panels and not on other types of panel pages. Good luck. K

ethanre’s picture

Good advise, I will try it. I can see a lot of problems though with using views over panels. IMHO it sucks that panels are not handling header title, like panels 2 used to. I hope this gets fixed. Thanks

pyxio’s picture

more perplexing yet is how to create page title meta tags for taxonomy term pages. i'm using the taxonomy term view override and can't solve it. it seems crazy that things as basic as meta tags are so difficult. do you know how to accomplish this? i simply can't go-live without figuring out how to get control of my meta titles and descriptions globally. K

merlinofchaos’s picture

It seems like you should be asking about that in the meta tags module, not Panels. Panels doesn't do anything for metatags.

pyxio’s picture

it seems to me that any module that generates complete pages with paths should have something to do with controlling the meta tags within the pages they generate. if the only way to control meta tags for views or panel pages is a 3rd party module than i guess anybody with panel or views pages is out of luck because no module exists that solves the problem. The meta tag module module at least enables you to get the meta description in there. But as far as the all important meta page title is concerned, there is no solution. i am surprised this is not a more common issue. how difficult would it be to have this possibility in a view or panel?

merlinofchaos’s picture

As near as I can tell, meta tag info is more or less overrated. Search engines don't really give it that much credit and that's the only thing that sees it. So while there are a few people who care about it, it just isn't something that Drupal supports by default, and it's not something I've really cared too much about.

dzazi’s picture

The page title and description meta tags are very important for SEO. Keywords not so much.

The page title is one of the most important factors to optimise on a page... it shouldn't necessarily be the same as the default pattern throughout the site. It's also the biggest thing a user sees in search engine results.

The description is important because google defaults to it preferentially as the snippet displayed in search resuilts, particularly if the keywords are in it, and again, it's not necessarily the 1st content on the page.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

The page title is set by Drupal and the theme layer, there really isn't anything Panels can do about it. This is one reason that there are dedicated modules to do things like that. I realize you think this is important but it's not something that every module can really control without core or some centralized module making it actually work.

greenc’s picture

moved

clashar’s picture

it's only now, that I encounter the same problem. Strange that panels seem to be powerful but not really. I just needed to add some tags...

joecanti’s picture

I ran into this problem a few months ago, but found a way around it - here is a quote from a previous post:

"This is no longer a problem for me - I solved it by learning to use panels better...

When using panels node template, all the useful SEO stuff comes from the node, so you can use page title and nodewords coupled with panels excellent layout features...But when using 'panel pages' you cannot add in this extra data...

This seems to be the issue here - for someone only using panel pages to write their content, this is a big issue because there is nowhere to input their meta data etc, but for someone using panels to create templates to display nodes, this really isnt an issue because everything is carried accross from the node including all nodewords and page title data.

For SEO minded people, the best way to use panels is to use the node template/tax template features and set up variants for different content types and selection rules. This is a much more dynamic way of using panels, and also avoids the duplicate content you get when you insert a node into a panel page"

Hope this helps, Joe

PS this was the original issue: http://drupal.org/node/491148

sagitta’s picture

i found a module seems to fix this problem
http://drupal.org/project/nodewords_pagetitle

Aqua123’s picture

Instead of all that just use the "custom pages" meta tag option for the nodewords module. This worked fine for my panel page.

drahman’s picture

Yes, meta tags, specifically the Title and Description tags, are VERY important!

ashish.verma85’s picture

install nodewords module.
then go to '/admin/content/nodewords/custom/add'.
here you can add tags and keywords for the front page as well as for the custom pages.

-Ashish

kristofferrom’s picture

@ashish.verma85: Do you know of a drupal 7 way to add those? The meta tag module (nodewords for d7) doesn't seem to be able to do it...

ashish.verma85’s picture

Hello.

I D7 go to admin/config/search/metatags there you will find "Global: Front page" override that" and you will be able to put tags and descriptions.

Thanks
Ashish

craigtockman’s picture

This is my solution for adding meta tags descriptions to panel pages:

Add a new custom content panel to your page.
Set the text format to php and insert the following:

<?php
$node = node_load(%node:nid); //get node variables
$text = $node->body['und'][0]['value']; //get the body value
$insert = substr(strip_tags($text), 0, 160); //Remove html tags and trim to 160 characters
$insert = preg_replace('/[\s]+/',' ',$insert); //Remove extra white spaces

$meta_description = array(
           '#type' => 'html_tag',
           '#tag' => 'meta',
           '#attributes' => array(
           'name' => 'description',
           'content' => $insert //build meta tag
 ));
 drupal_add_html_head($meta_description, 'taggedy_tag'); //put meta tag in head
?>

This will grab the first 160 characters of the body value and add it to a meta tag description in your head.

bessonweb’s picture

Hi,

With "meta tags" module and "context" (by path) it's ok but you must to disable the "page title" module firt.

These modules are in conflict.

brickowski’s picture

^^ thanks besky, that was just the tip I needed about disabling Page Title. Meta Tags plus Context (by path) appears to work great now.