[SF] holds template

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[SF] holds template

Lists
I'm trying to reproduce the example of "holds template"

http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_December
_2011#embed_in_field.2Fholds_template

But my server crashes or is running in a loop while doing this.

Are there code changes related to "hold template" and "embed in field"?

Does someone has a running example of this for the latest SF-release?

c u steve lists


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: [SF] holds template

david-217
I use it here:
<a href="http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%">http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%
B3n&action=edit

Note that the embed template must be declared after the template that
contains it is closed.

El dj 22 de 03 de 2012 a les 15:55 +0100, en/na Lists va escriure:

> I'm trying to reproduce the example of "holds template"
>
> http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_December
> _2011#embed_in_field.2Fholds_template
>
> But my server crashes or is running in a loop while doing this.
>
> Are there code changes related to "hold template" and "embed in field"?
>
> Does someone has a running example of this for the latest SF-release?
>
> c u steve lists
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Semediawiki-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: [SF] holds template

Lists
Thanks david,

it still doesn't work...can someone help:

My form:

{{{info|partial form|create title=Create Table|edit title=Edit Table}}}
<div id="wikiPreview" style="display: none; padding-bottom: 25px;
margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<div style='width:96%;border:1px solid #dfdfdf; padding: 0em 1em 1em 1em;
background-color:#efefef; align:left;margin-bottom: 2em;-moz-border-radius:
10px;border-radius: 10px;'>

{{{for template|PSL-Sections-Container}}}
{{{field|TableHeader|holds template}}}
{{{field|TableBody|holds template}}}
{{{field|TableFooter|holds template}}}
{{{end template}}}

==Section I==
<div class='mw-collapsible mw-collapsed' style='text-align:left'>
{{{for template|PSL-Table-Header|embed in
field=PSL-Sections-Container[TableHeader]}}}
{| class="formtable"
! Table Name:
|{{{field|PslTableName|size=55|label=Table Name}}}
|}
{{{end template}}}

{{{for template|PSL-Table-Controller|multiple|embed in
field=PSL-Sections-Container[TableBody]}}}
{|
|'''Table Field Tag (th/td):'''
|{{{field|TableFieldTag|input type=dropdown|values=th,td|default=td}}}
|-
|'''Table Row Termination:'''
|{{{field|TableFieldTerminate|input type=checkbox}}}
|-
|'''Colspan:'''
|{{{field|ColSpan}}}
|-
|'''Rowspan:'''
|{{{field|RowSpan}}}
|-
|'''Table Field Value:'''
|{{{field|TableFieldValue|input type=textarea|rows=6|cols=80|}}}
|}
{{{end template}}}
{{{for template|PSL-Table-Footer|embed in
field=PSL-Sections-Container[TableFooter]}}}
{{{end template}}}
</div>

Template PSL-Sections-Container:

{{{TableHeader}}}
{{{TableBody}}}
{{{TableFooter}}}

What's wrong?




-----Ursprüngliche Nachricht-----
Von: david [mailto:[hidden email]]
Gesendet: Donnerstag, 22. März 2012 16:40
An: Lists
Cc: [hidden email]
Betreff: Re: [Semediawiki-user] [SF] holds template

I use it here:
<a href="http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%">http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%
B3n&action=edit

Note that the embed template must be declared after the template that
contains it is closed.

El dj 22 de 03 de 2012 a les 15:55 +0100, en/na Lists va escriure:

> I'm trying to reproduce the example of "holds template"
>
> http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_De
> cember
> _2011#embed_in_field.2Fholds_template
>
> But my server crashes or is running in a loop while doing this.
>
> Are there code changes related to "hold template" and "embed in field"?
>
> Does someone has a running example of this for the latest SF-release?
>
> c u steve lists
>
>
> ----------------------------------------------------------------------
> --------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure 
> _______________________________________________
> Semediawiki-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: [SF] holds template

Yaron Koren-2
Hi,

The issue might be that it's defined as a partial form - I don't know if it
needs to be a partial form, but if not, try doing it without that.

