The Form & List Pack allows you to include a form or a list within
your Content, Item or List View without needing a module. The advantage
of this is that you can pass values from your parent list items to your
To create a form in the content just add
Seblod->form field to content tab of you content type and in the
fields configuration add name of form you wish to include in the "Default
Value" box (this is actually a bug in the label, should be Form Name).
If you would like to pass some live values to the form you can do this
using Fields as described in the following tutorial (which is for lists
in lists, but principle is the same)
you don't send form to content, you need to create relationship between the parent content type (event) and child content type (registration). In your form add "parent article id" field. Using fields option (see tutorial) you then need to pass parent article id to the mentioned "parent article id" field in the child form.
Then you will need a search type, that will show all regstrations - here you use "parent article id" field to search only registrations linked to particular event. When you have this search type ready you insert this search into the parent content using list field. Again you need to pass event's article id to the child as "parent article id". This way you will see only registrations lined to this event. You will also probably need to add some restricitons on the form field and lsit field, so that form is shown only to e..g. registered group and list of registrations to e.g. admins.
you can't find this field in fields that were already made, you need to add new text field with such name (or any name, it is just important to use the same field in form and in search). You need to pass article id value to the form - for this you need to have article_id field in the content (in hidden position), then you can use Fields as described in tutoril to pass this value to your newly made field in the form.
I'm sorry but I still can not create the relationship between content and form.
You need to pass article id value to the form - for this you need to
have article_id field in the content (in hidden position), then you can
use Fields as described in tutoril to pass this value to your newly made
field in the form.
But in the tutorial, and in the case of a list a field to the variable passage, but not in the case of a form where I have options (which I don't understand).
First I need to apologize, I missed you are talking about the form. In
the form you will need to use live value options to get values from
parent article.It is fortunately easy to get article id as it is in the
url so you can use Url-Variable live value and se it to id and it will
pick id from parent article, for the rest of fields you could use sd
live plugin (which need some modification in code as it is not
compatible with seblod 3.9)