<div dir="ltr">Hello everybody,<br><br>I'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>||'''Nom fichier :'''\\<br>
(:input text nom size=80 value="{$Today}-":) ||||<br>||'''Titre actu :'''\\<br>(:input text titre size=80:) ||||<br>||'''Date actu :'''\\<br>(:input text date size=30:) ||||<br>
||'''Résumé actu :'''\\<br>(:input text sujet size=80:) ||||<br>||'''Article :''' (:input textarea texte cols=80 rows=30:) ||||<br>(:include Site.BalisesEssentielles:)<br>||'''Catégories :'''\\<br>
(:input text cat size=50:) ||||<br>||'''Source actu :'''\\<br>(:input text source size=50:) ||||<br>||'''Posteur :'''\\<br>(:input text author value="{$Author}" size=30:) {$Captcha} (:input captcha:) ||||<br>
(:fieldsetend:)<br><br>(:fieldset :)<br>||(:input submit preview 'Prévisualiser':) (: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>>>div1 actu<<<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>>>div1end<<[[#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'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'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'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's wrong here and what's needed ?<br><br>Thank you !<br><br>Gillles (gb)<br clear="all"><br><br>
</div>