Skip to main content

Connect

The Connect module manages the department's public-facing profile, enabling community engagement and inter-department discovery. It is managed by the ConnectController.

Department Profile

Viewing Profile

Authorization: Connect_View policy

The dashboard shows:

  • Department profile summary
  • Avatar URL (from API)
  • Latest 3 posts
  • Visible post count

The profile is auto-created if it doesn't exist (GetOrInitializeDepartmentProfile).

Editing Profile

Authorization: Connect_Update policy

FieldDescription
NamePublic display name
Short NameAbbreviated name
DescriptionDepartment description
In Case of EmergencyEmergency contact information
Service AreaGeographic service area
Services ProvidedList of services offered
FoundedYear founded
KeywordsSearch keywords
Invite OnlyWhether joining requires an invite
Allow MessagesWhether external messages are accepted
Share StatsShare department statistics publicly
DisabledHide profile from public directory

Volunteer Recruitment

FieldDescription
Volunteer Positions AvailableWhether positions are open
Volunteer KeywordsSearch terms for recruitment
Volunteer DescriptionDescription of volunteer opportunities
Volunteer Contact NameRecruitment contact person
Volunteer Contact InfoHow to reach the contact

Location

FieldDescription
AddressDepartment address (creates/updates Address entity)
Latitude/LongitudeGPS coordinates
What3WordsThree-word location code

Geolocation Resolution:

  1. If What3Words is provided but lat/lng is empty → Resolves via W3W API
  2. If still no coordinates and address exists → Geocodes the full address

Messages

Authorization: Connect_View policy

View incoming messages from external departments:

  • Grouped by sender
  • Shows latest message text per conversation
  • Sender name and timestamp

Posts / Articles

Viewing Posts

Authorization: Connect_View policy

Lists all department articles/posts. Data loaded via AJAX.

Creating Posts

Authorization: Connect_Create policy

FieldRequiredDescription
TitleYesPost title
BodyYesPost content
Start OnYesPublication date (defaults to now in department timezone)

Post Data API

The GetPostsList endpoint returns all articles as JSON with:

  • Title and body
  • Images
  • Formatted dates (department timezone)
  • Expiry information
  • Creator's full name

Interactions with Other Modules

ModuleInteraction
DepartmentDepartment data used for profile
Department LinksProfile enables department discovery
MappingLocation data for department positioning