View Button

Author Message

Pavel Konovalov

Wednesday 15 November 2006 11:59:30 am

Hi 2 all!!
Help me please.
How can I create a button, so that viewing this object.

For example:
if I want edit my object, i use next construction:

<form enctype="multipart/form-data" method="post" action={"content/action/"|ezurl}>
...
    <input class="button" type="submit" name="EditButton" value="Edit"/>
...
</form>

Are you gangsters?!
No, we are Russians.

J-A Eberhard

Wednesday 15 November 2006 1:05:57 pm

For a create button, use this

{section show=count($node.object.can_create_class_list)}
  <form method="post" action={"/content/action"|ezurl}>
    <input type="hidden" name="NodeID" value="{$node.node_id}" />
    <select name="ClassID">
    {section var=class loop=$node.object.can_create_class_list}
     <option value="{$class.id}">{$class.name|wash}</option>
    {/section}
    </select>
    <input type="submit" name="NewButton" value="{'Create here'|i18n('design/standard/node/view')}" />
  </form>
 {/section}

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Pavel Konovalov

Thursday 16 November 2006 1:28:38 am

Hello J-A Eberhard!
Thank you for your reply, but I not had that in view.
I wish to create a button and after click on it I wish to view all attributes of my object.

Are you gangsters?!
No, we are Russians.

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