Forums / Developer / Feedback

Feedback

Author Message

Bienvenu Isaac Kanyinda

Friday 03 April 2009 4:54:15 am

I have a problem with the contact form on my site. I have used a feedback of ez for this form.
This conatact form does not.

Yet I put the node number of the container classe and the id of the feedback class. I am looking for help.

I say thank you in advance!

Petit poisson deviendra grand pourvu que Dieu lui prête vie.
Petit oiseau volera un jour de ses propres ailes pourvu que Dieu lui ajoute le nombre de jours sur terre.

justin kazadi

Friday 03 April 2009 5:59:11 am

Hi ,
can you show us your code(of your template)?
it is hard to say why this form don't works, perhaps you have an error in your code?

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Daniel Lopes

Friday 03 April 2009 6:46:30 am

Try this article.

http://ez.no/developer/articles/how_to_create_ez_publish_forms

hope that helps

Bienvenu Isaac Kanyinda

Friday 03 April 2009 6:57:22 am

 

{include name=Validation uri='design:content/collectedinfo_validation.tpl' class='message-warning'
                 validation=$validation collection_attributes=$collection_attributes}
                 
<div>
    <div class="long" style="padding-left:25px;">{$node.object.name}</div>
<br/><br/>
<div class="aide">      
<p>
Pour toute question, n'h&eacute;sitez pas &agrave; utiliser ce formulaire pour nous &eacute;crire. Merci de v&eacute;rifier que vous respectez <a href={"/Règles"|ezurl}>les r&egrave;gles</a>.
</p>
</div>
<div class="aide">
               	<form method="post" action={"content/action"|ezurl}>
        <p class="help" ><br/><center>Tous les champs sont obligatoires.</center><br/></p>
        <p><br/>
            <label for="field_896">Adresse e-mail&nbsp;*:</label><br/>
            
            <input class="text" type="text" id="field_896" size="58" name="ContentObjectAttribute_data_text_896" value="" /> 
            {$node.data_map.email.contentclass_attribute.name}
            {attribute_view_gui attribute=$node.object.data_map.email}       
            </p>
        <p>
            <label for="field_670">Sujet&nbsp;*:</label><br/>
            <input class="text" type="text" id="field_670" size="58" name="ContentObjectAttribute_ezstring_data_text_670" value="" />       
             {$node.data_map.email.contentclass_attribute.name}
             {attribute_view_gui attribute=$node.object.data_map.subject} 
             </p>
        <p>
            <label for="field_671">Texte&nbsp;*:</label><br/>
            <textarea class="box" name="ContentObjectAttribute_data_text_671" id="field_671" cols="45" rows="10">
            </textarea> 
            {$node.data_map.email.contentclass_attribute.name}
            {attribute_view_gui attribute=$node.object.data_map.message}       
        </p>
        
        <p>
            <input type="hidden" name="ContentNodeID" value="169" />
            <input type="hidden" name="ContentObjectID" value="46" />
            <input type="hidden" name="ViewMode" value="full" />
            <input type="submit" class="button" value="Envoyer" name="ActionCollectInformation" />
        </p>
        </form>
</div>
</div>
 

Thank you justin!

Here is my template code contact:

It is also true that there can there be a mistake. I try to find the solution to the time I'm posting this message. And in the evening I'll post later. Despite this support from the family ez is always important.

Thank you and a +

Petit poisson deviendra grand pourvu que Dieu lui prête vie.
Petit oiseau volera un jour de ses propres ailes pourvu que Dieu lui ajoute le nombre de jours sur terre.

justin kazadi

Friday 03 April 2009 7:05:08 am

Hi,
you are in full view
i think you have an error on this line

<input type="hidden" name="ContentNodeID" value="169" />
<input type="hidden" name="ContentObjectID" value="46" />

replace it by this code an try

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />

i think can help you.
good luck.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

justin kazadi

Friday 03 April 2009 7:23:44 am

Hi,
with this

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />

you are sure that you use the good

 node_id and
 object_id

but if you read this link like mentionned by Daniel Lopes

http://ez.no/developer/articles/how_to_create_ez_publish_forms

you will see this

Under this method, the user’s input becomes part of the website as an object in the eZ Publish content node tree. An example of this is creating a new Comment object beneath an existing Article object (to be displayed when visitors view the article). For this to happen, the user must have the appropriate permissions to create the object at a given location within the content structure. Some other examples of this method are the Forum topic and Forum reply objects within an eZ Publish forum.

This approach may use eZ Publish workflows so that a site administrator must approve the user's object before it is visible on the website. 

so

 the user must have the appropriate permissions to create the object at a given 
location within the content structure

i think this can help you

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Bienvenu Isaac Kanyinda

Friday 03 April 2009 7:52:59 am

Hi Justin

It's going and I see in the back I received a contact. But the contact is empty.

Petit poisson deviendra grand pourvu que Dieu lui prête vie.
Petit oiseau volera un jour de ses propres ailes pourvu que Dieu lui ajoute le nombre de jours sur terre.

eZ debug

Timing: Jan 18 2025 16:21:16
Script start
Timing: Jan 18 2025 16:21:16
Module start 'content'
Timing: Jan 18 2025 16:21:17
Module end 'content'
Timing: Jan 18 2025 16:21:17
Script end

Main resources:

Total runtime0.8054 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.5313180.8516
Module start 'content' 0.00780.6928 768.3828654.2188
Module end 'content' 0.70060.1047 1,422.6016345.0859
Script end 0.8054  1,767.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4893210.0002
Check MTime0.00150.1850210.0001
Mysql Total
Database connection0.00120.144710.0012
Mysqli_queries0.721889.60962080.0035
Looping result0.00170.21272060.0000
Template Total0.778496.620.3892
Template load0.00190.238620.0010
Template processing0.776496.398120.3882
Template load and register function0.00010.012210.0001
states
state_id_array0.00070.086610.0007
state_identifier_array0.00070.092620.0004
Override
Cache load0.00170.2130540.0000
Sytem overhead
Fetch class attribute can translate value0.00100.127440.0003
Fetch class attribute name0.00090.1149100.0001
XML
Image XML parsing0.00180.219640.0004
class_abstraction
Instantiating content class attribute0.00000.0039140.0000
General
dbfile0.00320.3935390.0001
String conversion0.00000.000830.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs