Closed (fixed)
Project:
Panels
Version:
7.x-3.0-alpha3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2011 at 03:42 UTC
Updated:
9 May 2012 at 18:40 UTC
Hi,
There seems to be an issue with the dc:title meta tag that the RDF module populates. I am currently getting:
<meta content="" about="/about-us" property="dc:title" />
In my page source. I debugged into the module and found on line 487 $variables['title'] is used. That key doesn't even exist in my variables array which is of course what causes the empty content attribute. If I change it to call drupal_get_title() instead it works fine.
Is there something I need to change (like the weight of the rdf module) to make this work? I've tried playing around with module weights but it didn't help at all.
Cheers,
Adam
Comments
Comment #1
scor commentedCan you give more details on how to reproduce this bug? what content type is the about us page? is it a fresh Drupal 7 site, or ported from Drupal 6? are you using contributed modules? you should not have to change the weight of the rdf module.
Comment #2
acbramley commentedThe content type is just a plain page (I believe it is custom though, not the "page" type that you get out of the box). It's a fresh Drupal 7 site with many contributed and a few custom modules. The site is using a custom install profile (we are using this as a platform for Aegir).
I don't really know the exact steps to reproduce this problem because the title tag is empty on all of my content.
Comment #3
scor commentedwhat contrib modules do you have enabled?
Re exact steps to reproduce, could you try to reinstall your site and reproduce the same bug, and then tell me how you installed it, what modules you enabled etc...
Comment #4
acbramley commentedI have a lot of contrib modules enabled, I have a feeling the one that may be causing this is Panels as I know there's a problem with Ctools and page titles. On a fresh install of Drupal 7 with no contrib modules enabled the dc:title populates fine.
I will start disabling contrib modules from my previous install and see if I get any luck.
Comment #5
acbramley commentedWell that didn't take long, just disabling the panels node override fixed this. I need to have panels enabled though, any ideas how I could get around this?
Comment #6
scor commentedthanks, I'll take a look and try to reproduce this bug with Panels.
Comment #7
scor commentednot being too familiar with panels, I'm not sure how to set it up to reproduce this bug. Please post the steps so I can reproduce. What panels module did you enable, and what panels settings did you use?
Comment #8
acbramley commentedAfter a fresh install:
1) Enable panels, ctools, and page_manager modules
2) Navigate to admin/structure/pages
3) Enable the node_view page
4) Edit the node_view page and follow through the steps to create a variant (just use basic 1 column layout)
5) Once you get to the Panel Content tab enter %node:title into the title text box
6) Click the cog in the top left corner of the "middle content" block and select add content, choose the node tab, click Node content, change the build mode to Full Content and hit finish.
7) Click Create Variant and then Update & Save
After this, create some content and view the page source. You will see an empty dc:title meta tag.
Comment #9
scor commentedI can reproduce. something in panels is emptying the node title before it is sent to MODULE_preprocess_HOOK() - in this case rdf_preprocess_node().
Comment #10
merlinofchaos commentedThere is a checkbox in the node content pane to control whether or not the title is emptied.
Comment #11
acbramley commentedThanks, fixed the issue perfectly.
Comment #12
Yura Filimonov commentedCould someone show me, where the checkbox not to empty the title is located?
I've checked it here:
admin/structure/pages/edit/node_view
but there are no checkboxes.
Checkboxes in individual panels don't solve the problem (the empty title is in a block).
Thanks.
Comment #13
Yura Filimonov commentedForgot to change status to make it more visible.
Comment #14
Letharion commented@#12: each pane has a "Override title" checkbox. If you don't check that one, Panels will leave whatever title there is alone.
If you don't have that one checked, the block in question doesn't output a title in the first place.
Comment #15.0
(not verified) commentedfix code