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

scor’s picture

Can 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.

acbramley’s picture

The 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.

scor’s picture

what 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...

acbramley’s picture

I 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.

acbramley’s picture

Well 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?

scor’s picture

thanks, I'll take a look and try to reproduce this bug with Panels.

scor’s picture

Project: Drupal core » Panels
Version: 7.7 » 7.x-3.0-alpha3
Component: rdf.module » User interface

not 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?

acbramley’s picture

After 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.

scor’s picture

I can reproduce. something in panels is emptying the node title before it is sent to MODULE_preprocess_HOOK() - in this case rdf_preprocess_node().

merlinofchaos’s picture

There is a checkbox in the node content pane to control whether or not the title is emptied.

acbramley’s picture

Status: Active » Closed (fixed)

Thanks, fixed the issue perfectly.

Yura Filimonov’s picture

Category: bug » support

Could 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.

Yura Filimonov’s picture

Status: Closed (fixed) » Active

Forgot to change status to make it more visible.

Letharion’s picture

Status: Active » Fixed

@#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.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

fix code