My apologies. In #569362: Document $attributes, $title_attributes, and $content_attributes template variables, I don't know why, but I missed thinking through that $content_attributes would also be needed. Patch coming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

effulgentsia’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Active
Issue tags: -RDF
FileSize
5.96 KB

It's really a no-brainer and I don't know how I missed it in the earlier issue. All the tpl file already have a div for the content, and that's the div that should be used for RDF attributes that describe the content of the entity as opposed to the entire entity. The current RDF patch gets around it by putting an extra div around the content where it needs it, but this way, we can remove redundant divs.

sun’s picture

Status: Active » Reviewed & tested by the community

Makes perfectly sense.

sun’s picture

Priority: Normal » Critical
Issue tags: +RDF
moshe weitzman’s picture

Priority: Normal » Critical
Status: Active » Reviewed & tested by the community
Issue tags: +RDF

+1 from me too

scor’s picture

Priority: Critical » Normal

I confirm this solves the intended issue. already committed as part of #493030: RDF #1: core RDF module

EDIT: I meant included for now in the patch #493030: RDF #1: core RDF module until this is committed.

sun’s picture

Priority: Normal » Critical

Slight confusion about the term "committed", I guess.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Looks good to me, committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)

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

scor’s picture

Status: Closed (fixed) » Needs review
FileSize
1.82 KB

The patch #1 didn't cover user-profile.tpl.php. Tests included.

scor’s picture

fix documentation

sun’s picture

+++ modules/rdf/rdf.test
@@ -187,4 +187,21 @@ class RdfMappingDefinitionTestCase extends DrupalWebTestCase {
+  function testAttributesInMarkup4() {

4?

+++ modules/rdf/rdf.test
@@ -187,4 +187,21 @@ class RdfMappingDefinitionTestCase extends DrupalWebTestCase {
+    $this->assertTrue(!empty($user_profile_about), t('RDFa markup found on user profile page'));
+
+  }

Please remove this blank line.

Powered by Dreditor.

scor’s picture

addressed sun's review.

sun’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Yay! The first RDF patch I understand! ;)

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -RDF

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