
<div id="node-title" class="view-field view-data-node-title">
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
SOLUCIÓN:
En este caso la vista es un calendario que muestra los titulos de los nodos creados cada día. El problema está que todos los titulos tienen el mismo id: node-title. Una solución es cambiar ese id. Por ejemplo junto a node-title poner el id del nodo al que se refiere..así no conincidirian!! Este cambio se realizara en los ficheros:
- calendar-day-node.tpl.php
- calendar-month-node.tpl.php
- calendar-week-node.tpl.php
<?php foreach ($fields as $field): ?> - <div id="<?php print $field['id'];?>"class="calendar-view-field view-data-<?php print $field['id']?>"> + <div id="<?php print $field['id'].'-'.$node->nid; ?>"class="calendar-view-field view-data-<?php print $field['id']?>"> <?php if ($field['label']): ?> <div class="view-label-<?php print $field['id'] ?>"><?php print $field['label'] ?></div> <?php endif; ?>
Comentarios
Enviar un comentario nuevo