cancel
Showing results for 
Search instead for 
Did you mean: 

How to create web content from a submission form

propellerhead
Champ in-the-making
Champ in-the-making
I am new to Alfresco and would like some help or information on the following problem.
I want to create a template that contains a list of collaborators (name). Each item of this list links to a page with details of that collaborator (another template).
Creating web content for these templates would be easy if you are connected to Alfresco.
My problem is that I want to allow anyone to register as a collaborator through a submission form from outside Alfresco.

The outcome of the submission would:
1)  create a page (using the collaborator template) with the submitted data
2)  create an new item on the list of collaborators

Does someone have to be a guest user in order for this to work i.e. submitting the web content (registration form)?

The two new components would have to be approved by an admin user (following the normal workflow) before going live.

Is that possible? If so, how to do that?
Any help will be welcome.
2 REPLIES 2

kvc
Champ in-the-making
Champ in-the-making
A few things here:

1.  Enable user to create a profile and register as a user.

2.  Enable user to login, authenticate, and create content.

3.  Provide page with list of collaborators, displaying their profile, with
     a link to contributed articles.


To do this, I think you'll need the following:

1.  A web script to generate a user profile form

2.  A web script to create a new user in the Alfresco repo, along with profile info

3.  A web script to generate a list of all current users

4.  A web script to generate a list of all contributions by a user

5.  A web script to generate a simple text entry field (embedding TinyMCE) for user-generated content

6.  Executable page (such as JSP) to generate a web page by pulling
    on and displaying your web scripts


With web scripts, you can use our Javascript API to create people, create content, set properties on people and content, fetch lists of people and content along with any sort of metadata.  You can use Freemarker to render this output into whatever HTML you want, with additional embedded web scripts for whatever other actions or links you may want to expose to the user.

Take a look at our wiki on web scripts.  This would be a good example for us to include in documentation in the future.


Kevin

propellerhead
Champ in-the-making
Champ in-the-making
Hi,
Thanks for the reply. I just want to elaborate on my problem and still see if it is feasible.
–> A user (who is not part of any existing group in Alfresco) submits a registration form with their details.
–> This kicks off workflow whereby the site administrator is emailed their details. They either accept or reject the request to be added to the Collaboration group.
–> If accepted they are added to the group and are granted access to the Collaboration space only to read and look at other collaborators info.
–> The collaborator is sent an email detailing whether or not they have been accepted into the Collaboration group.

Is this still feasible and do you have any documentation on similar scenarios?
Welcome to the new Hyland Connect. Get started or submit feedback.