Imágenes dentro de la función l de Drupal
Submitted by oskar on Mar, 23/06/2009 - 10:54
Por fin, después de mucho pegarme he sacado una forma límpia de meter imágenes dentro de la función l de Drupal, como lo he logrado.
<?php
print l (
'<img class="mceItem, tdt" title="tiulo" src="'. base_path().file_directory_path().'/1/imagen.png" alt="alt" />',
'node/16',
array('attributes' => array ('title'=> t('titulo'),'alt'=> t('alt')), 'html'=>TRUE)); ?>Un saludo
Oskar
Trackback URL for this post:
http://www.documentados.com/trackback/251

. Configuración y administración del sitio
probaste en usar theme_image?
para no tener que usar el tag
<img />http://api.drupal.org/api/function/theme_image/6
Enviar un comentario nuevo