Re: [SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Yaron Koren
Hi Kim,

The reason multiple free-text inputs aren't supported is that it
simply becomes untenable for the code to support them in all cases,
especially when there's more than one template involved. Let's say,
for instance, that a form is structured as:

{{{free text 1}}}
{{{template A}}}
{{{template B}}}
{{{free text 2}}}

...and then it has to edit a page like:

...free text...
{{B}}
...free text...
{{A}}}
...free text...

How would the free text be distributed among the two inputs? There's
no good solution, as far as I can tell.

One halfway-solution, for the specific case of a template between two
free text areas, is to use a partial form to just edit that template;
those are described in the documentation. There are some bugs in the
handling of partial forms, but it works for simple cases.

Over the long term, one thing on the SF roadmap that I'd really like
to add is support for a {{{section}}} tag, which treats a section with
a header as a structured part of the page that can be added to the
form. As long as there are consistent headers in the page structure, I
think that would solve problems like this one in a straightforward
way.

-Yaron

On Thu, Jun 14, 2012 at 5:44 AM, Kim Eik  wrote:
> Well, would it really be that hard to enable multiple free-text in a
> given form? As far as i understood on Stephan, we could attach an id
> to each free-text instance?
>
> Kim
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Yury Katkov
Sure you don't have to assign it to a semantic property but the text will
be wraped in a template which brings us to a problem. The problem is that
in this text not everything is allowed.
That brings me to the question I wrote earlier
http://www.mail-archive.com/semediawiki-devel@lists.sourceforge.net/msg03474.html
-
how can we better develop escaping. Multiple {{{free text}}}s is also an
alternative to escaping.
-
Yury Katkov




On Thu, Jun 14, 2012 at 1:32 PM, Stephan Gambke  wrote:

> Hi Kim,
>
> the problem is, that free text has no identification attached to it in
> the final page. There is no definite way for SF to figure out which
> piece of text goes where.
> What you can do instead is to define a normal text area input and then
> display this in the template however you want. You don't have to
> assign it to a semantic property.
>
> Cheers,
> Stephan
>
>
> On 14 June 2012 11:23, Kim Eik  wrote:
> > Today if you specify two or more {{{standard input|free text}}} a form
> > page and you input value in them both. Only the last value will be
> > displayed, and also duplicated over all instances of the {{{standard
> > input|free text}}}.
> >
> > Why is this? Say if someone wanted to have a form in the middle of a
> > page, and some free text above and below the form. How would one go
> > about achieving this?
> >
> > Would it be possible to extend the {{{standard input|free text}}} with
> > an extra parameter giving it a name, so that content would not be
> > duplicated and you could indeed have several instances of this input?
> >
> > Cheers Kim
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Kim Eik
Well, would it really be that hard to enable multiple free-text in a
given form? As far as i understood on Stephan, we could attach an id
to each free-text instance?

Kim

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Kim Eik
> What you can do instead is to define a normal text area input and then
> display this in the template however you want. You don't have to
> assign it to a semantic property.

Can you refer me to any documentation regarding this? or maybe a rough example?

Thank you
Kim

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Yury Katkov
Hi Kim!
> Say if someone wanted to have a form in the middle of a
page, and some free text above and below the form.
I think the only thing we can do now is to use textarea+WikiEditor and
store the next inside the template. I'm not aware of possibility to insert
the templates to the end of the page via Semantic Forms.
-
Yury Katkov




On Thu, Jun 14, 2012 at 1:23 PM, Kim Eik  wrote:

> Today if you specify two or more {{{standard input|free text}}} a form
> page and you input value in them both. Only the last value will be
> displayed, and also duplicated over all instances of the {{{standard
> input|free text}}}.
>
> Why is this? Say if someone wanted to have a form in the middle of a
> page, and some free text above and below the form. How would one go
> about achieving this?
>
> Would it be possible to extend the {{{standard input|free text}}} with
> an extra parameter giving it a name, so that content would not be
> duplicated and you could indeed have several instances of this input?
>
> Cheers Kim
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Stephan Gambke
Hi Kim,

the problem is, that free text has no identification attached to it in
the final page. There is no definite way for SF to figure out which
piece of text goes where.
What you can do instead is to define a normal text area input and then
display this in the template however you want. You don't have to
assign it to a semantic property.

Cheers,
Stephan


On 14 June 2012 11:23, Kim Eik  wrote:
> Today if you specify two or more {{{standard input|free text}}} a form
> page and you input value in them both. Only the last value will be
> displayed, and also duplicated over all instances of the {{{standard
> input|free text}}}.
>
> Why is this? Say if someone wanted to have a form in the middle of a
> page, and some free text above and below the form. How would one go
> about achieving this?
>
> Would it be possible to extend the {{{standard input|free text}}} with
> an extra parameter giving it a name, so that content would not be
> duplicated and you could indeed have several instances of this input?
>
> Cheers Kim

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Is it possible to have several {{{standard input|free text}}} fields on a form?

2012-06-14 Thread Kim Eik
Today if you specify two or more {{{standard input|free text}}} a form
page and you input value in them both. Only the last value will be
displayed, and also duplicated over all instances of the {{{standard
input|free text}}}.

Why is this? Say if someone wanted to have a form in the middle of a
page, and some free text above and below the form. How would one go
about achieving this?

Would it be possible to extend the {{{standard input|free text}}} with
an extra parameter giving it a name, so that content would not be
duplicated and you could indeed have several instances of this input?

Cheers Kim

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel