Monday 29 October 2007 6:29:45 am
Thank you for your anwser :) here is your code
<?php
include_once( 'lib/ezutils/classes/ezcli.php' );
include_once( 'kernel/classes/ezscript.php' );
$cli =& eZCLI::instance();
$script =& eZScript::instance( array( 'use-modules' => true ) );
$script->startup();
$options = $script->getOptions();
$script->initialize();
include_once ('lib/ezutils/classes/ezfunctionhandler.php');
include_once( 'kernel/common/template.php' );
$tpl = templateInit();
$node = eZFunctionHandler::execute( 'content','node', array( 'node_id' => 2) );
$object =& $node->object();
foreach( $object->contentObjectAttributes() as $contentObjectAttribute )
{
$datatypeString = $contentObjectAttribute->attribute( 'data_type_string' );
$tpl->setVariable( 'attribute', $contentObjectAttribute );
$cli->output( $tpl->fetch( 'design:content/datatype/view/' . $datatypeString . '.tpl') );
}
$script->shutdown();
?>
I am not sure that in my case it will work perfectly. Actually I have a "view" parameter
{node_view_gui content_node=$my_node view=link}
|