I have a module that creates HTML output. Does it need to support the Drupal 7 RDF module?
What are the functions made available from the RDF module that allows a module to integrate with it? What hooks does the module use?
Tell me more
×
Drupal Answers is a question and answer site for
Drupal developers and administrators. It's 100% free, no registration required.
|
|
||||
|
|
|
Themes will work with the RDF module if they use the proper attributes variables. If you are generating HTML outside of the core theming (which seems unusual) system you will need to get this information yourself. The RDF mapping api is quite well documented. Essentially there is a mapping between fields and RDF. So a title field could have a mapping of dc:title. In summary
You can then add rdfa markup to the fields as you output them. edit If you are using standard theme functions, then so long as you stick to the D7 guidelines all of the RDF magic should be done for you. Specifically make sure that you use If you want to know how to define RDF mappings, then please ask more questions. |
|||||||
|