Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Can anyone provide instruction to doing a template override to nodes to may the submitted by username include the rel="author" attribute?
Google is recognizing this attribute in search results but drupal doesn't allow this by default in versions 7 and prior. Is there a way to do this in the theme without screwing up any of the core rdf metadata?
Thanks!
Comments
Comment #1
Cellar Door CreditAttribution: Cellar Door commentedTo override a template, locate the .tpl file in the omega core you want to edit and copy/paste into your subtheme's template file. You can then add the markup and it'll take. Shouldn't have any effect on the other RDF data.
Comment #2
AlexanderPop CreditAttribution: AlexanderPop commentedhttp://drupal.org/node/1444856
Comment #3
scor CreditAttribution: scor commentedFor the record
rel="author"
is compatible with RDFa. Leaving this issue open in case the maintainers want to support that in omega, #1444856: D7: how to add rel="author" to the "Submitted by" link? shows some examples.Comment #4
apmsooner CreditAttribution: apmsooner commentedI actually stole some code from adaptive theme and put it into my template.php and it works great.
Comment #5
apaderno