How add object with custom main node?

How add object with custom main node?

Saturday 08 April 2006 1:00:18 am - 1 reply

Author Message

Andrey PAA

Saturday 08 April 2006 1:13:29 am

P.s.

code of "add button":

{* Grab main category. *}
{let children=fetch( content, tree,
        hash( parent_node_id, $view_parameters.root,
	      class_filter_type,  'include',
              class_filter_array, array( '33' )  ) )
}

{* $children *}{* LOOP: For each child of the node... *}
{foreach $children as $child}
    {* node_view_gui view=line content_node=$child *}
    <form method="post" action={"/content/action"|ezurl}>     
    <input type="hidden" name="NodeID" value="{$child.node_id}" />     
    <input type="hidden" name="ClassID" value="31" />     
    <input type="submit" name="NewButton" value="{'Create here'|i18n('design/standard/node/view')} in {$child.name|wash}" />   
    </form><br />
{/foreach}

{* End of namespace. *}
{/let}

and this code i dont't want to change

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.