-Yaron

On Thu, Mar 22, 2012 at 2:07 PM, Lists <[hidden email]> wrote:

> Thanks david,
>
> it still doesn't work...can someone help:
>
> My form:
>
> {{{info|partial form|create title=Create Table|edit title=Edit Table}}}
> <div id="wikiPreview" style="display: none; padding-bottom: 25px;
> margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
> <div style='width:96%;border:1px solid #dfdfdf; padding: 0em 1em 1em 1em;
> background-color:#efefef; align:left;margin-bottom: 2em;-moz-border-radius:
> 10px;border-radius: 10px;'>
>
> {{{for template|PSL-Sections-Container}}}
> {{{field|TableHeader|holds template}}}
> {{{field|TableBody|holds template}}}
> {{{field|TableFooter|holds template}}}
> {{{end template}}}
>
> ==Section I==
> <div class='mw-collapsible mw-collapsed' style='text-align:left'>
> {{{for template|PSL-Table-Header|embed in
> field=PSL-Sections-Container[TableHeader]}}}
> {| class="formtable"
> ! Table Name:
> |{{{field|PslTableName|size=55|label=Table Name}}}
> |}
> {{{end template}}}
>
> {{{for template|PSL-Table-Controller|multiple|embed in
> field=PSL-Sections-Container[TableBody]}}}
> {|
> |'''Table Field Tag (th/td):'''
> |{{{field|TableFieldTag|input type=dropdown|values=th,td|default=td}}}
> |-
> |'''Table Row Termination:'''
> |{{{field|TableFieldTerminate|input type=checkbox}}}
> |-
> |'''Colspan:'''
> |{{{field|ColSpan}}}
> |-
> |'''Rowspan:'''
> |{{{field|RowSpan}}}
> |-
> |'''Table Field Value:'''
> |{{{field|TableFieldValue|input type=textarea|rows=6|cols=80|}}}
> |}
> {{{end template}}}
> {{{for template|PSL-Table-Footer|embed in
> field=PSL-Sections-Container[TableFooter]}}}
> {{{end template}}}
> </div>
>
> Template PSL-Sections-Container:
>
> {{{TableHeader}}}
> {{{TableBody}}}
> {{{TableFooter}}}
>
> What's wrong?
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: david [mailto:[hidden email]]
> Gesendet: Donnerstag, 22. März 2012 16:40
> An: Lists
> Cc: [hidden email]
> Betreff: Re: [Semediawiki-user] [SF] holds template
>
> I use it here:
> <a href="http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%">http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%
> B3n&action=edit
>
> Note that the embed template must be declared after the template that
> contains it is closed.
>
> El dj 22 de 03 de 2012 a les 15:55 +0100, en/na Lists va escriure:
> > I'm trying to reproduce the example of "holds template"
> >
> > http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_De
> > cember
> > _2011#embed_in_field.2Fholds_template
> >
> > But my server crashes or is running in a loop while doing this.
> >
> > Are there code changes related to "hold template" and "embed in field"?
> >
> > Does someone has a running example of this for the latest SF-release?
> >
> > c u steve lists
> >
> >
> > ----------------------------------------------------------------------
> > --------
> > This SF email is sponsosred by:
> > Try Windows Azure free for 90 days Click Here
> > http://p.sf.net/sfu/sfd2d-msazure
> > _______________________________________________
> > Semediawiki-user mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Semediawiki-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>



--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: [SF] holds template

Lists
Hi Yaron,

I deleted partial form, but it still doesnt work.
I also get mysterious input fields for TableHeader,TableBody,TableFooter in
the form.
As I understood they only should hold the templates.

Could you provide a very simple example with form & templates?

-----Ursprüngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Yaron Koren
Gesendet: Donnerstag, 22. März 2012 19:48
An: Lists
Cc: [hidden email]
Betreff: Re: [Semediawiki-user] [SF] holds template

Hi,

The issue might be that it's defined as a partial form - I don't know if it
needs to be a partial form, but if not, try doing it without that.

