aggiungere xmlns sul tag html
Ciao ho un dilemma a cui non trovo risposta,
se io volessi aggiungere tramite funzione php questa riga xmlns:fb="http://www.facebook.com/2008/fbml" all' interno del tag come faccio??
Grazie
Ciao ho un dilemma a cui non trovo risposta,
se io volessi aggiungere tramite funzione php questa riga xmlns:fb="http://www.facebook.com/2008/fbml" all' interno del tag come faccio??
Grazie
Risposte
Quale tag html di quale
Quale tag html di quale pagina? Stai usando un editor WYSIWYG o nulla di tutto ciò? Il formato del testo è quello corretto?
La sfera di cristallo, per questa settimana, è in riparazione...
Ciao ciao.
il tag di apertura della
il tag di apertura della pagina html.
!DOCTYPE html PUBLIC
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
Questo?
O questo?
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" dir="ltr"
Allora: sulla' html del mio
Allora:
sulla' html del mio sito c'è :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" version="XHTML+RDFa 1.0" dir="ltr"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:og="http://ogp.me/ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:sioct="http://rdfs.org/sioc/types#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
vorrei aggiungere nel tag html questa stringa:
xmlns:fb="http://www.facebook.com/2008/fbml"
però vorrei aggiungerla implementandola nel file template.php del mio tema.
Sapreste dirmi come fare ?
grazie mille
Ciao, è possibile
Ciao, è possibile implementare l'hook "hook_rdf_namespaces" (http://api.drupal.org/api/drupal/modules--rdf--rdf.api.php/function/hook...) per aggiungere un nuovo namespace, ma lo puoi fare con un modulo aggiuntivo.
In alternativa, dal template potresti richiamare template_preprocess_html(&$variables) e modificare l'elemento rdf_namespaces così:
function template_preprocess_html(&$variables) {
$variables['rdf_namespaces'] .= "\n" . 'xmlns:fb="http://www.facebook.com/2008/fbml"';
}
grazie sei un mito !!
grazie sei un mito !!
(Nessun soggetto)