From: trueskew <tru...@gm...> - 2010-08-25 22:15:42
|
One more thing... if a user uses a First and Last name that already had a page created this way, the old page will get overwritten when the new page gets saved. I've put a warning on the top of the page saying that, but is there a more interactive form of protection (you're about to overwrite an existing profile, are you sure)? Or is that just the trade-off of using the one-step process for form creation? _____ From: trueskew [mailto:tru...@gm...] Sent: Wednesday, August 25, 2010 2:19 PM To: 'Sem...@li...' Subject: RE: [Semediawiki-user] Automatic Page Name from Form Got some great help from jdpond on the #semantic-mediawiki IRC channel (http://semantic-mediawiki.org/wiki/IRC_Channel). He has some sample code here: http://wiki.montcopa.org/TestWiki/index.php?title=JDPTest. For my specific case, the button link to open the form was: {{#formlink:form=Contributor|target=|link text=New Contributor|link type=button}} and my form needed the line {{{info|page name=<Contributor[First]> <Contributor[Last]> Contributor}}} For Template:Contributor with string fields {{{First|}}} and {{{Last|}}}. _____ From: trueskew [mailto:tru...@gm...] Sent: Wednesday, August 25, 2010 12:57 PM To: 'Adam' Cc: 'Sem...@li...' Subject: RE: [Semediawiki-user] Automatic Page Name from Form Thanks for the reply Adam. I've seen that entry, and didn't understand how to have it create a page with 3 form fields that haven't been filled in yet. In other words, I want the name created after their page is Saved, if that's possible. >> {{{FirstName|}}}_{{{LastName|}}}_{{{Building|}}}_Contribution _____ From: Adam [mailto:ada...@gm...] Sent: Wednesday, August 25, 2010 12:17 PM To: tru...@gm... Cc: Sem...@li... Subject: Re: [Semediawiki-user] Automatic Page Name from Form You're looking for the 'one-step' process. http://www.mediawiki.org/wiki/Extension:Semantic_Forms#The_one-step_process To open the form directly you use the #formlink parser function. Hope this helps. -Adam On Wed, Aug 25, 2010 at 11:16 AM, trueskew <tru...@gm...> wrote: I want to let a user enter information into a form and then name the form based on their entries. In one particular case, the name will be: {{{FirstName|}}}_{{{LastName|}}}_{{{Building|}}}_Contribution I know this or something like it has been written about as "just do this", but I'm having issues anyway. How would the link to open the form directly look (i.e. not [[Form:whatever]]), and then how would I save to that name? Thanks. - skew ---------------------------------------------------------------------------- -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |