ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can I Set-Up Notifications Based on Member Group?

January 14, 2010 10:17am

Subscribe [2]
  • #1 / Jan 14, 2010 10:17am

    Chris Ediger

    46 posts

    We’re using EE for our company intranet. I’m trying to set up our PTO (Personal Time Off) request form via a SAEF (Stand Alone Entry Form) on an intranet page.

    This is what I’d like to make happen:
    1. User logs into the intranet and goes to the request form to request time off.
    2. After submission, the request is marked “Pending” (via statuses) and sent (via notifications) to their supervisor.
    3. The supervisor logs into the admin area and approves the time off (by changing the status to “Open”).

    Can this be done?

  • #2 / Jan 14, 2010 10:24am

    Chris Ediger

    46 posts

    My first thought is that I’ll need to do the following:

    - Create weblogs for each team and set notifications for new entries to go to the supervisor of that team.

    - Use something like the following to detect what member group the user is in & assign the weblog for the entry form accordingly…

    TOP OF TEMPLATE:

    {if group_title=="TEAMNAME"}{assign_variable:ptoweblog="request_TEAMNAME"}{if:else if group_title=="TEAMNAME2"}{assign_variable:ptoweblog="request_TEAMNAME2"} ... {/if}

    START OF ENTRY_FORM:

    {exp:weblog:entry_form weblog="{ptoweblog}" return="calendar/request/thanks"}


    Is this doable/the only way?

    Thanks for your help!

  • #3 / Feb 18, 2010 2:28pm

    Oscar Sanchez

    27 posts

    Hello, have the same question!>

    Have you make this code work?

    And, what if you have different supervisors for each group of members..

  • #4 / Feb 18, 2010 5:06pm

    Chris Ediger

    46 posts

    No, sorry. I’d still love some help on it if anyone can help.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases