Download & Extend

Add content_attributes variable for tpl files, so RDF can be implemented better.

Project:Drupal core
Version:7.x-dev
Component:theme system
Category:task
Priority:critical
Assigned:Unassigned
Status:closed (fixed)
Issue tags:RDF

Issue Summary

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.

Comments

#1

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.

AttachmentSizeStatusTest resultOperations
drupal-theme-content_attributes-608036-1.patch5.96 KBIdlePassed: 13488 passes, 0 fails, 0 exceptionsView details

#2

Status:active» reviewed & tested by the community

Makes perfectly sense.

#3

Priority:normal» critical

#4

+1 from me too

#5

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.

#6

Priority:normal» critical

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

#7

Status:reviewed & tested by the community» fixed

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

#8

Status:fixed» closed (fixed)

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

#9

Status:closed (fixed)» needs review

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

AttachmentSizeStatusTest resultOperations
608036_user_profile_attr_9.patch1.82 KBIdlePassed on all environments.View details

#10

fix documentation

AttachmentSizeStatusTest resultOperations
608036_user_profile_attr_10.patch1.94 KBIdlePassed on all environments.View details

#11

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

#12

addressed sun's review.

AttachmentSizeStatusTest resultOperations
608036_user_profile_attr_12.patch1.95 KBIdlePassed on all environments.View details

#13

Status:needs review» reviewed & tested by the community

Thanks!

#14

Status:reviewed & tested by the community» fixed

Yay! The first RDF patch I understand! ;)

Committed to HEAD.

#15

Status:fixed» closed (fixed)

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

nobody click here