Button / link question..

Author Message

Bengt Skogly

Sunday 25 January 2004 7:59:33 am

This code makes a "Sign the guestbook" button, how can I make this to be just a link (doing the same thing as the button)?

<form method="post"
action={"content/action/"|ezurl}>
<input class="button"
type="submit"
name="NewButton"
value="Sign the guestbook" />
<input type="hidden"
name="ClassID"
value="18" />
<input type="hidden"
name="NodeID"
value="{$node.node_id}" />
</form>

Balazs Halasy

Monday 26 January 2004 2:21:49 am

It is unfortunately not possible to use link instead button in this case. You have to use a button since several parameters are to be sent from the browser to the server (hidden variables). According to Bård it might be possible to hack in a link using some magical Javascript code. Good luck!

Balazs

Claus Jensen

Monday 26 January 2004 3:23:15 am

Hello,
What you could do instead of a regular button is to "hide" your html-link as an "image-button", ie:
<input type="image" src="/design/user/images/go.gif" name="NewButton" />
Just make the go.gif look like your link. Its another workaround that works.

But what would be really neat is if one could choose to send variables into ez by GET query (i.e: http://ez.no/node/view/full/147?var=hello&name=world). I dont know why they have not made this possible, or maybe they have and its just I dont know how, but that would be real nice!

regards,
claÜs

Harry Oosterveen

Monday 26 January 2004 3:30:48 am

You can make it look like a link, using the stylesheet:

input.button {
background-color: transparent;
border: none;
color: #0000aa;
text-decoration: underline;
cursor: pointer;
}

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 31 2025 01:15:45
Script start
Timing: Jan 31 2025 01:15:45
Module start 'layout'
Timing: Jan 31 2025 01:15:45
Module start 'content'
Timing: Jan 31 2025 01:15:45
Module end 'content'
Timing: Jan 31 2025 01:15:45
Script end

Main resources:

Total runtime0.0229 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.0078151.1953
Module start 'layout' 0.00460.0035 739.2031220.6719
Module start 'content' 0.00810.0134 959.8750997.7578
Module end 'content' 0.02140.0014 1,957.632833.9922
Script end 0.0229  1,991.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.3567140.0002
Check MTime0.00104.5687140.0001
Mysql Total
Database connection0.00083.389310.0008
Mysqli_queries0.00188.041230.0006
Looping result0.00000.052010.0000
Template Total0.00104.410.0010
Template load0.00083.354010.0008
Template processing0.00021.050410.0002
Override
Cache load0.00052.272410.0005
General
dbfile0.00135.587980.0002
String conversion0.00000.020840.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