From: kghbln <med...@kg...> - 2011-04-06 13:04:43
|
Heiya, after upgrade to the latest version of SF I am experiencing the following strange behaviour: {{{field|ID|default={{PAGENAME}}|hidden}}} is properly picking up the ID from {{{info|page name=11<unique number;start=0001>|add title=create page|edit title=edit page}}} and creates the page 110001. The template is to pick up the ID via [[ID::{{{ID|}}}]] and to enter {{Templatename|ID={{PAGENAME}}}} . After the upgrade from 2.0.9 it enters {{Templatename|ID=Semantic Forms permissions test}}. I will appreciate your feedback. Cheers [[kgh]] |
From: Yaron K. <ya...@wi...> - 2011-04-06 13:26:18
|
Hi, I didn't really understand the issue (the subject line could have been more informative, too) - what is this template you're talking about? And does the problem show up in the displayed page, in the wiki-text, or in the form? -Yaron On Wed, Apr 6, 2011 at 9:05 AM, kghbln <med...@kg...> wrote: > Heiya, > > after upgrade to the latest version of SF I am experiencing the following > strange behaviour: > > {{{field|ID|default={{PAGENAME}}|hidden}}} is properly picking up the ID > from {{{info|page name=11<unique > number;start=0001>|add title=create page|edit title=edit page}}} and > creates the page 110001. The template is > to pick up the ID via [[ID::{{{ID|}}}]] and to enter > {{Templatename|ID={{PAGENAME}}}} . After the upgrade from > 2.0.9 it enters {{Templatename|ID=Semantic Forms permissions test}}. > > I will appreciate your feedback. > > Cheers [[kgh]] > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |
From: Stephan G. <f....@gm...> - 2011-04-06 13:27:14
|
>From SF 2.1.2 on the default parameter is parsed by the form. You are one of the very few who want the default parameter not expanded but verbatim transferred into the template. Try to replace {{PAGNAME}} by %7B%7BPAGENAME%7D%7D. -------- Original-Nachricht -------- > Datum: Wed, 06 Apr 2011 15:05:56 +0200 > Von: kghbln <med...@kg...> > An: sem...@li... > Betreff: [Semediawiki-user] SF 2.1.2 on MW 1.16.2 > Heiya, > > after upgrade to the latest version of SF I am experiencing the following > strange behaviour: > > {{{field|ID|default={{PAGENAME}}|hidden}}} is properly picking up the ID > from {{{info|page name=11<unique > number;start=0001>|add title=create page|edit title=edit page}}} and > creates the page 110001. The template is > to pick up the ID via [[ID::{{{ID|}}}]] and to enter > {{Templatename|ID={{PAGENAME}}}} . After the upgrade from > 2.0.9 it enters {{Templatename|ID=Semantic Forms permissions test}}. > > I will appreciate your feedback. > > Cheers [[kgh]] > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de |
From: Neill M. <ne...@nl...> - 2011-04-06 13:45:56
|
Hi. I've also noticed this. Having to replace standard MW {{PAGENAME}} with %7B%7BPAGENAME%7D%7D is going to cause a lot of confusion I think. Why can't the form parse standard MW markup? Any thoughts on not being able to blank fields that have a default set? I think this is a major regression and is causing major headaches. Cheers Neill. On 06/04/11 14:27, Stephan Gambke wrote: > > From SF 2.1.2 on the default parameter is parsed by the form. You are one of the very few who want the default parameter not expanded but verbatim transferred into the template. Try to replace {{PAGNAME}} by %7B%7BPAGENAME%7D%7D. > > -------- Original-Nachricht -------- >> Datum: Wed, 06 Apr 2011 15:05:56 +0200 >> Von: kghbln<med...@kg...> >> An: sem...@li... >> Betreff: [Semediawiki-user] SF 2.1.2 on MW 1.16.2 >> Heiya, >> >> after upgrade to the latest version of SF I am experiencing the following >> strange behaviour: >> >> {{{field|ID|default={{PAGENAME}}|hidden}}} is properly picking up the ID >> from {{{info|page name=11<unique >> number;start=0001>|add title=create page|edit title=edit page}}} and >> creates the page 110001. The template is >> to pick up the ID via [[ID::{{{ID|}}}]] and to enter >> {{Templatename|ID={{PAGENAME}}}} . After the upgrade from >> 2.0.9 it enters {{Templatename|ID=Semantic Forms permissions test}}. >> >> I will appreciate your feedback. >> >> Cheers [[kgh]] >> >> ------------------------------------------------------------------------------ >> Xperia(TM) PLAY >> It's a major breakthrough. An authentic gaming >> smartphone on the nation's most reliable network. >> And it wants your games. >> http://p.sf.net/sfu/verizon-sfdev >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: kghbln <med...@kg...> - 2011-04-06 13:58:31
|
Yeah, you got it but the solution provided does not work. However your response lead me to a simple solution for my problem. My form and template combination war too complicated and dates from my very early beginnings with SMW and SF. I now removed {{{field|ID|default={{PAGENAME}}|hidden}}} from the form and changed the template to pick up the page name created by the form to [[ID::{{PAGENAME}}]]. Voilà! Admittedly I am sSometimes am a bit too complicated in doing things whilst live could be so easy sometimes. :) @ Yaron: It is true that the subject line was a bit uninformative. I will improve. The problem occured in wikitext and on the template page belonging to the form, but not on the form itself. The strange thing though was that the queried value for the property was not Semantic Forms permissions test as shown on Special:Browse but the intended ID. Cheers [[kgh]] Am 06.04.2011 15:27, schrieb Stephan Gambke: > > From SF 2.1.2 on the default parameter is parsed by the form. You are one of the very few who want the default parameter not expanded but verbatim transferred into the template. Try to replace {{PAGNAME}} by %7B%7BPAGENAME%7D%7D. > > -------- Original-Nachricht -------- >> Datum: Wed, 06 Apr 2011 15:05:56 +0200 >> Von: kghbln<med...@kg...> >> An: sem...@li... >> Betreff: [Semediawiki-user] SF 2.1.2 on MW 1.16.2 >> Heiya, >> >> after upgrade to the latest version of SF I am experiencing the following >> strange behaviour: >> >> {{{field|ID|default={{PAGENAME}}|hidden}}} is properly picking up the ID >> from {{{info|page name=11<unique >> number;start=0001>|add title=create page|edit title=edit page}}} and >> creates the page 110001. The template is >> to pick up the ID via [[ID::{{{ID|}}}]] and to enter >> {{Templatename|ID={{PAGENAME}}}} . After the upgrade from >> 2.0.9 it enters {{Templatename|ID=Semantic Forms permissions test}}. >> >> I will appreciate your feedback. >> >> Cheers [[kgh]] >> >> ------------------------------------------------------------------------------ >> Xperia(TM) PLAY >> It's a major breakthrough. An authentic gaming >> smartphone on the nation's most reliable network. >> And it wants your games. >> http://p.sf.net/sfu/verizon-sfdev >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user |