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.

eZ debug

Timing: Jan 18 2025 20:52:58
Script start
Timing: Jan 18 2025 20:52:58
Module start 'layout'
Timing: Jan 18 2025 20:52:58
Module start 'content'
Timing: Jan 18 2025 20:52:58
Module end 'content'
Timing: Jan 18 2025 20:52:58
Script end

Main resources:

Total runtime0.0167 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.9219152.6094
Module start 'layout' 0.00660.0031 741.531339.3984
Module start 'content' 0.00970.0048 780.929789.4141
Module end 'content' 0.01450.0022 870.343834.3047
Script end 0.0166  904.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.7759140.0002
Check MTime0.00126.9640140.0001
Mysql Total
Database connection0.00116.342410.0011
Mysqli_queries0.002816.734830.0009
Looping result0.00000.107210.0000
Template Total0.001811.010.0018
Template load0.00095.592110.0009
Template processing0.00095.383410.0009
Override
Cache load0.00073.955810.0007
General
dbfile0.00021.403480.0000
String conversion0.00000.052940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs