From: Stephan G. <f....@gm...> - 2011-03-23 13:03:50
|
I think the problem is, that #show returns a link for properties of type page. You have to explicitly ask to not return a link. See http://scratchpad.referata.com/wiki/Testset3 Stephan -------- Original-Nachricht -------- > Datum: Wed, 23 Mar 2011 13:37:57 +0100 > Von: kghbln <med...@kg...> > An: ya...@wi..., sem...@li... > Betreff: Re: [Semediawiki-user] [SMW] #set not working if property is of type page? > Heiya Yaron, heiya to all of you, > > thank you for your reply. It is quite embarrassing that I have ented an > argument for set as I did. However, > there is no typing error involved. > > {{#set: > | Identifier={{#show:Hello|?Identifier=}} > | Name={{#show:Hello|?Name=}} > }} > > This only works for "Name" and not for "identifier". > > I just recreated the problem at scratchpad > (http://scratchpad.referata.com/wiki/Testset1 and > http://scratchpad.referata.com/wiki/Testset2). There the factbox displays > the error message "cannot be used as > a page name in this wiki". SMW obviously does not like it. Still I cannot > figure out why it should not work. > > Cheers > > [[kgh]] > > > Am 22.03.2011 20:13, schrieb Yaron Koren: > > Hi, > > > > That #set call should work fine - maybe you've spelled "identifyer" > differently in the two pages? (By the > > way, in English it's "identifier".) Also, you don't need the "Hello" > argument to #set. > > > > -Yaron > > > > On Tue, Mar 22, 2011 at 12:16 PM, kghbln <med...@kg... > <mailto:med...@kg...>> wrote: > > > > Heiya, > > > > actually I currently see no reason why it should not work if I do > the following on a page called "Foo": > > > > {{#set:Hello > > | Identifiyer={{#show:Hello|?Identifyer=}} > > | Name={{#show:Hello|?Name=}} > > }} > > > > As a result "World" is set as the value of property "Name" (type > string) but not "W1234" as the value of > > property "Identifyer" (type page). This is is quite sad. There must > be a reason and I just do not grasp > > it at > > the moment. May someone provide a helpful explanation? > > > > Cheers to all of you > > > > [[kgh]] > > > > > ------------------------------------------------------------------------------ > > Enable your software for Intel(R) Active Management Technology to > meet the > > growing manageability and security demands of your customers. > Businesses > > are taking advantage of Intel(R) vPro (TM) technology - will your > software > > be a part of the solution? Download the Intel(R) Manageability > Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > <mailto:Sem...@li...> > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > -- > > WikiWorks · MediaWiki Consulting · http://wikiworks.com > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone |