Schema and Microdata: How to add field content = myurlimage and Itemid = id_url in slideshow.tpl.php file?
Hi there
I'm adding directly in code: Schema Microdata and my website, but I have two problems:
1- I want to show the URL of my images in the slideshow.tpl.php module. I need only include the URL of the image in "content = url my first picture
As shown below:
I tried these codes php but without success:
<?php
print render($content['field_image']);
?><?php
echo render(file_create_url($node->field_image['und'][0]['uri']));
?>thanks for your help
Read moreSchema y Microdata: ¿Cómo agregar campo content= e itemid= en archivo .tpl.php?
Hola
Estoy añadiendo a mano Schema y Microdata a mi sitio web pero me topo con dos problemas:
1- Quiero reproducir la url de mis imágenes en slideshow.tpl.php. Sólo me falta incluir en content= la url de mi primera imagen cómo se muestra abajo:
Intenté con estos códigos php pero sin éxito:
<?php
print render($content['field_image']);
?><?php
echo render(file_create_url($node->field_image['und'][0]['uri']));
?>Implementar microdata y schema con Display Suite
Hola... Gracias por el apoyo de antemano
Intento implementar microdata y schema en mi sitio web pero encontré una incompatibilidad con Display Suite que impide ejecutar el módulo de Drupal de Microdata. Use todos los parches existentes pero no tengo éxito.
Modifique manualmente la plantilla en node.tpl.php, page.tpl.php y logre añadir el richmedia para el titular pero nada más..
¿Hay alguna forma de hacerlo sin pasar por lo anterior? Encontré que algunos experimentaban con template.php y hook... Esperaría una guía al respecto
Gracias
Read moreMódulo RDF por defecto ¿necesario? porque genera código extraño según test Rich Media de Google
Buenas tardes amigos...
Estaba usando el módulo RDF que viene por defecto con Drupal, pero al hacer el test de Rich Media vía http://www.google.com/webmasters/tools/richsnippets encuentro demasiados códigos raros como prefLabel (child), Concept, etc, (adjunto captura).
Indagando observé que proviene del campo de tags que es afectado por defecto por el código RDF, cuando desactivo el módulo RDF se borran esos códigos molestos en el test de Rich Media.
Pensaba yo que era la plantilla, pero usé incluso la plantilla por defecto de Drupal y sigo recibiendo el mismo código raro.
Read moreFelmeddelande från modulen Schema
Jag får dessa konstiga felmeddelanden, som jag inte vet hur jag skall göra för att lösa problemet:
Field drup_field_data_field_date.field_date_value: no Schema type for mysql type datetime.
Field drup_field_data_field_date.field_date_value2: no Schema type for mysql type datetime.
Field drup_field_revision_field_date.field_date_value: no Schema type for mysql type datetime.
Field drup_field_revision_field_date.field_date_value2: no Schema type for mysql type datetime.
field_data_field_date.field_date_value: no type for Schema type datetime:normal.
problema con hook_schema()
hola señores y señoras, tengo un problema con el hook_schema(), estoy creando un modulo para un sitio y necesito crear una tablar para guardar los datos, al activar el modulo no se porque pero no se esta creando la tabla, aqui les dejo el codigo:
<?php
function mymodule_install() {
drupal_install_schema('mymodule');
}
function mymodule_uninstall() {
drupal_uninstall_schema('mymodule');
}
function mymodule_schema() {
$schema['mymodule'] = array(
'fields' => array(
'rid' => array(
'type' => 'int',
Schema sample please
Hello,
First please excuse me if the answer was easily reachable but I've looked at the group first 5 preview pages and did a search on schema
which yielded the same preview as default so I assumed it this was the default behavior when keywords failed to bring results.
Integrating custom types (with custom schema) with CCK
I am currently producing a "family" of modules designed to manage a hosting infrastructure (email, dns, ftp, etc). I am cruising along, but keep coming back to one big stumbling block ... the role of CCK in my module. From a technical stand-point, I don't have a compelling need to use CCK (I'm happy to code up what needs to be coded), but it's clear that from a "best practice" perspective (and honestly, from a quality assurance & maintainability perspective), utilizing CCK as much as possible is a "good thing."
Among others, I have the following content types:
Customer
Domain
Criando Drupal Schema pelo MySQL Workbench
Sempre me dá calafrios quando preciso escrever o schema das tabelas para usar no drupal nos meus módulos. Como não é possível decorar todas os data types do schema do drupal, é preciso ficar olhando a documentação o tempo todo ou seja, sempre é um porre escrever esta parte do módulo.
A MySQL AB criou, já a algum tempo, um modelador de banco de dados chamado MySQL Workbench e já esta bem usável.
Read moreraSANTIAGO scripts: stuck on something
I'm trying to deal w/ script "2_person_groups.sql" and I'm having a devil of a time getting through parts of this one (and I'm sure it'll happen again later on too).
I don't understand why there's a line CONCAT("Facil import: tblPerson.PersonID=", PersonID) AS description, -- it seems to me that this pulls in a user ID number from a member and uses it as the group description. But that line makes sense in a subsequent script, so I think it might be an error due to copy and paste.
Also, the script doesn't work, at least for me at Boston.
Read more


