<div dir="ltr">Hello everybody,<br><br>I&#39;m in trouble with Fox Coobook and I need some (basic) help.<br>My goal is to build a News Group with a page including form (write, preview and post) and another page for the template.<br>
And I want all my news pages posted with the form being named : YYYY-MM-DD-some words.<br><br>So, here are my form and my template :<br><br>---form post news (using fox)---<br>(:nogroupfooter:)(:nosections:)<br><br>(:fieldset :)<br>
<br>(:fox formactu put=top template=Site.ActusMaquette target={$$nom} redirect=1 keepinput=1 pagecheck=1:)<br>||width=100% align=left border=0 cellpadding=5 cellspacing=5 <br>||&#39;&#39;&#39;Nom fichier :&#39;&#39;&#39;\\<br>
(:input text nom size=80 value=&quot;{$Today}-&quot;:) ||||<br>||&#39;&#39;&#39;Titre actu :&#39;&#39;&#39;\\<br>(:input text titre size=80:) ||||<br>||&#39;&#39;&#39;Date actu :&#39;&#39;&#39;\\<br>(:input text date size=30:) ||||<br>
||&#39;&#39;&#39;Résumé actu :&#39;&#39;&#39;\\<br>(:input text sujet size=80:) ||||<br>||&#39;&#39;&#39;Article :&#39;&#39;&#39; (:input textarea texte cols=80 rows=30:) ||||<br>(:include Site.BalisesEssentielles:)<br>||&#39;&#39;&#39;Catégories :&#39;&#39;&#39;\\<br>
(:input text cat size=50:) ||||<br>||&#39;&#39;&#39;Source actu :&#39;&#39;&#39;\\<br>(:input text source size=50:) ||||<br>||&#39;&#39;&#39;Posteur :&#39;&#39;&#39;\\<br>(:input text author value=&quot;{$Author}&quot; size=30:) {$Captcha} (:input captcha:) ||||<br>
(:fieldsetend:)<br><br>(:fieldset :)<br>||(:input submit preview &#39;Prévisualiser&#39;:) (:input submit post Poster:) ||||<br>(:fieldsetend:)<br>(:foxend formactu:)<br><br>(:foxpreview:)<br><br>---template news---<br>(:sujet:{$$sujet}:)<br>
(:title {$$date} - {$$titre}:)<br><br>&gt;&gt;div1 actu&lt;&lt;<br>!{$$date} # {$$titre} <br>posté par : [[~{$$author}]] le {$$(date d.m.Y - H:i)} | [[{=$FullName} | Lien]]<br>source : {$$source}<br>----<br>[[#texte]]{$$texte}<br>
----<br>{$$cat}<br><br>&gt;&gt;div1end&lt;&lt;[[#fin]]<br><br>At this time, my form is ok, and the preview action seems working as requested (fiels are merged with the template).<br><br>But I don&#39;t know how to do the Post action work according to my needs : when I click the Post button, a new page appears, with the {$$nom} as name, and that&#39;s all : the screens asks me to create the page (describe [$$nom} heure) : the name of the page is the only one data coming from the form, and the template hasn&#39;t been merged (to my mind).<br>
What I need is very basic I guess : I want the new page to be created with all the data I wrote in the form, merged with the template.<br>I tried many many tests, changing and changing some parameters (especially the «target») with no success.<br>
Can someone help me by telling me what&#39;s wrong here and what&#39;s needed ?<br><br>Thank you !<br><br>Gillles (gb)<br clear="all"><br><br>
</div>