Forums / Setup & design / another newbie question regarding forms

another newbie question regarding forms

Author Message

Per Arne Munthe

Thursday 03 June 2004 12:02:37 pm

Hi again.

I've tried for several days to get a grip on how to embedd a link to a form inside an article. I wouldn't be surprised if the solution is real simple, but whatever it is, it seams that i'm unable to grasp the idea.

Can anyone shed shome light on how to get this done ? What I want is :

- Have the typical "Click <i>here</i> to send a message" in the article
- Have a form appear after the user has clicked the link
- Get an email sent to me when the user presses send.

I'm sorry if this is a really simple thing to set up, but I can seem to get to grips with it.

regs,

peram

steve walker

Friday 04 June 2004 12:16:58 am

Peram,

You can put a link in an article using a syntax similar to:

<link href={concat("/content/view/full/"XXX/")|ezurl}>link text</link> - where XXX is the target node. Theres other variants on this.

As for creating a feedback form, there are some forum messages on this - I used the corporate template to nick files from, and to understand how its put together... You're going to need to make a 'feedback form' class which gathers the information you want, and then create an appropriate template to use that form.

It'll email the info to whatever admin email you put in the site.ini file.

Steve.

http://www.oneworldmarket.co.uk

Roy Bøhmer

Friday 04 June 2004 1:45:39 am

You should aslo read the docs http://ez.no/ez_publish/documentation/customization/components/form_processing. I've turned it into a custom module (extension). In that way you can make just the functionality you want.

eZ debug

Timing: Jan 31 2025 04:23:47
Script start
Timing: Jan 31 2025 04:23:47
Module start 'content'
Timing: Jan 31 2025 04:23:47
Module end 'content'
Timing: Jan 31 2025 04:23:47
Script end

Main resources:

Total runtime0.1502 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0469180.8281
Module start 'content' 0.00710.0051 768.875093.7891
Module end 'content' 0.01220.1380 862.6641522.5781
Script end 0.1502  1,385.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.2456200.0002
Check MTime0.00140.9267200.0001
Mysql Total
Database connection0.00080.507810.0008
Mysqli_queries0.108872.42441410.0008
Looping result0.00100.69381390.0000
Template Total0.137691.610.1376
Template load0.00080.533810.0008
Template processing0.136891.059910.1368
Override
Cache load0.00060.368810.0006
Sytem overhead
Fetch class attribute can translate value0.00100.645710.0010
XML
Image XML parsing0.00030.185710.0003
General
dbfile0.00432.8448200.0002
String conversion0.00000.006030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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