As I suspected, this is caused by the fact that the field name contains a
space, and is the result of that patch for templates with period names that
was added in version 1.3.7 and then removed and added a few times since. I
have a solution that I think fixes it; though I wouldn't be entirely
surprised if it causes some new problems of its own. Anyway, this will go
into the next version, but for now you can fix it yourself by replacing line
639 of /includes/SF_FormPrinter.inc with:
              $escaped_input_name = str_replace(' ', '_', $input_name);
              $generated_page_name = str_ireplace("<$escaped_input_name>",
$cur_value_in_template, $generated_page_name);

-Yaron


On Thu, Dec 18, 2008 at 6:11 PM, Graeme Bishko <gbis...@gmail.com> wrote:

> I'm not sure if I changed something or this just happened in a recent
> upgrade but the form I'm using below no longer gets the right title. For
> some reason the first field (quote title) is ignored and the article title
> comes up as "- <Book quote[book]> by <Book quote[author]>" only
>
> I'm using
>
> *Semantic Forms 
> <http://www.mediawiki.org/wiki/Extension:Semantic_Forms>(Version 1.3.9)
>
> **Semantic MediaWiki <http://semantic-mediawiki.org/> (Version 1.5b-SVN)
>
>
> *
> <noinclude>
> This is the 'Book quote' form.
> To add a page with this form, enter the page name below;
> if a page with that name already exists, you will be sent to a form to edit
> that page.
>
> {{#forminput:Book quote}}
>
> </noinclude><includeonly>
> {{{info|page name=<Book quote[quote title]> - <Book quote[book]> by <Book
> quote[author]>}}}
> {{{for template|Book quote}}}
> {| class="formtable"
> ! Quote title:
> | {{{field|quote title}}}
> |-
> ! Book:
> | {{{field|book|autocomplete on property=Book Titles}}}
> |-
> ! Author:
> | {{{field|author|autocomplete on property=Authors}}}
> |-
> ! Wmdsays:
> | {{{field|wmdsays|input type=textarea|rows=5}}}
> |-
> ! Pages:
> | {{{field|pages}}}
> |-
> ! Extract:
> | {{{field|extract|input type=textarea|rows=30}}}
> |-
> ! Online source:
> | {{{field|online source}}}
> |-
> ! Link:
> | {{{field|link}}}
> |-
> ! Alt pagename:
> | {{{field|alt pagename}}}
> |-
> |}
> {{{end template}}}
>
> '''Free text:'''
>
> {{{field|free text}}}
>
>
> {{{standard input|summary}}}
>
> {{{standard input|minor edit}}} {{{standard input|watch}}}
>
> {{{standard input|save}}} {{{standard input|preview}}} {{{standard
> input|changes}}} {{{standard input|cancel}}}
> </includeonly>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to semantic-forms@googlegroups.com
To unsubscribe from this group, send email to 
semantic-forms+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to