Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/02/2010, 12:27
Avatar de luismiramos
luismiramos
 
Fecha de Ingreso: agosto-2009
Mensajes: 37
Antigüedad: 14 años, 8 meses
Puntos: 0
Respuesta: Aspecto del formulario de entrada de dato

Tu método tiene mejor pinta, pero no consigo que me funcione

Mi tema: aurora
Mi tipo de contenido: iniciahoja

He añadido a mi template.php

function aurora_theme(){
return array('iniciahoja_node_form' => array('arguments' => array('form' => NULL),'template' => 'iniciahoja-node-form'), );
}

function aurora_preprocess_iniciahoja_node_form(&$vars){
$vars['input_descripcion'] = drupal_render($vars['form']['body_field']);
$vars['botones'] = drupal_render($vars['form']['buttons']);
$vars['links_render'] = drupal_render($vars['form']);
}

He creado un archivo iniciahoja-node-form.tpl.php en el que incluyo:

<table>
<tr><td><?php print $input_descripcion; ?></td></tr>
<tr><td><?php print $botones; ?></td></tr>
</table>



* warning: include(./themes/aurora/node-iniciahoja-edit.tpl.php) [function.include]: failed to open stream: No such file or directory in C:\PHP\www\gestion\includes\theme.inc on line 1020.
* warning: include() [function.include]: Failed opening './themes/aurora/node-iniciahoja-edit.tpl.php' for inclusion (include_path='.;C:\PHP\\php5\pear\') in C:\PHP\www\gestion\includes\theme.inc on line 1020.



¿¿¿???? no se que hago mal

Última edición por luismiramos; 27/02/2010 a las 14:16