151 Posts
jimenaes
10 years ago
7
Topic
Hi

I asked this many years ago but I wonder if now is possible to create two different conetnts from the same Seblod form. For example, I need to create an article and a user from the same form.

Thanks
Get a Book for SEBLOD
10 years ago
1
Level 1
Hi jimenaes,

I just tested this using the Seblod List & Form Plugin but of course that is only for embedding a form into the Content view of another form (i.e. it does not work to embed the Admin or Site form into another Admin or Site form).

I doubt a Joomla Module would work either.

I wonder if you could use the Code Pack (5 Plugins)? (i.e. add code to the "Add Code Before Store" section to pickup the inputted values and create a new article from them?)

By the way, I sent you a LinkedIn request a couple of weeks ago -- I saw the work you did on the book-related site and was looking to talk to you to see if you were a contractor for hire?  If you'd like to discuss that, please link up with me on LinkedIn.

Ken
151 Posts
jimenaes
10 years ago
0
Level 2
Hi Ken, thanks for answer.

Sorry about the linked in request, I'm new to that and I really haven't had the time to even configure it at all, but I will check it.

Many months ago I bought that Code pack (5 plugins) but never got any answer on how to use it, so I didn't.  I also thought that this "stages" could help, but I cant find any tutorial o documentation on how to use them either :( Maybe now someone could show me some examples.

What I need now is this:

I'm doing a researchers directory for a big institute.  I have created a an article content type to store the information for each researcher, such as studies, publication, awards, projects, contact information, etc. I will feed the directory with some of the information, but then I need each researcher to be able to sign in and edit his own information, but just his own.

So I wonder if using the same form (lest call the content type "researcher") I could save an article, with all that information and at the same time save a joomla "user" using, for example the name for the "user user_name", the email for the "user_email" and some auto generated number for the password. And also set this created joomla "user" as the author of the created article so that user could edit it in the future.

Hope I explained more or less clear.

Thanks again
4229 Posts
Kadministrator
10 years ago
4
Level 1
Hi,


I don't think this is currently possible as one form = one article, for having two forms on single page you would need some custom post processing to separate data from each form and save it to the right article. One workaround wuld be to have some button to open second form in the popup or have redirect back to original form after you have edited secondary form, you can use Button Free plugin http://www.seblod.com/products/921 for this (see Form mode in description)
10 years ago
1
Level 2
Klas, 

Could this "custom post processing" be in the "Add Code Before Store" section to pickup the inputted values and create new articles from them?  If so, what type of code goes in here... php?  Do you have any examples of php code that you have used in the "Add Code Before Store" section?  I have a similar need to do this same as jimenaes.

Thanks!
4229 Posts
Kadministrator
10 years ago
0
Level 3
HI,

I think it could be the right place, but I can't give you the actuall code, this is not a very simple thing to do in my opinion. You can contact Seblod on http://www.seblod.com/contact to give you an estimate for this kind of custom code.
151 Posts
jimenaes
10 years ago
1
Level 2
Is not posible to do it using the concat field and setting the storage to free - user- username for example? 
4229 Posts
Kadministrator
10 years ago
0
Level 3
Hi,

concat does something different it merges values from different fields into one.
Get a VIP membership