-Yaron


On Thu, Mar 22, 2012 at 2:07 PM, Lists <[hidden email]> wrote:


        Thanks david,
       
        it still doesn't work...can someone help:
       
        My form:
       
        {{{info|partial form|create title=Create Table|edit title=Edit
Table}}}
        <div id="wikiPreview" style="display: none; padding-bottom: 25px;
        margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
        <div style='width:96%;border:1px solid #dfdfdf; padding: 0em 1em 1em
1em;
        background-color:#efefef; align:left;margin-bottom:
2em;-moz-border-radius:
        10px;border-radius: 10px;'>
       
        {{{for template|PSL-Sections-Container}}}
        {{{field|TableHeader|holds template}}}
        {{{field|TableBody|holds template}}}
        {{{field|TableFooter|holds template}}}
        {{{end template}}}
       
        ==Section I==
        <div class='mw-collapsible mw-collapsed' style='text-align:left'>
        {{{for template|PSL-Table-Header|embed in
        field=PSL-Sections-Container[TableHeader]}}}
        {| class="formtable"
        ! Table Name:
        |{{{field|PslTableName|size=55|label=Table Name}}}
        |}
        {{{end template}}}
       
        {{{for template|PSL-Table-Controller|multiple|embed in
        field=PSL-Sections-Container[TableBody]}}}
        {|
        |'''Table Field Tag (th/td):'''
        |{{{field|TableFieldTag|input
type=dropdown|values=th,td|default=td}}}
        |-
        |'''Table Row Termination:'''
        |{{{field|TableFieldTerminate|input type=checkbox}}}
        |-
        |'''Colspan:'''
        |{{{field|ColSpan}}}
        |-
        |'''Rowspan:'''
        |{{{field|RowSpan}}}
        |-
        |'''Table Field Value:'''
        |{{{field|TableFieldValue|input type=textarea|rows=6|cols=80|}}}
        |}
        {{{end template}}}
        {{{for template|PSL-Table-Footer|embed in
        field=PSL-Sections-Container[TableFooter]}}}
        {{{end template}}}
        </div>
       
        Template PSL-Sections-Container:
       
        {{{TableHeader}}}
        {{{TableBody}}}
        {{{TableFooter}}}
       
        What's wrong?
       
       
       
       
        -----Ursprüngliche Nachricht-----
        Von: david [mailto:[hidden email]]
        Gesendet: Donnerstag, 22. März 2012 16:40
        An: Lists
        Cc: [hidden email]
        Betreff: Re: [Semediawiki-user] [SF] holds template
       

        I use it here:
        <a href="http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%">http://www.eoi.es/wiki/index.php?title=Formulario:Secci%C3%
        B3n&action=edit
       
        Note that the embed template must be declared after the template
that
        contains it is closed.
       
        El dj 22 de 03 de 2012 a les 15:55 +0100, en/na Lists va escriure:
        > I'm trying to reproduce the example of "holds template"
        >
        >
http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_De
        > cember
        > _2011#embed_in_field.2Fholds_template
        >
        > But my server crashes or is running in a loop while doing this.
        >
        > Are there code changes related to "hold template" and "embed in
field"?
        >
        > Does someone has a running example of this for the latest
SF-release?
        >
        > c u steve lists
        >
        >
        >
----------------------------------------------------------------------
        > --------
        > This SF email is sponsosred by:
        > Try Windows Azure free for 90 days Click Here
        > http://p.sf.net/sfu/sfd2d-msazure
        > _______________________________________________
        > Semediawiki-user mailing list
        > [hidden email]
        > https://lists.sourceforge.net/lists/listinfo/semediawiki-user
       
       
       
       
----------------------------------------------------------------------------
--
        This SF email is sponsosred by:
        Try Windows Azure free for 90 days Click Here
        http://p.sf.net/sfu/sfd2d-msazure
        _______________________________________________
        Semediawiki-user mailing list
        [hidden email]
        https://lists.sourceforge.net/lists/listinfo/semediawiki-user
       




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



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user