Answers.Body: <p>I would use the CiviRules extension, you could structure it something like - if registered participant of 'X' event, send email of 'X' template.</p>
  
  <p>With this you could just create an email template for each event within Civi with the links you would like them to access and it would automatically send to anyone who registers for the event.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T23:49:00.957Z
Answers.Text: OK thank you for your input, i will give this extension a try and report. I need something generic because i have 400+ events per year. Your advice make me think at this possible solution : for the email i can insert a dropbox/cloud link in the confirmation email template !?
Answers.UserDisplayName: empiguet
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-20T15:41:39.933Z
Answers.Text: Exactly. You would just include the link in whichever email template you want. Note, I have noticed that it works best if you add a short delay (5 minutes) when creating the CiviRule to allow for the system to process everything so that any tokens you use are accurate. Let me know how it goes!
Answers.UserDisplayName: Laura
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T22:50:58.523Z
Answers.LastActivityDate: 2019-09-19T22:50:58.523Z
Answers.UserDisplayName: Laura
Answers.Body: <p>Another route to consider - add some custom fields to your Event entity, then you can put the url in to those fields, then you can set up a Sch Reminder that is using a token for the custom field, and bingo, each participant gets sent the links to the right document. Very light/easy solution. but i may still not have quite grasped the requirement :-)</p>
  
  <p>(note you may have to theme (?) so those fields don't show on eg the Event Info page)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-20T04:00:49.913Z
Answers.LastActivityDate: 2019-09-20T04:00:49.913Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>I do this with our community, but we use Drupal and create an "organic group" for each event.  We did some investigating of what it would take to migrate off Drupal and onto Wordpress, and group functionality was one of the difficult points.  </p>
  
  <p>In Wordpress, the closest I have found to this is the Group plugin.  You could create a group for each event.  Then you create a page or post for the event, and assign access to that page/post to the group.</p>
  
  <p>You could write some small script to add users to a Group every time they register for an event.  I would be inclined to do this via a nightly script, but you could also use CiviRules to automate creating the group every time a new event is created, and adding users every time they register.</p>
  
  <p>If you name your event page/post as the event ID, you could even automate sending them an e-mail when they register to let them know the URL of the page.  In fact, you could even automate creating the page and assigning access to the group.  </p>
  
  <p>Frankly you could automate the entire thing: </p>
  
  <ul>
  <li>When new event is created:
  
  <ul>
  <li>Create new WP group, using event ID in the group name</li>
  <li>Create new WP page/post, using event ID in the page name</li>
  <li>Assign access to new page/post to group</li>
  </ul></li>
  <li>When user registers
  
  <ul>
  <li>Add them to group</li>
  <li>Send them welcome email with private page URL</li>
  </ul></li>
  </ul>
  
  <p>Someone who is familiar with coding using the Wordpress APIs should be able to do this without too much trouble.  Coding this into a CiviRules rule or two would also be pretty easy.</p>
  
  <p>(Having talked about scripts, I currently do the activities of setting up a new group and adding users who have registered to the group manually.  Depending on your scale, it is not too time consuming.)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-20T00:00:42.477Z
Answers.Text: This look interesting. Using Group plugin seems quite smart. I will give this CiviRules a try tomorrow ! Thank you.
Answers.UserDisplayName: empiguet
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-20T16:11:29.653Z
Answers.Text: There's a clone of the `civicrm_og_sync` module called "BP Groups CiviCRM Sync" that enables synchronisation between BuddyPress Groups and CiviCRM. https://wordpress.org/plugins/bp-groups-civicrm-sync/
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-20T16:13:16.337Z
Answers.Text: There's also a plugin called "CiviCRM Groups Sync" which keeps groups provided by the "Groups" plugin in sync with CiviGroups: https://develop.tadpole.cc/plugins/civicrm-groups-sync
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T23:50:28.810Z
Answers.LastActivityDate: 2019-09-19T23:50:28.810Z
Answers.UserDisplayName: richardsplayground
Answers.Body: <p>Welcome empiguet. I do not use WP so much and I may not quite follow your workflow but I think you would need to do something as follows
  - if person registers then add to Smart Group
  - if in Smart Group, then set specific WP role (this may need an extra extension, i don't know if WP offers it, i do know Drupal does so an equivalent may exist)
  - set up WP user role permissions so person who registers for event can access 'private' content to which you would add your documents.</p>
  
  <p>If you only want them to get specific emails, then 
  - make a smart group of participants
  - use this as target for mailings using CiviMail</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T19:14:37.747Z
Answers.Text: Thanx for your comment. I see what you mean but if i go this way, i will need a permission per event because participant should see only their documents not other event documents.
Answers.UserDisplayName: empiguet
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T23:30:58.173Z
Answers.Text: Depends if you are wanting them to access to documents online or if you are sending them out I guess. Laura's suggestion may cover the latter scenario
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T18:52:58.153Z
Answers.LastActivityDate: 2019-09-19T18:52:58.153Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>My scenario is quite simple to explain : </p>
  
  <p>When a person register on an event (paid or free), we would like to give him an direct access to private content (by email or by direct redirect) (like documents to download or links ..). </p>
  
  <p>how do you achieve something like that in WP ?</p>
  
  <hr>
  
  <p>Actually i'm thinking of using CIVI custom field in events, then checking in the single event template for the "participant" status.. OR do you think there's another smarter way ?</p>
  
Tags: <wordpress><civievent><acl><participants><files>
Title: Private content for event participant?
ThreadText: # Private content for event participant?
  
  (Asked by: username_0 on 2019-09-19)
  
  My scenario is quite simple to explain :
  
  When a person register on an event (paid or free), we would like to give him an direct access to private content (by email or by direct redirect) (like documents to download or links ..).
  
  how do you achieve something like that in WP ?
  
  ---
  
  Actually i'm thinking of using CIVI custom field in events, then checking in the single event template for the "participant" status.. OR do you think there's another smarter way ?
  
  **Tags:** wordpress, civievent, acl, participants, files
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_1 on 2019-09-19. Score: 3
  
  I would use the CiviRules extension, you could structure it something like - if registered participant of 'X' event, send email of 'X' template.
  
  With this you could just create an email template for each event within Civi with the links you would like them to access and it would automatically send to anyone who registers for the event.
  
  > **Comments:**
  > **username_0**: OK thank you for your input, i will give this extension a try and report. I need something generic because i have 400+ events per year. Your advice make me think at this possible solution : for the email i can insert a dropbox/cloud link in the confirmation email template !?  
  > **username_1**: Exactly. You would just include the link in whichever email template you want. Note, I have noticed that it works best if you add a short delay (5 minutes) when creating the CiviRule to allow for the system to process everything so that any tokens you use are accurate. Let me know how it goes!  
  
  ---
  
  ### Answer by username_2 on 2019-09-20. Score: 2
  
  Another route to consider - add some custom fields to your Event entity, then you can put the url in to those fields, then you can set up a Sch Reminder that is using a token for the custom field, and bingo, each participant gets sent the links to the right document. Very light/easy solution. but i may still not have quite grasped the requirement :-)
  
  (note you may have to theme (?) so those fields don't show on eg the Event Info page)
  
  
  ---
  
  ### Answer by username_3 on 2019-09-19. Score: 2
  
  I do this with our community, but we use Drupal and create an "organic group" for each event. We did some investigating of what it would take to migrate off Drupal and onto Wordpress, and group functionality was one of the difficult points.
  
  In Wordpress, the closest I have found to this is the Group plugin. You could create a group for each event. Then you create a page or post for the event, and assign access to that page/post to the group.
  
  You could write some small script to add users to a Group every time they register for an event. I would be inclined to do this via a nightly script, but you could also use CiviRules to automate creating the group every time a new event is created, and adding users every time they register.
  
  If you name your event page/post as the event ID, you could even automate sending them an e-mail when they register to let them know the URL of the page. In fact, you could even automate creating the page and assigning access to the group.
  
  Frankly you could automate the entire thing:
  
  * When new event is created:
    + Create new WP group, using event ID in the group name
    + Create new WP page/post, using event ID in the page name
    + Assign access to new page/post to group
  * When user registers
    + Add them to group
    + Send them welcome email with private page URL
  
  Someone who is familiar with coding using the Wordpress APIs should be able to do this without too much trouble. Coding this into a CiviRules rule or two would also be pretty easy.
  
  (Having talked about scripts, I currently do the activities of setting up a new group and adding users who have registered to the group manually. Depending on your scale, it is not too time consuming.)
  
  > **Comments:**
  > **username_0**: This look interesting. Using Group plugin seems quite smart. I will give this CiviRules a try tomorrow ! Thank you.  
  > **username_4**: There's a clone of the `civicrm_og_sync` module called "BP Groups CiviCRM Sync" that enables synchronisation between BuddyPress Groups and CiviCRM. https://wordpress.org/plugins/bp-groups-civicrm-sync/  
  > **username_4**: There's also a plugin called "CiviCRM Groups Sync" which keeps groups provided by the "Groups" plugin in sync with CiviGroups: https://develop.tadpole.cc/plugins/civicrm-groups-sync  
  
  ---
  
  ### Answer by username_2 on 2019-09-19. Score: 1
  
  Welcome username_0. I do not use WP so much and I may not quite follow your workflow but I think you would need to do something as follows
  - if person registers then add to Smart Group
  - if in Smart Group, then set specific WP role (this may need an extra extension, i don't know if WP offers it, i do know Drupal does so an equivalent may exist)
  - set up WP user role permissions so person who registers for event can access 'private' content to which you would add your documents.
  
  If you only want them to get specific emails, then
  - make a smart group of participants
  - use this as target for mailings using CiviMail
  
  > **Comments:**
  > **username_0**: Thanx for your comment. I see what you mean but if i go this way, i will need a permission per event because participant should see only their documents not other event documents.  
  > **username_2**: Depends if you are wanting them to access to documents online or if you are sending them out I guess. username_1's suggestion may cover the latter scenario  
  
  ---
  
  