Add a Gate
This guide walks you through the process of adding a gate to your Gate Controller template. Gates control access to specific content based on time, user data, or completion of prerequisites.
Overview
Adding a gate involves four main steps:
- Select Target - Choose what content to gate (page, tile, or element)
- Set Conditions - Configure when the gate opens (time, variable, or precondition locks)
- Set Display Element - Choose where status messages appear
- Save - Apply your configuration
Prerequisites
Before adding a gate:
- A Gate Controller template exists (or create one)
- Your application has pages and tiles built
- If using time locks, datetime variables are configured
- If using variable locks, the comparison variables exist
Step-by-Step Guide
Step 1: Open Gate Controller
- Go to Variable Center → Gate Controller
- Select your Application
- Find your Gate Controller template (or create one with "Add Gate Controller Template")
Step 2: Add New Gate
- Click the "Add Gate" button within your template
- The gate editor modal opens
- Enter a Gate Name (required) - e.g., "Day 2 - Reflection"
Step 3: Configure Target
In the "Section: Target" tab:
- Select a Page (required)
- Optionally select a Tile Instance
- Optionally select a Single Element
- Select an Overlay Element for status display
Learn more about Select Target
Step 4: Configure Conditions
Enable and configure one or more lock conditions:
Time Lock:
- Enable the time lock toggle
- Select start time variables
- Set offset (e.g., "+24h", "+2d")
- Optionally set end time offset
Variable Lock:
- Enable the variable lock toggle
- Select the variable to check
- Choose an operator (==, !=, >, <)
- Enter the comparison value
Learn more about Variable Lock
Precondition Lock:
- Enable the precondition lock toggle
- Select the dependency source page
- Optionally select tile and element
Learn more about Precondition Lock
Step 5: Configure Display
Set up how the gate status appears to users:
Learn more about Display Element
Step 6: Save
Click Save to add the gate to your template.
Gate Editor Sections
The gate editor is organized into sections:
| Section | Purpose |
|---|---|
| Name | Identify the gate |
| Target | What content is being gated |
| Time Lock Condition | Time-based access control |
| Page Access Condition | Variable-based visibility |
| Precondition Lock | Completion-based access |
| Display | Status message configuration |
Combining Multiple Conditions
Gates can use multiple lock types simultaneously. When multiple locks are enabled, the gate opens only when ALL conditions are met:
Example: Complex Gate
├─ Time Lock: Opens 48 hours after start
├─ Variable Lock: User is premium member
└─ Precondition Lock: Completed quiz
Gate opens when:
• 48 hours have passed AND
• User's premium status is true AND
• User has completed the quizGate Icons
In the gate list, icons indicate which conditions are active:
| Icon | Meaning |
|---|---|
| 🕐 Clock | Time Lock enabled |
| 🔒 Lock | Precondition Lock enabled |
| # Hash | Variable Lock enabled |
| Email notification enabled |
Editing an Existing Gate
- Find the gate in your template list
- Click the Edit button (pencil icon)
- Modify settings as needed
- Click Save
Deleting a Gate
- Find the gate in your template list
- Click the Delete button (trash icon)
- Confirm the deletion
Warning: Deleting a gate cannot be undone.
Reordering Gates
Gates are evaluated in order. To change the order:
- Click the "Sort Pages" button
- Drag gates to reorder them
- Click Save
This is useful when creating sequential content where order matters.
Best Practices
Name gates descriptively - Include timing info like "Day 2" or "Week 1"
Start simple - Add one condition first, test, then add more
Test thoroughly - Verify gates work before going live
Document your logic - Keep notes on why each gate exists
Use consistent patterns - If Day 1 opens at +0h, Day 2 at +24h, keep the pattern
Sub-sections
Select Target
Choose what content the gate controls.
Set Time Lock
Configure time-based access control.
Set Variable Lock
Configure data-based visibility.
Set Precondition Lock
Configure completion-based access.
Learn about Set Precondition Lock
Set Display Element
Configure status message display.
Learn about Set Display Element
Questions?
If you have any questions, please don't hesitate to contact us. Alternatively, you can submit an issue on this platform.
Useful Links:
Gate Controller - https://help.acenji.com/#/./shared-concepts/gate-controller/index Setup Global Variables - https://help.acenji.com/#/./shared-concepts/gate-controller/setup-global-variables/index Variable Center - https://help.acenji.com/#/./shared-concepts/variable-center/index