Content Library
The CAFH Platform content library is a rich collection of articles, videos, audio recordings, and documents curated for your spiritual journey.Content Types
The platform supports multiple content formats:Articles
Written content with full HTML/Markdown support. Tagged by topic and category.
Resources
Downloadable documents like PDFs, guides, and worksheets.
Videos
Recorded sessions, teachings, and visual content with embedded player.
Audio
Meditation guides, talks, and audio teachings for on-the-go listening.
Content Structure
ContentItem Data Model
Each piece of content in the library follows this structure:MediaAsset Data Model
Media files (videos, audio, documents) use this structure:Personalized Recommendations
Your dashboard shows personalized content recommendations based on your profile.How Recommendations Work
Load Your Interests
The system retrieves your interest tags from:
- Wizard Profile (if completed) →
derivedTags - User Profile (manual selection) →
interests - Default Fallback →
["Meditación", "Bienestar"]
Tag System
Common content tags include:Meditación- Meditation contentBienestar- Wellness topicsEstudio- Study materialsRetiro- Retreat informationComunidad- Community eventsMétodo- Method teachingsPrincipiante- Beginner-friendlyAvanzado- Advanced content
Viewing Content
When you click on a recommended item, the platform opens a full-screen content viewer modal.Content Viewer Features
For Articles
- Full-screen reading experience
- Styled typography for readability
- Article metadata (author, date)
- Automatic scroll position persistence
For Videos
- Native HTML5 video player
- Autoplay on open
- Full-screen support
- Playback controls
For Audio
- Clean audio player interface
- Play/pause controls
- Progress bar
- Volume control
- Playback speed options
For Documents (PDFs)
- Embedded PDF viewer
- Zoom and scroll support
- Download option
- Page navigation
Modal Controls
Close Button
Close Button
Background Click
Background Click
Click outside the content viewer (on the dark backdrop) to close.
ESC Key
ESC Key
Press the ESC key for quick modal dismissal (if implemented).
Analytics & Tracking
Every time you open content, the platform automatically tracks your interaction.Consumption Tracking
When you click on content:What Gets Tracked
Content Interaction Created
A
ContentInteraction record is created with:- Your user ID (if logged in)
- Asset details (ID, name, type)
- Timestamp of interaction
- Content tags
History Updated
Your activity history is updated with the interaction for display in the Historial tab.
All tracking is anonymous and used only to improve your experience. View counts help administrators understand popular content.
Content Organization
Content in the library is organized by several attributes:By Type
- Articles: Written content for reading
- Resources: Downloadable materials
- Videos: Visual content
- Audio: Audio-only content
By Tags
Content can have multiple tags for cross-categorization:By Status
- Published: Visible to members
- Draft: Hidden, work in progress
Content Catalog Integration
The platform also includes a separate Content Catalog system for structured content management:Catalog Features
- Detailed metadata (title, description, duration)
- Profile targeting (content specific to profile types)
- Access control (public vs. member-only)
- Featured content highlighting
- Custom ordering
Catalog Item Structure
Kit Items
Profile Kit Items are special curated resources automatically recommended to new members based on their wizard profile type.
Search & Discovery
While direct search isn’t visible in the member dashboard UI, the platform includes robust search capabilities:Content Search Function
query: Text to search in titles and tagstype: Optional content type filter
Media Search Function
Offline Access
The platform stores content metadata locally for quick access:- Content Index: Cached in
localStorage - Media Metadata: Available offline
- Actual Media Files: Require internet connection