Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295807

Move taxonomy term RDFa markup inside title_suffix (similar to the edit and node markup)

$
0
0

Updated: Comment #N

Problem/Motivation

rdf_preprocess_taxonomy_term() adds its metadata RDFa markup to the <head> element of the HTML document. In #1323830: Place title RDFa metadata inside entity HTML element we established that it was better to place this markup inside the entity output itself, in the wrapping element and in title suffix.

Proposed resolution

Follow a similar approach as the one used in rdf_preprocess_node(), place the taxonomy term type (@typeof) and term url (@about) on the wrapping HTML element, and the term name (@property) in a metadata element attached to title_suffix.

In the end, we should end up with these 3 variables set:

<?php
$variables
['attributes']['about'] = ...
$variables['attributes']['typeof'] = ...
...
$variables['title_suffix']['rdf_meta_title'] = ...
?>

Remaining tasks

patch

User interface changes

n/a

API changes

n/a


Viewing all articles
Browse latest Browse all 295807

Trending Articles