Jump to:

23472 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » new text below the user-defined-function

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1560 Views
  • helloworld
    Avatar
    Community Member
    14 Posts

    new text below the user-defined-function Link to this post

    Hi,

    if I used the module user-defined-funktion, how can I insert a text below the form?

    Thanks

    helloworld

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: new text below the user-defined-function Link to this post

    Hi,

    you have two options, in the template or in the Content field in the CMS.

    cheers

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: new text below the user-defined-function Link to this post

    Did you mean User Defined Forms?

    You can user $UserDefinedForm in the content area to state where the form is positioned so then you can add text under that $UserDefinedForm

  • helloworld
    Avatar
    Community Member
    14 Posts

    Re: new text below the user-defined-function Link to this post

    ohh sorry! sure

    *UserDefinedForms*

    thanks helloworld

  • helloworld
    Avatar
    Community Member
    14 Posts

    Re: new text below the user-defined-function Link to this post

    o.k. its possible to make a unique template with

    $Content1
    $UserDefinedForm
    $Content2

    or a second template with

    $Content1
    $UserDefinedForm1
    $Content2
    $UserDefinedForm2

    and a third template... and so on

    what I mean is to define a userform and I can include this form with a placeholder in the normal textinput area at content like

    [TinyMCE]
    ----------------------------------
    Contact

    Please fill out the contact form bla bla

    $UserDefinedForm

    or call me at 9am to 4pm blablabla
    ....
    -------------------------------------------

    thanks

  • helloworld
    Avatar
    Community Member
    14 Posts

    Re: new text below the user-defined-function Link to this post

    .... I can´t understand the idea to change the Page-Type from Page to UseDefinedForm-Type? For the User or in the Frontend is this Page a "normal Page" with a small Form!

    If I combine Text and Form and GMap and FieldListTable and Text and Gallery in one Page - ist this a "TextFormGMapTableTextGallery"-Page-Type with a superspecial unique Template??

    hmmmm?? "Wag the Dog"

    helloworld

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: new text below the user-defined-function Link to this post

    $UserDefinedForm1
    $Content2
    $UserDefinedForm2

    UserDefinedForms doesn't support having multiple forms on 1 field. If you want content in the middle of a form you could always just make a 'HTMLBlock' field in your form - it accepts no user input on the front end but it was added so you could write a paragraph or 2 in the middle of a form.

  • helloworld
    Avatar
    Community Member
    14 Posts

    Re: new text below the user-defined-function Link to this post

    Hi Willr,

    o.k. its possible to insert any Textblocks with the UDForm.... I think, this is not enough flexible.

    I´m a lot spoiled with Wordpress Modules e.g.
    * cforms: http://www.deliciousdays.com/cforms-plugin/ [3 stars]
    * Gravity: http://www.gravityforms.com/ [5 stars]

    I looked at a other solution like http://doc.silverstripe.org/doku.php?id=recipes:customising-content-in-your-templates

    What can I do in function MyUDForm??

    function Content() {
    return str_replace('$MyUDForm', $this->MyUDForm(), $this->Content);
    }

    function MyUDForm() {
    return ??? $UserDefinedForm ???;
    }

    Thanks helloworld

    1560 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.