Hi,

Yes, making the "default=" parseable is a reasonable idea, and it'll
probably go into the next version.

In this case, though, maybe it would be better to just have that name/link
coded directly in the template, instead of settable via template/form
fields, given that you always want it to have a certain structure?

-Yaron
On Mon, Mar 8, 2010 at 6:11 AM, Connell, Nick (CIOK)
<nick.conn...@fao.org>wrote:

>  [SemanticForms v1.8.8]
>
> I found it useful in a form to have this syntax in a hidden field:
>
> {{{field|HasDetail|default={{SUBJECTPAGENAME}}_Detail }}}
>
> so I could effectively auto-generate a page name for additional details
> linked to a given page without the user being able to alter the name.
>
> To enable this I tweaked SF_FormPrinter.inc, changing line 538 to:
>
> $default_value = $wgParser->replaceVariables($sub_components[1]);
>
> so that it parsed & substituted variable values embedded in the default
> value clause.
>
> Cheers!
>
> Nick
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>


-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to