Home Content Blocks

Content Blocks

Documentation for content blocks that display individual content items
By Dustin Grof
β€’ 16 articles

Carousel

Carousel Block Displays a responsive image carousel with navigation controls and optional captions. The carousel automatically loads images from the current page's data and provides smooth scrolling between images. Overview The Carousel block creates an interactive image gallery that's perfect for showcasing multiple photos from itineraries, listings, events, or regions. It uses Flickity for smooth animations and responsive behavior, with built-in navigation controls and optional image captions. Block Features & Options Display Options - Show Captions: Toggle to display image captions below each photo - Alignment: Left, center, or right align the carousel - Custom CSS Class: Add custom styling classes Carousel Behavior - Auto-play: Automatically cycles through images (disabled by default) - Wrap Around: Continuous scrolling from last to first image - Navigation: Previous/Next buttons for manual control - Responsive: Adapts to different screen sizes - Touch Support: Swipe gestures on mobile devices How it Works The Carousel block automatically detects and displays images from the current page's carousel_images data. It uses the Flickity library for smooth animations and responsive behavior. The carousel includes navigation buttons and can optionally show image captions when available. How to Add & Configure 1. Add the block to your template page 2. Configure options in the block sidebar: - Toggle "Show Captions" to display image descriptions - Set alignment if needed - Add custom CSS classes if desired 3. Save the page to apply changes Shortcode Usage Basic Shortcode [tourismo-carousel] All Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | show_captions | boolean | true | Display image captions below photos | | align | string | "" | Alignment: left, center, or right | | class_name | string | "" | Custom CSS class for styling | | custom_template_name | string | "" | Custom template override name | Examples Basic carousel with captions: [tourismo-carousel show_captions="true"] Right-aligned carousel without captions: [tourismo-carousel show_captions="false" align="right"] Custom styled carousel: [tourismo-carousel class_name="my-custom-carousel" align="center"] Content Displayed The carousel displays images from the current page's carousel_images field. Each image can include: - Image: The photo file (automatically resized to medium size) - Caption: Optional descriptive text displayed below the image - Alt Text: Accessibility description for screen readers The carousel includes: - Navigation buttons: Previous/Next controls - Responsive layout: Adapts to different screen sizes - Smooth animations: Flickity-powered transitions - Touch support: Swipe gestures on mobile devices Related Blocks - Content Block: Can display media in carousel format within content - Title Block: Often used above carousels for section headers - Description Block: Provides context for carousel content

Last updated on Sep 16, 2025

Challenge

Challenge Block The Challenge block displays detailed information about an individual challenge from your Tourismo admin platform. It's designed for challenge template pages where you want to showcase a single challenge with comprehensive details including hero images, descriptions, dates, rewards, and tags. Overview Use the Challenge block to create detailed challenge pages that showcase individual challenges with rich content. This block is perfect for: - Challenge detail pages with comprehensive information - Tourism websites featuring specific challenges and competitions - Event sites displaying detailed challenge descriptions and rewards - Community platforms with individual challenge showcases Block Features & Options Display Modes - Hero Image Display: Show challenge hero images with responsive layout - Content Layout: Two-column layout (image + content) or single-column display - Responsive Design: Automatically adapts to different screen sizes Layout Options - Alignment: Wide alignment by default for better content display - Custom CSS Class: Add custom styling classes - Template Customization: Use custom template names for advanced styling Content Display Options - Name Display: Show challenge names as H2 headings - Subtitle: Display challenge subtitles in muted text - Short Description: Show brief challenge descriptions in italics - Full Description: Display complete challenge descriptions with markdown support - Date Range: Display start and end dates with calendar emoji - Rewards: Show challenge rewards with gift emoji and titles - Tags: Display associated tags for categorization Display Toggles - Show Hero: Toggle challenge hero images on/off - Show Name: Toggle challenge name display - Show Subtitle: Toggle subtitle display - Show Short Description: Toggle brief description display - Show Description: Toggle full description display - Show Dates: Toggle date range display - Show Rewards: Toggle rewards display - Show Tags: Toggle tag display How it Works The Challenge block displays detailed information about a single challenge from your Tourismo admin platform. It automatically adapts its layout based on which content elements are enabled, showing either a two-column layout (hero image + content) or single-column display. The block includes comprehensive challenge information including descriptions, dates, rewards, and tags with proper formatting and responsive design. How to Add & Configure 1. Add the Block: In the WordPress editor, add the "Challenge" block to your challenge template page 2. Configure Display Options: Use the block settings sidebar to toggle which elements to show 3. Set Layout: Choose between hero image display and content-only layouts 4. Customize Styling: Add custom CSS classes for advanced styling 5. Test Responsive Design: Preview how the layout adapts on different screen sizes Shortcode Usage Basic Shortcode [tourismo-challenge] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | custom_template_name | string | "" | Custom template name for advanced styling | | class_name | string | "" | Custom CSS class for styling | | align | string | "wide" | Block alignment (wide by default) | | show_hero | boolean | false | Show challenge hero images | | show_name | boolean | true | Show challenge names | | show_subtitle | boolean | false | Show challenge subtitles | | show_short_description | boolean | false | Show brief challenge descriptions | | show_description | boolean | false | Show full challenge descriptions | | show_dates | boolean | true | Show challenge date ranges | | show_rewards | boolean | false | Show challenge rewards | | show_tags | boolean | false | Show challenge tags | Practical Examples Basic Challenge Display [tourismo-challenge] Challenge with Hero Image [tourismo-challenge show_hero="true" show_description="true"] Challenge with Full Content [tourismo-challenge show_hero="true" show_subtitle="true" show_short_description="true" show_description="true" show_rewards="true" show_tags="true"] Challenge with Custom Styling [tourismo-challenge class_name="custom-challenge" show_hero="true" show_description="true"] Minimal Challenge Display [tourismo-challenge show_hero="false" show_description="false" show_rewards="false" show_tags="false"] Content Displayed The Challenge block displays comprehensive challenge information in a responsive layout: - Hero Images: Challenge hero images with proper aspect ratios and alt text - Challenge Names: Displayed as H2 headings when enabled - Subtitles: Challenge subtitles in muted text styling - Short Descriptions: Brief descriptions displayed in italics - Full Descriptions: Complete descriptions with markdown support - Date Ranges: Start and end dates with calendar emoji (πŸ“…) - Rewards: Gift emoji (🎁) followed by reward titles and descriptions - Tags: Associated tags for categorization and filtering The layout automatically adapts based on which elements are enabled, showing either a two-column layout (hero image + content) or single-column display. The block uses wide alignment by default for better content presentation. Related Blocks - Challenges Block - Display collections of challenges on collection pages - Events Block - Display individual event details on template pages - Itinerary Block - Display individual itinerary details on template pages - Listing Block - Display individual listing details on template pages

Last updated on Sep 16, 2025

Content

Content Block The Content block displays a single content item from your Tourismo admin platform. It automatically adapts to different content types and can display various media formats including images, videos, and embedded content. Overview The Content block is designed for single content pages where you want to display detailed information about one specific content item. It intelligently handles different content types from your Tourismo admin platform, including Block Editor content, Markdown, Plain Text, URLs, and Media. The block automatically detects the content type and renders it appropriately, supporting both single images and media carousels. Block Features & Options Display Modes - Content Type Detection: Automatically detects and renders content based on its type - Single Content Mode: Optimized for individual content pages - Multiple Content Mode: Can display content in collection contexts Layout Options - Show Title: Display the content title - Show Description: Display the content description/body - Show Image: Display the content hero image - Show Media: Display additional media gallery - Show Tags: Display content tags Content Type Support - Block Editor: HTML content with embedded media (videos, iframes) - Markdown: Rich text content with markdown formatting - Plain Text: Simple text content - URL: External link display - Media: Image or video gallery with carousel support - Media And Markdown: Combined media and text content How it Works The Content block queries your Tourismo Platform API to retrieve a single content item. It automatically detects the content type and renders it appropriately. For media content, it supports both single images and carousels using Flickity. The block handles different content types intelligently - Block Editor content can include embedded videos and iframes, while Media content can display image galleries or video players. How to Add & Configure 1. Add the Content block to your page using the block editor 2. Select Content Type (if needed) - Choose a specific content type for filtering 3. Configure Display Options - Toggle title, description, image, media, and tags display 4. Set Block Alignment - Choose left, center, right, wide, or full alignment 5. Add Custom Classes - Apply additional CSS classes if needed The block automatically adapts based on the page context - it will display differently on single content pages versus collection pages. Shortcode Usage Basic Shortcode [tourismo-content] Complete Options Table | Option | Type | Default | Description | |--------|------|---------|-------------| | content_type | string | "" | Content type name for filtering (multiple content mode) | | content_type_slug | string | "" | Content type slug for filtering (single content mode) | | show_title | boolean | true | Display the content title | | show_description | boolean | true | Display the content description/body | | show_image | boolean | true | Display the content hero image | | show_media | boolean | true | Display additional media gallery | | show_tags | boolean | false | Display content tags | | custom_template_name | string | "" | Custom template override name | | class_name | string | "" | Additional CSS classes | | align | string | "" | Block alignment: "left", "center", "right", "wide", "full" | Practical Examples Display content with all elements: [tourismo-content show_title="true" show_description="true" show_image="true" show_media="true" show_tags="true"] Minimal display with only title and description: [tourismo-content show_image="false" show_media="false" show_tags="false"] Filter by specific content type: [tourismo-content content_type="blog-post"] Custom alignment and classes: [tourismo-content align="center" class_name="my-custom-content"] Content Displayed The Content block displays a single content item with the following information: - Title: Content title (if enabled) - Hero Image: Featured image (if enabled) - Content Body: Rendered based on content type: - Block Editor: HTML content with embedded media - Markdown: Formatted text with markdown support - Plain Text: Simple text content - URL: Clickable external link - Media: Image/video gallery with carousel - Media And Markdown: Combined media and text - Media Gallery: Additional images/videos (if enabled) - Tags: Content tags (if enabled) Content Type Handling Block Editor Content: Supports embedded videos, iframes, and rich HTML content Media Content: Automatically creates carousels for multiple images/videos Markdown Content: Renders with full markdown formatting support URL Content: Displays as clickable external links The block automatically handles responsive design and provides appropriate styling for each content type. Related Blocks - Contents Block - Display multiple content items - Title Block - Display content titles - Description Block - Display content descriptions - Tags Block - Display content tags

Last updated on Sep 16, 2025

Contents

Contents Block The Contents block displays multiple content items from your Tourismo admin platform. It can show all content or filter by specific content types, with flexible layout options including card and list views. Overview The Contents block is ideal for creating content showcases, blog-style layouts, or content directories. It automatically pulls content from your Tourismo admin platform and displays it in an organized, responsive grid. You can filter content by type, control the layout, and customize what information is displayed for each content item. Block Features & Options Display Modes - Content Type Filter: Select a specific content type to display only that type of content - View Type: Choose between card layout or list layout - Columns: Set the number of columns (1-4) for responsive grid layout Layout Options - Show Title: Display the content title - Show Description: Display the content description - Show Image: Display the content hero image - Button Text: Customize the "Read More" button text Content & Filter Options - Content Type Slug: Filter content by specific content type - Sort By: Sort content by name or other criteria - Linked Page ID: Required - Link to a collection page for navigation How it Works The Contents block queries your Tourismo Platform API to retrieve content items. It can display all content or filter by a specific content type. The block automatically excludes the current content item when viewed on a single content page to avoid showing the same item twice. Content is displayed in either a card layout with Bootstrap styling or a list layout with larger images. How to Add & Configure 1. Add the Contents block to your page using the block editor 2. Select a Content Type (optional) - Choose a specific content type to filter results 3. Choose View Type - Select "Card" for grid layout or "List" for vertical layout 4. Set Columns - Choose 1-4 columns for responsive grid layout 5. Configure Display Options - Toggle title, description, and image display 6. Set Linked Page - Required - Link to a collection page for navigation 7. Customize Button Text - Set custom text for the "Read More" button Shortcode Usage Basic Shortcode [tourismo-contents] Complete Options Table | Option | Type | Default | Description | |--------|------|---------|-------------| | content_type_slug | string | "" | Filter content by specific content type slug | | view_type | string | "card" | Display layout: "card" or "list" | | columns | string | "3" | Number of columns: "1", "2", "3", or "4" | | show_title | boolean | true | Display content titles | | show_description | boolean | true | Display content descriptions | | show_image | boolean | true | Display content hero images | | button_text | string | "Read More" | Custom text for read more button | | sort_by | string | "name" | Sort order for content items | | linked_page_id | string | "" | Required - ID of collection page for navigation | | custom_template_name | string | "" | Custom template override name | | class_name | string | "" | Additional CSS classes | | align | string | "" | Block alignment: "left", "center", "right", "wide", "full" | Practical Examples Display all content in 2-column card layout: [tourismo-contents columns="2" linked_page_id="123"] Show only blog posts in list layout: [tourismo-contents content_type_slug="blog-post" view_type="list" linked_page_id="123"] Custom button text with 4-column layout: [tourismo-contents columns="4" button_text="Learn More" linked_page_id="123"] Minimal display without images: [tourismo-contents show_image="false" linked_page_id="123"] Content Displayed The Contents block displays content items from your Tourismo admin platform with the following information: - Title: Content title (if enabled) - Description: Content description with markdown support (if enabled) - Hero Image: Featured image (if enabled) - Read More Button: Links to the individual content page Layout Options Card Layout: Content displayed in Bootstrap cards with consistent spacing and styling List Layout: Content displayed vertically with larger images and more prominent text The block automatically handles responsive design, adjusting column layout based on screen size. Related Blocks - Content Block - Display a single content item - Itineraries Block - Display itinerary collections - Listings Block - Display business/listing collections - Events Block - Display event collections

Last updated on Sep 16, 2025

Description

Description Block The Description block displays description content from your Tourismo admin platform records. It's designed for template pages where you want to showcase either the full description or short description of itineraries, listings, events, challenges, or other content types with proper markdown formatting. Overview Use the Description block to create rich content displays on your template pages. This block is perfect for: - Template pages showing detailed content descriptions - Tourism websites with comprehensive location and activity information - Event sites displaying detailed event descriptions - Business directories with rich business descriptions - Challenge pages with detailed challenge information Block Features & Options Display Modes - Full Description: Display complete description content - Short Description: Show condensed description when available - Markdown Support: Automatic markdown to HTML conversion - Responsive Design: Centered content with proper spacing Layout Options - Custom CSS Class: Add custom styling classes - Template Customization: Use custom template names for advanced styling - Page Type Detection: Automatic styling based on content type Content Display Options - Description Type Selection: Choose between full or short descriptions - Markdown Processing: Automatic formatting of markdown content - Conditional Display: Only shows when description content is available How it Works The Description block pulls description content from the current Tourismo record and displays it with proper markdown formatting. The block automatically detects the page type and applies appropriate styling classes. Content is centered by default and wrapped in a responsive container with proper spacing. How to Add & Configure 1. Add the Block: In the WordPress editor, add the "Description" block to your template page 2. Choose Description Type: Select "Full Description" or "Short Description" in the block settings 3. Customize Styling: Add custom CSS classes for advanced styling 4. Test Display: Preview how the description appears on different content types Shortcode Usage Basic Shortcode [tourismo-description] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | description_type | string | "full" | Description type ("full" or "short") | | custom_template_name | string | "" | Custom template name for advanced styling | | class_name | string | "" | Custom CSS class for styling | Practical Examples Basic Description Display [tourismo-description] Short Description [tourismo-description description_type="short"] Description with Custom Styling [tourismo-description class_name="text-muted small" description_type="full"] Description with Custom Template [tourismo-description custom_template_name="my-description-template"] Content Displayed The Description block displays rich content with proper formatting: - Full Descriptions: Complete description content from the record - Short Descriptions: Condensed descriptions when available - Markdown Formatting: Automatically converts markdown to HTML with proper styling - Responsive Layout: Centered content with appropriate spacing and typography - Conditional Display: Only renders when description content exists The block uses .itin and .itinerator-description CSS classes for easy styling and automatically includes page type classes (e.g., .itinerator-page-type-itinerary) for targeted styling. Related Blocks - Title Block - Display the name/title of your content - Content Block - Display additional content sections - Tags Block - Show content tags and categories - Challenge Block - Display individual challenge details on template pages

Last updated on Sep 16, 2025

Event

Event Block The Event block displays a single event's details on an event template page. It's designed for individual event pages where you want to showcase comprehensive event information including dates, times, locations, contact details, and action buttons. Overview The Event block is ideal for: - Individual event detail pages - Event template pages in your site structure - Comprehensive event information display - Event registration and ticket sales pages - Event marketing and promotion pages Block Features & Options Display Modes - Two-Column Layout: Hero image and event details side-by-side (when both are enabled) - Single Column: Full-width content when only one element is shown - Responsive Design: Automatically adjusts layout for different screen sizes Layout Options - Show Hero: Display event hero image (default: disabled) - Show Name: Display event title (default: disabled) - Show Region Name: Display associated region name (default: disabled) - Show Description: Display event description with markdown support (default: disabled) - Show Event Date/Times: Display event scheduling with recurring event support (default: disabled) Content & Information Options - Show Featured Status: Highlight featured events with star icon (default: disabled) - Show Cost: Display event pricing information (default: disabled) - Show Email: Display contact email address (default: disabled) - Show Phone: Display contact phone number (default: disabled) - Show Tags: Display event tags/categories (default: disabled) - Show Ticket URL: Display ticket purchase button (default: disabled) - Show Website: Display event website button (default: disabled) Display Toggles - Custom Template Name: Use custom template override - Alignment: Full-width alignment support How it Works The Event block displays comprehensive event information in a responsive layout. It automatically detects the current event from the page context and shows relevant information based on your display settings. The block supports recurring events with expandable date listings, markdown formatting for descriptions, and intelligent layout that adapts based on which content elements are enabled. How to Add & Configure 1. Add the Event block to an event template page (not a collection page) 2. Set Display Options: Choose which event information to show 3. Configure Layout: Enable hero image and content sections as needed 4. Add Contact Information: Enable phone, email, and website display 5. Enable Action Buttons: Turn on ticket purchase and website links 6. Customize Content: Adjust description, dates, and other details Shortcode Usage Basic Shortcode [tourismo-event] Complete Options Table | Option | Type | Default | Description | |--------|------|---------|-------------| | custom_template_name | string | "" | Custom template override name | | align | string | "" | Block alignment | | class_name | string | "" | Additional CSS classes | | show_hero | boolean | false | Display event hero image | | show_featured_status | boolean | false | Show featured event indicators | | show_name | boolean | false | Display event name | | show_region_name | boolean | false | Display associated region name | | show_cost | boolean | false | Display event cost | | show_event_date_times | boolean | false | Show event dates and times | | show_description | boolean | false | Display event description | | show_email | boolean | false | Show contact email address | | show_phone | boolean | false | Show contact phone number | | show_tags | boolean | false | Display event tags | | show_ticket_url | boolean | false | Show ticket purchase button | | show_website | boolean | false | Show event website button | Practical Examples Basic Event Display [tourismo-event show_name="true" show_description="true"] Event with Hero Image and Details [tourismo-event show_hero="true" show_name="true" show_description="true" show_event_date_times="true"] Event with Contact Information [tourismo-event show_name="true" show_email="true" show_phone="true" show_website="true"] Event with Action Buttons [tourismo-event show_name="true" show_ticket_url="true" show_website="true"] Complete Event Display [tourismo-event show_hero="true" show_name="true" show_region_name="true" show_cost="true" show_event_date_times="true" show_description="true" show_email="true" show_phone="true" show_tags="true" show_ticket_url="true" show_website="true"] Content Displayed The Event block displays: - Hero Image: Event hero image in responsive layout (when enabled) - Event Information: Name, region, cost, description - Date and Time Details: Next event occurrence with recurring event support - Location Information: Event venue details with addresses - Contact Details: Email and phone with clickable links - Tags: Event categories and classifications - Action Buttons: Ticket purchase and website links - Featured Indicators: Star icons for featured events - Recurring Event Details: Expandable list of upcoming occurrences The block automatically adapts its layout: - Two-column: When both hero image and content are enabled - Single column: When only one element is shown - Responsive: Adjusts for mobile and desktop viewing Related Blocks - Events Block - Display event collections on collection pages - Title Block - Page title display - Description Block - Content description display - Map Block - Interactive map display - Socials Block - Social media links

Last updated on Sep 16, 2025

Filter

Filter Block The Filter block creates interactive filtering controls that allow users to search or filter content on your page. It supports four filter types: search input, region selection, tag category selection, and listing type selection. Filters work with both collection blocks and map blocks for dynamic content filtering. Overview The Filter block is used to provide user-controlled filtering functionality on pages with collection blocks and map blocks. It creates either a search input field or a dropdown select menu depending on the filter type chosen. The block automatically populates dropdown options from your Tourismo data and includes the necessary data attributes for JavaScript filtering functionality. Filter selections are saved in the URL for easy sharing and bookmarking. Block Features & Options Filter Type Options - Search: Creates a text input field for keyword searching - Region: Creates a dropdown with all available regions from your Tourismo data - Tag Category: Creates a dropdown with tags from a specific category - Listing Type: Creates a dropdown with all available listing types from your Tourismo data Display Options - Filter Placeholder: Custom text displayed in the input field or dropdown - Tag Category: Required when using "Tag Category" filter type - selects which tag category to use - Region Display Mode: Controls how hierarchical regions are displayed (only available for Region filter type): - Show Only Top/Parent Regions: Displays only top-level regions (default) - Show All Parent and Children: Displays all regions in a hierarchical format (e.g., "Canada > Alberta") - Show Only Current Region Children: Displays only the child regions of the current page's region (only available on region pages) Layout Options - Custom CSS Class: Add custom CSS classes for styling How it Works The Filter block fetches data from your Tourismo API based on the selected filter type: - Region filters pull from the regions list and can display either top-level regions only or the full hierarchical structure (uses is_tree=true parameter for hierarchical modes) - Tag category filters pull tags from the specified category - Listing type filters pull from the listings main types list - Search filters create a simple text input The block renders with specific data attributes (data-itin-filter="true" and data-itin-filter-type) that enable JavaScript filtering functionality when used with collection blocks and map blocks on the same page. Integration with Collection Blocks When used with collection blocks (Listings, Events, etc.): - Filters show/hide items based on the selected criteria - Search filter performs text matching on visible content - Multiple filters work together to refine results Integration with Map Blocks When used with map blocks: - Region filters: Map re-fetches and displays only locations from the selected region - Tag filters: Map displays only locations with the selected tag - Listing type filters: Map shows only listings of the selected type - Map automatically re-renders markers when filter selections change - Filter selections are saved in URL parameters (e.g., ?filter-region=vancouver-island) Smart Filter Option Management Filter dropdowns intelligently enable/disable options based on available content: - Map-only pages: All filter options remain enabled (no restrictions) - Pages with searchable items: Options are enabled/disabled based on item availability - Mixed pages (map + searchable items): Options consider both content sources - Tag filters: Only check searchable items (map markers don't include tag data) - Region/Listing type filters: Check both searchable items and map markers How to Add & Configure 1. Add the Filter block to your page using the block editor 2. Select Filter Type from the block settings sidebar: - Choose "Search" for text-based filtering - Choose "Region" for region-based filtering - Choose "Tag Category" for tag-based filtering - Choose "Listing Type" for listing type-based filtering 3. Configure Filter Placeholder with custom text for the input/select field 4. Select Region Display Mode (if using region filter type): - Choose "Show Only Top/Parent Regions" for a simple list of main regions - Choose "Show All Parent and Children" to include sub-regions in a hierarchical format - Choose "Show Only Current Region Children" to display only sub-regions of the current page's region (only available on region pages) 5. Select Tag Category (if using tag category filter type) from available categories 6. Add Custom CSS Class if needed for styling Shortcode Usage Basic Shortcode [tourismo-filter] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | filter_type | string | search | Filter type: search, region, tag-category, or listing-type | | filter_placeholder | string | Search | Placeholder text for the input/select field | | tag_category | string | "" | Required when filter_type is tag-category - specifies which tag category to use | | region_display_mode | string | top-level-only | When filter_type is region: top-level-only, hierarchical, or current-region-children | | custom_template_name | string | "" | Custom template override name | | class_name | string | "" | Additional CSS classes | Examples Search Filter: [tourismo-filter filter_type="search" filter_placeholder="Search itineraries..."] Region Filter (Top Level Only): [tourismo-filter filter_type="region" filter_placeholder="Select a region"] Region Filter (Hierarchical): [tourismo-filter filter_type="region" region_display_mode="hierarchical" filter_placeholder="Select a region"] Region Filter (Current Region Children): [tourismo-filter filter_type="region" region_display_mode="current-region-children" filter_placeholder="Select a sub-region"] Tag Category Filter: [tourismo-filter filter_type="tag-category" tag_category="activities" filter_placeholder="Select activity type"] Listing Type Filter: [tourismo-filter filter_type="listing-type" filter_placeholder="Select listing type"] Content Displayed The Filter block displays a single form control that changes based on the filter type: - Search type: Text input field with search icon - Region type: Dropdown select menu with populated options - Top-level only mode: Shows main regions like "Canada", "United States" - Hierarchical mode: Shows full structure like "Canada", "Canada > Alberta", "Canada > BC" - Current region children mode: Shows only sub-regions of the current page's region (e.g., "Alberta", "BC" when on a Canada page) - Tag type: Dropdown select menu with populated options - Listing type: Dropdown select menu with populated options from your Tourismo listing types The block uses Bootstrap styling with the .itin prefix and includes responsive grid layout. The form control is wrapped in a container with appropriate CSS classes for styling and JavaScript targeting. Typical Usage Examples Directory Page with Map [tourismo-filter filter_type="region" filter_placeholder="Filter by Region"] [tourismo-filter filter_type="listing-type" filter_placeholder="Filter by Type"] [tourismo-map show_listings_markers="true"] Users can filter the map by region and listing type. Event Calendar with Filters [tourismo-filter filter_type="region" filter_placeholder="Select Region"] [tourismo-filter filter_type="tag-category" tag_category="event-type" filter_placeholder="Event Type"] [tourismo-events display_mode="grid"] Users can filter events by region and event type category. Mixed Content Page [tourismo-filter filter_type="listing-type" filter_placeholder="Select Type"] [tourismo-listings display_mode="grid"] [tourismo-map show_listings_markers="true"] Filters apply to both the listing grid and the map simultaneously. Related Blocks - Map – Interactive maps with filter integration - Collection Blocks: Use filter blocks with collection blocks (Itineraries, Listings, Events, etc.) to enable user filtering - Content Blocks: Often used alongside other content blocks in template pages

Last updated on Oct 02, 2025

Form

Form Block The Form block displays a customizable form that allows visitors to submit information. Forms are created in the Tourismo admin platform and can include various field types like text, email, dates, file uploads, and more. Overview The Form block is used to collect information from website visitors. It supports multiple field types and can be configured with reCAPTCHA protection. Forms are managed in the Tourismo admin platform and then displayed on your WordPress site. Common Use Cases: - Contact forms - Booking requests - Event registrations - Feedback collection - Information requests Block Features & Options Form Selection - Select Form: Choose which form to display from your Tourismo admin forms Display Options - Show Name: Display the form's name as a heading - Show Description: Display the form's description text Security Options - Enable reCAPTCHA: Add Google reCAPTCHA protection to prevent spam submissions - Requires reCAPTCHA configuration in plugin settings - Can be enabled/disabled per form block - Validates submissions server-side with Google Layout Options - Alignment: Left, center, or right align the form - Custom CSS Class: Add custom CSS classes for styling How it Works The Form block connects to your Tourismo admin platform to retrieve form configurations. When a visitor submits the form, the data is sent back to the Tourismo platform for processing. The block supports various field types including text, email, dates, file uploads, checkboxes, and dropdown selections. Form Data Preservation: If form submission fails (e.g., missing reCAPTCHA), all entered data is preserved so users don't lose their work. They only need to complete the missing requirements and resubmit. reCAPTCHA Integration: When enabled, Google reCAPTCHA v2 (checkbox) is displayed above the submit button. The form validates the reCAPTCHA response server-side before processing the submission. How to Add & Configure 1. Add the Form Block to your page or post 2. Select a Form from the dropdown in the block settings sidebar 3. Configure Display Options: - Toggle "Show Name" to display the form title - Toggle "Show Description" to display form description - Enable "reCAPTCHA" for spam protection 4. Set Layout Options: - Choose alignment (left, center, right) - Add custom CSS classes if needed Shortcode Usage Basic Shortcode [tourismo-form selectedForm="123"] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | selected_form | string | required | The ID of the form to display | | show_name | boolean | true | Display the form name as heading | | show_description | boolean | true | Display the form description | | enable_recaptcha | boolean | true | Enable Google reCAPTCHA protection | | align | string | "" | Form alignment (left, center, right) | | class_name | string | "" | Custom CSS class name | Examples Basic form with reCAPTCHA: [tourismo-form selected_form="123" show_name="true" show_description="true" enable_recaptcha="true"] Form with custom styling: [tourismo-form selected_form="456" align="center" class_name="custom-form-style"] Minimal form display: [tourismo-form selected_form="789" show_name="false" show_description="false"] Content Displayed The Form block displays a complete web form with the following elements: - Form Title (optional): The name of the form as a heading - Form Description (optional): Explanatory text about the form - Form Fields: All configured fields from the Tourismo admin platform - reCAPTCHA (optional): Google reCAPTCHA verification - Submit Button: Button to submit the form Supported Field Types - Text Fields: Single-line and multi-line text input - Number Fields: Numeric input with optional min/max values - Email Fields: Email address validation - Website Fields: URL input with validation for website addresses - Date Fields: Date picker with optional date ranges - DateTime Fields: Date and time picker - Select Fields: Dropdown or radio button selections - MultiSelect Fields: Checkbox groups or multi-select dropdowns - Boolean Fields: Checkbox for yes/no responses - Image Fields: File upload for images with preview Related Blocks - Content Block: For displaying static content alongside forms - Title Block: For adding custom headings above forms - Description Block: For additional explanatory text Notes - Forms must be created in the Tourismo admin platform before they can be used - reCAPTCHA requires configuration in your WordPress settings (see Configuration Guide) - Form submissions are processed through the Tourismo platform - File uploads support multiple images with preview functionality - Date and time fields can be restricted to specific ranges and days - Form data is automatically preserved if submission fails, preventing data loss - reCAPTCHA uses Google's v2 (checkbox) implementation for user-friendly protection

Last updated on Sep 16, 2025

Itinerary

Itinerary Block Displays a detailed itinerary with stops, events, and an interactive map. This block shows the complete journey including legs (days/segments), individual stops, and provides both list and map views. Overview The Itinerary block is used on template pages to display a complete itinerary with all its components. It shows the itinerary name, description, and organizes stops into legs (days or segments). Each stop can be a listing, event, or informational note. The block provides both a detailed list view and an interactive map view with numbered markers. Use cases: - Display a complete travel itinerary with multiple stops - Show day-by-day journey breakdowns - Provide interactive map navigation - Present events and listings in chronological order Block Features & Options Display Modes - List View: Detailed stop-by-stop breakdown with descriptions and contact information - Map View: Interactive map with numbered markers for each stop - Tabbed Interface: Switch between list and map views (mobile-responsive) Layout Options - Leg Titles: Show/hide day/segment titles - Leg Introductions: Display introductions for each leg - Stop Numbering: Numbered badges for each stop - Responsive Design: Mobile-optimized with collapsible navigation Content & Filter Options - Itinerary Selection: Choose specific itinerary or use page context - Stop Information: Control display of names, descriptions, hero images - Listing Information: Control display of names, descriptions, addresses, contact details, cities - Event Details: Show/hide event costs, ticket links, websites, phone numbers, location details - Media Display: Show/hide hero images for stops and notes Display Toggles - Itinerary Content: Name, description - Itinerary Hero Image: Show hero image in two-column layout with name/description - Stop Information: Names, descriptions, hero images - Listing Information: Names, short descriptions, descriptions, cities, addresses, phone, email, website, booking links, tags - Event Information: Name, description, cost, ticket URLs, website, phone, location details - Region Information: Name, subtitle, short description, description (for region-type stops only) - Leg Information: Titles, introductions, hero images How it Works The Itinerary block retrieves itinerary data from the Tourismo API and displays it in a structured format. It organizes stops into legs (representing days or segments) and renders each stop based on its type (listing, event, or note). The block provides both a detailed list view and an interactive map view with numbered markers corresponding to each stop. Data flow: 1. Retrieves itinerary data (either from page context or specific itinerary ID) 2. Organizes stops into legs with proper numbering 3. Renders each stop type appropriately (listing, event, region, or note) 4. Displays comprehensive listing, event, and region details based on attribute settings 5. Shows hero images for itinerary, legs, and individual stops 6. Generates map markers for stops with coordinates 7. Provides tabbed interface for list/map views How to Add & Configure 1. Add the block to a template page (Itinerary page type) 2. Configure itinerary source: - If on an Itinerary template page: automatically uses page context - If on other page types: select specific itinerary from dropdown 3. Set display options in the block sidebar: - Toggle itinerary name and description - Configure stop information display - Set event detail visibility - Control leg title and description display 4. Preview the block to see both list and map views Shortcode Usage Basic Shortcode [tourismo-itinerary] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | linked_page_id | string | "" | Required - ID of the linked listing page | | linked_region_page_id | string | "" | Required - ID of the linked region page | | custom_template_name | string | "" | Custom template name for advanced customization | | specific_itinerary | string | "" | Specific itinerary ID (if not using page context) | | itinerary_region_id | string | "" | Region ID for the itinerary | | class_name | string | "" | Additional CSS classes | | align | string | "full" | Block alignment (left, center, right, full) | | show_image | boolean | false | Show itinerary hero image in two-column layout | | show_name | boolean | true | Show itinerary name | | show_description | boolean | true | Show itinerary description | | show_stop_name | boolean | true | Show stop names | | show_stop_description | boolean | true | Show stop descriptions | | show_stop_hero | boolean | false | Show hero images for stops | | show_listing_name | boolean | true | Show listing names | | show_listing_short_description | boolean | false | Show listing short descriptions | | show_listing_description | boolean | false | Show listing descriptions | | show_listing_city | boolean | false | Show listing cities | | show_listing_address | boolean | false | Show listing addresses | | show_listing_phone | boolean | false | Show listing phone numbers | | show_listing_email | boolean | false | Show listing email addresses | | show_listing_website | boolean | true | Show listing websites | | show_listing_booking_link | boolean | false | Show listing booking links | | show_listing_tags | boolean | false | Show listing tags | | show_leg_title | boolean | true | Show leg titles | | show_leg_introduction | boolean | false | Show leg introductions | | show_leg_hero | boolean | false | Show leg hero images | | show_event_cost | boolean | true | Show event costs | | show_event_ticket_url | boolean | true | Show event ticket URLs | | show_event_website | boolean | true | Show event websites | | show_event_phone | boolean | false | Show event phone numbers | | show_event_location | boolean | true | Show event location details | | show_event_name | boolean | false | Show event names | | show_event_description | boolean | false | Show event descriptions | | show_region_name | boolean | false | Show region names | | show_region_short_description | boolean | false | Show region short descriptions | | show_region_description | boolean | false | Show region descriptions | | show_region_subtitle | boolean | false | Show region subtitles | Practical Examples Basic itinerary display: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456"] Itinerary with minimal information: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" show_listing_address="false" show_listing_phone="false" show_listing_email="false" show_listing_tags="false"] Itinerary with enhanced event details: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" show_event_cost="true" show_event_ticket_url="true" show_event_website="true" show_event_phone="true"] Itinerary with comprehensive listing details: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" show_listing_name="true" show_listing_short_description="true" show_listing_description="true" show_listing_city="true" show_listing_address="true" show_listing_phone="true" show_listing_email="true" show_listing_website="true" show_listing_booking_link="true" show_listing_tags="true"] Itinerary with region-type stops: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" show_region_name="true" show_region_subtitle="true" show_region_short_description="true" show_region_description="true"] Itinerary with hero image: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" show_image="true"] Itinerary with leg hero images: [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" show_leg_hero="true"] Specific itinerary (not on template page): [tourismo-itinerary linked_page_id="123" linked_region_page_id="456" specific_itinerary="789"] Content Displayed The Itinerary block displays: Itinerary Header: - Itinerary name and description - Hero image (optional, displays in two-column layout) Legs (Days/Segments): - Leg titles and introductions - Numbered stops within each leg Stop Types: - Listings: Name, subtitle, short description, description, city, address, contact details, website, booking links, tags, hero images - Events: Name, subtitle, description, cost, ticket links, website, phone, location, time, hero images - Regions: Name, subtitle, short description, description, hero images - Notes: Description, subtitle, and optional hero images Note: Stop hero images are displayed at the end of each stop section, after all other content. Stop subtitle is available as a property and can be accessed via shortcodes ([itin-subtitle] and [itin-stripped-subtitle]). Interactive Map: - Numbered markers for each stop with coordinates - Info windows with stop details - Clickable links to stop pages Navigation: - Tabbed interface (list/map views) - Mobile-responsive collapsible leg navigation - Sticky navigation on mobile devices Related Blocks - Itineraries Block - Collection block for displaying multiple itineraries - Map Block - Standalone interactive map - Title Block - Display itinerary name separately - Description Block - Show itinerary description independently

Last updated on Nov 06, 2025

Listing Buttons

Listing Buttons Block A container block that groups multiple website and booking buttons for a listing. This block only allows Listing Website Button blocks as children, providing a structured way to display multiple action buttons together. Overview The Listing Buttons block is designed for template pages where you want to display multiple action buttons for a listing (such as website, booking, or other external links). It acts as a container that automatically creates and manages Listing Website Button blocks, ensuring consistent styling and layout for all buttons. Block Features & Options Layout Options - Alignment - Controls block alignment (wide, full) - Custom CSS Class - Adds custom CSS classes for styling - Typography Controls - Font size, family, weight, and style options - Spacing Controls - Margin and block gap settings Button Management - Automatic Button Creation - Automatically creates a default Listing Website Button when the block is added - Button Styling Inheritance - Child buttons inherit typography and spacing settings from the container - Flexible Layout - Buttons are arranged in a flexible layout with customizable spacing How it Works The Listing Buttons block is a specialized container that only accepts Listing Website Button blocks as children. When you add this block, it automatically creates a default button. You can then add additional buttons or modify the existing ones. The container provides consistent styling and spacing for all child buttons. How to Add & Configure 1. Add the block to a template page with Page Type set to "Listing" 2. Configure the default button that's automatically created 3. Add additional buttons by clicking the "+" button or using the block inserter 4. Set alignment if needed (wide or full width) 5. Adjust typography and spacing in the block sidebar 6. Add custom CSS classes if you need specific styling Shortcode Usage Basic Shortcode [tourismo-listing-buttons] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | custom_template_name | string | "" | Custom template name for advanced customization | | class_name | string | "" | Custom CSS classes | Examples Basic button container: [listing-buttons] With custom styling: [listing-buttons class_name="my-custom-buttons"] With custom template: [listing-buttons custom_template_name="custom-buttons-layout"] Content Displayed The Listing Buttons block displays: - Container wrapper with WordPress buttons styling - Child buttons (Listing Website Button blocks) arranged in a flexible layout - Consistent spacing between buttons using block gap controls - Responsive layout that adapts to different screen sizes Each child button can be configured independently with: - Button type (website or booking website) - Button text - Width settings (25%, 50%, 75%, 100%) - Color and typography styling - Border and spacing options Related Blocks - Listing Website Button Block - Individual button blocks used within this container - Listing Info Block - For displaying comprehensive listing information including buttons - Title Block - For displaying the listing name - Description Block - For displaying the listing description

Last updated on Sep 16, 2025

Listing Info

Listing Info Block Displays comprehensive information about a single listing on a template page. This block shows the listing's image, name, contact details, hours, description, and other key information in a structured layout. Overview The Listing Info block is designed for single listing template pages where you want to display detailed information about one specific listing. It automatically adapts its layout based on which content elements you choose to display, creating either a single-column or two-column layout with the listing image and information. Block Features & Options Display Toggles - Show Image - Displays the listing's hero image (default: enabled) - Show Name - Displays the listing name as a heading (default: enabled) - Show Subtitle - Displays the listing subtitle (default: disabled) - Show Short Description - Displays the listing's short description (default: disabled) - Show Description - Displays the full description with markdown support (default: disabled) - Show Hours - Displays operating hours (default: enabled) - Show City - Displays the listing's city (default: disabled) - Show Address - Displays the full address (default: enabled) - Show Phone - Displays phone number with icon (default: disabled) - Show Email - Displays email with mailto link (default: disabled) - Show Website - Displays "Visit Website" button (default: enabled) - Show Booking Link - Displays "Book Now" button (default: disabled) - Show Socials - Displays social media links with icons (default: disabled) - Show Tags - Displays listing tags as badges (default: disabled) - Show Related Itineraries - Displays linked itineraries (default: disabled) Layout Options - Alignment - Controls block alignment (default: wide) - Custom CSS Class - Adds custom CSS classes for styling How it Works The Listing Info block automatically detects which content elements are available and enabled, then creates an appropriate layout. When both image and content are shown, it creates a responsive two-column layout. When only one type of content is available, it uses a full-width single-column layout. The block only works on pages with Page Type set to "Listing". How to Add & Configure 1. Add the block to a template page with Page Type set to "Listing" 2. Configure display options in the block sidebar to show/hide specific content elements 3. Set alignment if needed (wide is recommended for this block) 4. Add custom CSS classes if you need specific styling Shortcode Usage Basic Shortcode [tourismo-listing-info] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | show_image | boolean | true | Show the listing's hero image | | show_name | boolean | true | Show the listing name | | show_subtitle | boolean | false | Show the listing subtitle | | show_short_description | boolean | false | Show the short description | | show_description | boolean | false | Show the full description | | show_hours | boolean | true | Show operating hours | | show_city | boolean | false | Show the listing's city | | show_address | boolean | true | Show the full address | | show_phone | boolean | false | Show phone number | | show_email | boolean | false | Show email address | | show_website | boolean | true | Show website button | | show_booking_link | boolean | false | Show booking button | | show_socials | boolean | false | Show social media links | | show_tags | boolean | false | Show listing tags | | show_related_itineraries | boolean | false | Show related itineraries | | align | string | wide | Block alignment | | class_name | string | "" | Custom CSS classes | Examples Show basic listing information: [listing-info show_name="true" show_image="true" show_address="true" show_website="true"] Show comprehensive listing details: [listing-info show_name="true" show_image="true" show_subtitle="true" show_description="true" show_hours="true" show_phone="true" show_email="true" show_website="true" show_booking_link="true" show_socials="true" show_tags="true"] Show only contact information: [listing-info show_image="false" show_name="true" show_address="true" show_phone="true" show_email="true" show_website="true"] Content Displayed The Listing Info block displays content in a responsive layout: - Image Column (when enabled): Shows the listing's hero image - Content Column: Shows all enabled information elements including: - Listing name and subtitle - Descriptions (short and full) - Operating hours in a structured list - Location information (city and address) - Contact details (phone, email) - Action buttons (website, booking) - Social media links with icons - Tags displayed as badges - Related itineraries list The layout automatically adapts to show either a two-column layout (image + content) or single-column layout depending on which elements are enabled. Related Blocks - Title Block - For displaying just the listing name - Description Block - For displaying just the listing description - Listing Website Button Block - For displaying just the website button - Listing Buttons Block - For displaying multiple action buttons

Last updated on Sep 16, 2025

Map

Map Block The Map block displays interactive Google Maps with markers, boundaries, and labels for your content. It can show locations from the current page (if it's a template page), linked pages, or filtered content based on tags and filters. The map supports custom marker styling, boundary visualization, click interactions, and integrates with filter blocks for dynamic content filtering. Overview Use the Map block to: - Display interactive maps with custom markers and boundaries - Show locations from multiple content types (regions, listings, events, itineraries) - Link to specific pages to display their locations on the map - Filter content by tags, regions, and listing types - Integrate with filter blocks for dynamic, real-time filtering - Customize marker appearance, colors, and boundary styling - Apply custom CSS classes to markers for advanced styling Block Features & Options Display Toggles: - showRecordMarkers (default: true): Show markers for the current page's location - showRecordBoundaries (default: true): Show boundaries for the current page - showRecordLabels (default: false): Show labels for the current page - showListingsMarkers (default: false): Show markers for linked listing page - showListingsBoundaries (default: false): Show boundaries for linked listing page - showListingsLabels (default: true): Show labels for linked listing page - showRegionsMarkers (default: true): Show markers for linked region page - showRegionsBoundaries (default: false): Show boundaries for linked region page - showRegionsLabels (default: true): Show labels for linked region page - showEventsMarkers (default: false): Show markers for linked event page - showEventsBoundaries (default: false): Show boundaries for linked event page - showEventsLabels (default: false): Show labels for linked event page - showItinerariesMarkers (default: false): Show markers for linked itinerary page - showItinerariesBoundaries (default: false): Show boundaries for linked itinerary page - showItinerariesLabels (default: true): Show labels for linked itinerary page Marker Styling Options: - markerFillColor (default: "#EA4335"): Background color of markers - markerStrokeColor (default: "#fff"): Border color of markers - markerStrokeWeight (default: 1): Border thickness of markers - markerWidth (default: 50): Width of markers in pixels - markerHeight (default: 50): Height of markers in pixels - markerUrl (default: ""): Custom image URL for markers - markerAnchor (default: "0, 0"): Anchor point for custom markers (x, y coordinates in pixels) - markerOrigin (default: "0, 0"): Origin point for custom markers (x, y coordinates in pixels) - markerLabelOriginHeight (default: 0): Height offset for marker labels - markerLabelClass (default: "itinerator-map-marker-label"): CSS class for marker labels Boundary Styling Options: - boundaryFillColor (default: "#222"): Fill color of boundaries - boundaryFillOpacity (default: 0.3): Opacity of boundary fill - boundaryStrokeColor (default: "#000"): Border color of boundaries - boundaryStrokeOpacity (default: 1): Opacity of boundary borders - boundaryStrokeWeight (default: 1): Border thickness of boundaries Content & Filter Options: - linkedPageId: Link to a specific page to show its locations - linkedRegionPageId: Link to a region page to show its locations - linkedEventPageId: Link to an event page to show its locations - linkedItineraryPageId: Link to an itinerary page to show its locations - listingType: Filter listings by main type (e.g., "apres_paddle", "accommodation") - tagFilters: Array of tag filter objects with category, ID, and location type - pageType: Automatically set to the current page type - recordId: Automatically set to the current page's record ID Layout Options: - className: Custom CSS class for additional styling - customTemplateName: Use a custom template for the map block How it Works The Map block uses Google Maps API to display interactive maps with the following data flow: 1. Data Sources: The block can display locations from: - Current page (if it's a template page with location data) - Linked pages (via linkedPageId, linkedRegionPageId, linkedEventPageId, linkedItineraryPageId) - Tag-filtered content (via tagFilters with type-specific targeting) - Listing type filtering (via listingType) 2. Display Logic: The block shows markers, boundaries, and labels based on the toggle settings for each content type (Record, Listings, Regions, Events, Itineraries) 3. Interactive Features: - Markers can be clicked to show info windows with location details - Boundaries can be clicked to navigate to linked pages - Map automatically adjusts zoom and center based on visible content - Single marker displays are properly centered with appropriate zoom level 4. Tag Filter Integration: The map supports advanced tag filtering with type-specific targeting: - Type-Specific Tag Filters: Apply tag filters to specific location types (listings, regions, events, itineraries) - Global Tag Filters: Apply tag filters to all location types - Mixed Filtering: Combine global and type-specific filters for precise control - API Integration: Filters are passed to the Rails API with proper parameter formatting - Fallback Logic: Type-specific filters override global filters for that specific type 5. Filter Block Integration: The map integrates with filter blocks for dynamic filtering: - Region Filters: Fetches locations from the selected region - Tag Filters: Filters locations by selected tags - Listing Type Filters: Filters locations by listing main type - Map automatically re-fetches and re-renders when filters change - Filter options are intelligently enabled/disabled based on available map data 6. Styling & CSS Classes: Markers and labels receive automatic CSS classes for advanced styling: - Marker containers: itin-marker-container + type-specific classes - Main type classes: itin-marker-{main_type} (e.g., itin-marker-apres-paddle) - Location type classes: itin-marker-type-{type} (e.g., itin-marker-type-listing) - Region slug classes: Region slug as a class (e.g., vancouver-island) - Data attributes: data-main-type, data-location-id, data-location-type, data-location-name, data-location-slug, data-region-slug - Custom marker and boundary appearance can be configured through the styling options How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Map" in the block inserter 4. Select "Itinerator Map" from the results 5. Configure settings in the block sidebar: - Display Options: Toggle markers, boundaries, and labels for different content types (Listings, Regions, Events, Itineraries) - Marker Styling: Customize marker appearance, colors, and sizes - Boundary Styling: Customize boundary appearance and colors - Linked Pages: Select specific pages to display their locations (Listings, Regions, Events, Itineraries) - Listing Type Filter: Filter listings by main type - Tag Filters: Configure type-specific tag filtering for precise content control Filter Integration The Map block integrates seamlessly with filter blocks to provide dynamic, real-time filtering: Setting Up Filters 1. Add Filter Blocks to your page (region, tag-category, or listing-type) 2. Add the Map Block to display locations 3. Filters automatically work together - changing a filter will update the map How Filters Work with Maps - Region Filter: Map fetches locations only from the selected region - Tag Filter: Map displays only locations with the selected tag - Listing Type Filter: Map shows only listings of the selected type - Multiple Filters: All active filters work together to refine results - URL Parameters: Filter selections are saved in the URL for sharing Filter Option Management - Map-only pages: All filter options remain enabled - Mixed content pages: Filter options are enabled/disabled based on both searchable items and map markers - Tag filters: Work with searchable items only (map markers don't include tag data) - Region/Listing Type filters: Consider both searchable items and map markers Tag Filter Configuration The Map block includes advanced tag filtering capabilities that allow you to apply tag filters to specific location types: Setting Up Tag Filters 1. Add Tag Filters: In the block sidebar, scroll to the "Tag Filters" section 2. Configure Each Filter: - Tag Category: Select the tag category (e.g., "Activities", "Amenities") - Tag Name: Choose the specific tag from that category - Apply to Location Type: Choose which location types this filter affects: - Apply to All Locations: Filter affects all location types (listings, regions, events, itineraries) - Listings Only: Filter affects only listing locations - Regions Only: Filter affects only region locations - Events Only: Filter affects only event locations - Itineraries Only: Filter affects only itinerary locations Tag Filter Examples Example 1: Global Filtering - Add a tag filter for "Hiking" set to "Apply to All Locations" - This will show only locations tagged with "Hiking" across all content types Example 2: Type-Specific Filtering - Add a tag filter for "Accommodation" set to "Listings Only" - Add another tag filter for "Trails" set to "Itineraries Only" - This will show accommodation listings and trail itineraries separately Example 3: Mixed Filtering - Add a global tag filter for "Family-Friendly" (affects all types) - Add a specific tag filter for "Luxury" set to "Listings Only" - This will show family-friendly content across all types, but only luxury listings API Integration Tag filters are automatically converted to the appropriate API parameters: - Global tags: Sent as tagIds=1,2,3 - Type-specific tags: Sent as filter[listing_tag_ids]=1,2, filter[event_tag_ids]=3,4, etc. - Fallback logic: Type-specific filters override global filters for that specific type Shortcode Usage Basic Shortcode [tourismo-map show_record_markers="true" show_record_boundaries="true" show_regions_markers="true"] Shortcode with Events and Itineraries [tourismo-map show_listings_markers="true" show_events_markers="true" show_itineraries_markers="true" linked_event_page_id="123" linked_itinerary_page_id="456"] Shortcode with Listing Type Filter [tourismo-map show_listings_markers="true" listing_type="apres_paddle"] Shortcode with Tag Filters [tourismo-map show_listings_markers="true" show_itineraries_markers="true" tag_filters='[{"category":"activities","id":"123","locationType":"all"}]'] Shortcode with Type-Specific Tag Filters [tourismo-map show_listings_markers="true" show_events_markers="true" tag_filters='[ {"category":"activities","id":"123","locationType":"listing"}, {"category":"amenities","id":"456","locationType":"event"} ]'] Shortcode with Custom Marker Styling [tourismo-map marker_url="https://example.com/custom-marker.png" marker_width="64" marker_height="64" marker_anchor="32,64" marker_origin="0,0"] Note: marker_anchor and marker_origin use comma-separated coordinates (e.g., "25,50") not array notation. The format is "x,y" where x and y are pixel values. Shortcode Options | Attribute | Type | Default | Description | |----------------------------|----------|---------|------------------------------------------------| | show_record_markers | boolean | true | Show markers for current page location | | show_record_boundaries | boolean | true | Show boundaries for current page | | show_record_labels | boolean | false | Show labels for current page | | show_listings_markers | boolean | false | Show markers for linked listing page | | show_listings_boundaries | boolean | false | Show boundaries for linked listing page | | show_listings_labels | boolean | true | Show labels for linked listing page | | show_regions_markers | boolean | true | Show markers for linked region page | | show_regions_boundaries | boolean | false | Show boundaries for linked region page | | show_regions_labels | boolean | true | Show labels for linked region page | | show_events_markers | boolean | false | Show markers for linked event page | | show_events_boundaries | boolean | false | Show boundaries for linked event page | | show_events_labels | boolean | false | Show labels for linked event page | | show_itineraries_markers | boolean | false | Show markers for linked itinerary page | | show_itineraries_boundaries| boolean | false | Show boundaries for linked itinerary page | | show_itineraries_labels | boolean | true | Show labels for linked itinerary page | | marker_fill_color | string | #EA4335 | Background color of markers | | marker_stroke_color | string | #fff | Border color of markers | | marker_stroke_weight | number | 1 | Border thickness of markers | | marker_width | number | 50 | Width of markers in pixels | | marker_height | number | 50 | Height of markers in pixels | | marker_url | string | "" | Custom image URL for markers | | marker_anchor | string | "0,0" | Anchor point for custom markers (comma-separated x,y coordinates, e.g., "25,50") | | marker_origin | string | "0,0" | Origin point for custom markers (comma-separated x,y coordinates, e.g., "0,0") | | marker_label_origin_height | number | 0 | Height offset for marker labels | | marker_label_class | string | "itinerator-map-marker-label" | CSS class for marker labels | | boundary_fill_color | string | #222 | Fill color of boundaries | | boundary_fill_opacity | number | 0.3 | Opacity of boundary fill | | boundary_stroke_color | string | #000 | Border color of boundaries | | boundary_stroke_opacity | number | 1 | Opacity of boundary borders | | boundary_stroke_weight | number | 1 | Border thickness of boundaries | | linked_page_id | string | "" | Link to a specific page to show its locations | | linked_region_page_id | string | "" | Link to a region page to show its locations | | linked_event_page_id | string | "" | Link to an event page to show its locations | | linked_itinerary_page_id | string | "" | Link to an itinerary page to show its locations| | listing_type | string | "" | Filter listings by main type | | tag_filters | array | [] | Array of tag filter objects with category, ID, and location type | | class_name | string | "" | Custom CSS class | | custom_template_name | string | "" | Use a custom template for the map block | Content Displayed - Interactive Google Map: Full-featured map with zoom, pan, and street view - Custom Markers: Styled markers for locations with optional labels and CSS classes - Boundaries: Geographic boundaries (polygons) for regions or areas - Info Windows: Click markers to see location details including: - Location name and description - Hero image - Address (if available) - Related itineraries (for events and other content) - Link to full details page - Linked Navigation: Click boundaries to navigate to linked pages - Dynamic Filtering: Real-time map updates based on filter selections Typical Usage - Template Pages: Show the current resource's location with custom styling - Collection Pages: Display multiple locations with filtering options - Region Pages: Show region boundaries and contained locations - Business Directories: Display business locations with custom markers and type filtering - Event Maps: Show event locations with linked event pages - Itinerary Maps: Display trail locations and routes - Filtered Maps: Combine with filter blocks for dynamic, user-controlled filtering Advanced Styling with CSS Classes All map markers automatically receive CSS classes based on their data, enabling powerful styling options: Example: Style Markers by Type /* Target all accommodation listings */ .itin-marker-accommodation { opacity: 0.8; } /* Target all aprΓ¨s paddle listings */ .itin-marker-apres-paddle path { fill: #FFC107 !important; } /* Target markers in a specific region */ .vancouver-island path { stroke: #2196F3 !important; } /* Target listing type markers */ .itin-marker-type-listing { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); } Available CSS Selectors - .itin-marker-container - All marker containers - .itin-marker-{main_type} - Specific listing types (e.g., .itin-marker-accommodation) - .itin-marker-type-{type} - Content types (.itin-marker-type-listing, .itin-marker-type-event) - .{region-slug} - Region-based targeting (e.g., .vancouver-island) - [data-main-type="..."] - Data attribute selectors - [data-region-slug="..."] - Region-based data selectors Related Blocks - Filter – Add dynamic filtering controls for maps and content - Title – Display page titles and headers - Description – Show descriptive content - Content – Display rich content areas - Listings – Display listing collections - Regions – Display region collections - Events – Display event collections - Itineraries – Display itinerary collections

Last updated on Dec 08, 2025

Socials

Socials Block Display social media links for the current record with customizable icon and URL display options. Overview The Socials block shows social media links associated with the current record (listing, event, etc.). It automatically displays all social media links configured in the Tourismo admin platform, with options to show icons, URLs, or both. Use this block when you want to: - Display social media links for businesses or events - Show social media icons with clickable links - Provide visitors with ways to connect on social platforms - Add social media presence to template pages Block Features & Options Display Options - Show Icon - Display social media icons (default: enabled) - Show URL - Display the actual social media URLs as text (default: disabled) Layout Options - Custom CSS Class - Add custom CSS classes for styling How it Works The Socials block automatically retrieves social media links from the current record's data. It displays each social media platform as a clickable link with an icon (if enabled) and/or the URL text (if enabled). The block uses WordPress dashicons for most social platforms and includes a custom TikTok icon. How to Add & Configure 1. Add the block to a template page (Region, Itinerary, Listing, Event, etc.) 2. Configure display options in the block sidebar: - Toggle "Show Icon" to display social media icons - Toggle "Show URL" to display the actual URLs as text 3. Add custom CSS class if needed for styling 4. Preview the block to see how social links appear Shortcode Usage Basic Shortcode [tourismo-socials] Shortcode Options | Option | Type | Default | Description | |--------|------|---------|-------------| | show_icon | boolean | true | Display social media icons | | show_url | boolean | false | Display social media URLs as text | | custom_template_name | string | "" | Use a custom template file | | class_name | string | "" | Add custom CSS classes | Examples Show only icons (default): [tourismo-socials] Show only URLs: [tourismo-socials show_icon="false" show_url="true"] Show both icons and URLs: [tourismo-socials show_url="true"] Add custom styling: [tourismo-socials class_name="my-social-links"] Content Displayed The block displays social media links from the current record, including: - Facebook - Facebook page links - Instagram - Instagram profile links - Twitter - Twitter/X profile links - TikTok - TikTok profile links (with custom icon) - Other platforms - Any additional social media platforms configured Each social link appears as: - A clickable icon (if show_icon is enabled) - The URL text (if show_url is enabled) - Opens in a new tab when clicked Related Blocks - Listing Info - Shows comprehensive business information including social links - Content - Display rich content areas - Description - Show description text

Last updated on Sep 16, 2025

Tags

Tags Block Displays tags associated with the current page content in a clean badge format. The Tags block shows tags from a specific category and is commonly used on template pages to display relevant tags for listings, itineraries, events, or regions. Overview The Tags block displays tags from the current page's data in a centered, badge-style layout. It automatically filters tags by category and presents them in a clean, readable format. This block is typically used on template pages to show relevant tags that help users understand the features, amenities, or characteristics of the displayed content. Block Features & Options Display Options - Tag Category: Select which category of tags to display (e.g., "amenity", "activity", "feature") - Custom Template Name: Override the default template with a custom template file Layout Options - Custom CSS Class: Add custom CSS classes for styling How it Works The Tags block retrieves tags from the current page's data and filters them by the selected category. It displays the filtered tags in a centered layout using Bootstrap badge styling. The block automatically adapts to the page type (listing, itinerary, event, region) and applies appropriate CSS classes for styling. How to Add & Configure 1. Add the block to a template page (Region, Itinerary, Listing, Event, etc.) 2. Select Tag Category in the block sidebar to choose which type of tags to display 3. Preview the display - tags will appear as centered badges 4. Add custom CSS classes if needed for additional styling Shortcode Usage Basic Shortcode [tourismo-tags] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | tag_category | string | "" | Category of tags to display (e.g., "amenity", "activity") | | custom_template_name | string | "" | Custom template file name to override default | | class_name | string | "" | Additional CSS classes for styling | Examples Display amenity tags: [tourismo-tags tag_category="amenity"] Display activity tags with custom styling: [tourismo-tags tag_category="activity" class_name="my-custom-tags"] Use custom template: [tourismo-tags tag_category="feature" custom_template_name="custom-tags"] Content Displayed The Tags block displays: - Filtered tags from the selected category - Tag names in badge format - Centered layout with responsive design - Page-type specific styling (listing, itinerary, event, region) The block automatically: - Filters tags by the selected category - Displays tags in a clean badge format - Centers the content on the page - Applies appropriate CSS classes based on page type Related Blocks - Filter Block - Filter content by tags - Content Block - Display general content - Description Block - Show detailed descriptions - Listing Info Block - Display listing-specific information

Last updated on Sep 16, 2025

Tasks

Tasks Block The Tasks block displays a list of tasks associated with a specific challenge from your Tourismo admin platform. It's designed for challenge template pages where you want to showcase the individual tasks that users can complete as part of the challenge, including check-ins, forms, and QR code scans. Overview Use the Tasks block to create interactive task lists on challenge detail pages. This block is perfect for: - Challenge pages showing task requirements and completion steps - Gamified experiences with check-in, form, and QR code tasks - Interactive challenges with weighted scoring systems - Location-based challenges with specific task instructions Block Features & Options Display Modes - Task List Display: Show tasks in a structured list format - Interactive Dialogs: Modal dialogs for detailed task information - Responsive Design: Automatically adapts to different screen sizes Layout Options - Alignment: Left, center, or right alignment options - Custom CSS Class: Add custom styling classes - Template Customization: Use custom template names for advanced styling Content Display Options - Task Names: Show target names as task titles - Task Descriptions: Display task type descriptions with icons - Form Integration: Embed forms directly in task dialogs - Weight Display: Show task point values with star ratings Display Toggles - Show Name: Toggle task name display - Show Description: Toggle task description display - Show Form: Toggle form display in task dialogs How it Works The Tasks block fetches tasks associated with the current challenge from your Tourismo admin platform and displays them in an interactive list. Each task shows an icon, name, description, and point value. Clicking "View Details" opens a modal dialog with specific task information, including embedded forms for FormTask types, QR code instructions for QrCodeTask types, and location details for CheckInTask types. How to Add & Configure 1. Add the Block: In the WordPress editor, add the "Tasks" block to your challenge template page 2. Configure Display Options: Use the block settings sidebar to toggle which elements to show 3. Set Layout: Choose alignment and add custom CSS classes for styling 4. Test Interactions: Preview the task dialogs and form functionality 5. Verify Challenge Context: Ensure the block is placed on a challenge template page Shortcode Usage Basic Shortcode [tourismo-tasks] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | custom_template_name | string | "" | Custom template name for advanced styling | | show_name | boolean | true | Show task names | | show_description | boolean | true | Show task descriptions | | show_form | boolean | true | Show forms in task dialogs | | class_name | string | "" | Custom CSS class for styling | | align | string | "" | Block alignment (left, center, right) | Practical Examples Basic Tasks Display [tourismo-tasks] Tasks with Custom Styling [tourismo-tasks class_name="custom-tasks" align="center"] Tasks with Minimal Display [tourismo-tasks show_description="false" show_form="false"] Tasks with Custom Template [tourismo-tasks custom_template_name="my-tasks-template"] Content Displayed The Tasks block displays comprehensive task information in an interactive layout: - Task Icons: Visual indicators for different task types: - 🏠 CheckInTask - Visit location and check in - πŸ“ FormTask - Complete the form - πŸ“± QrCodeTask - Visit location and scan QR code - ❓ Unknown task types - Task Names: Target names displayed as bold titles - Task Descriptions: Type-specific descriptions explaining what users need to do - Point Values: Star ratings (⭐) showing task weight/points - Interactive Dialogs: Modal windows with detailed task information: - FormTask: Embedded forms for completion - QrCodeTask: QR code images and scanning instructions - CheckInTask: Location details and check-in instructions - RepeatTask: Interval information for recurring tasks The block automatically adapts its display based on which elements are enabled and provides interactive functionality for task completion. Task Types CheckInTask - Icon: 🏠 - Description: Visit location and check in - Dialog Content: Location details and check-in instructions FormTask - Icon: πŸ“ - Description: Complete the form - Dialog Content: Embedded form for task completion QrCodeTask - Icon: πŸ“± - Description: Visit location and scan QR code - Dialog Content: QR code image and scanning instructions RepeatTask - Icon: Varies by base type - Description: Recurring task with interval - Dialog Content: Interval information (e.g., "Repeats every 7 days") Related Blocks - Challenge Block - Display individual challenge details on template pages - Challenges Block - Display collections of challenges on collection pages - Form Block - Display standalone forms for task completion - Event Block - Display individual event details on template pages

Last updated on Sep 16, 2025

Title

Title Block The Title block displays a prominent title and optional subtitle for your page or resource, with optional background image support. It is typically used at the top of template pages (like single itinerary, listing, region, or event pages) to provide a visually distinct header. Overview Use the Title block to: - Show the main resource name as a large heading - Optionally display a subtitle - Optionally display a background hero image - Add a visually distinct header to your template pages Block Features & Options Display Options: - show_name (default: true): Show the main title (resource name) - show_subtitle (default: true): Show the subtitle if available - show_image (default: true): Show a background image if the resource has a hero image Layout & Style Options: - align: Alignment of the block (left, center, right) - class_name: Custom CSS class for additional styling - color: (optional) Custom color for the title text - custom_template_name: Use a custom template for the title block How it Works - The block pulls the name and subtitle from the current resource (e.g., itinerary, listing, region, or event). - If show_image is enabled and a hero image exists, the block displays the image as a background. - The block is styled with .itin and .itinerator-title classes for easy targeting. - The block is responsive and centers content by default, but alignment can be changed via the align option. How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Title" in the block inserter 4. Select "Itinerator Title" from the results 5. Configure settings in the block sidebar Shortcode Usage Basic Shortcode [tourismo-title show_name="true" show_subtitle="true" show_image="true" align="center"] Shortcode Options | Attribute | Type | Default | Description | |--------------------|----------|---------|---------------------------------------------| | show_name | boolean | true | Show the main title (resource name) | | show_subtitle | boolean | true | Show the subtitle if available | | show_image | boolean | true | Show background image if available | | align | string | "" | Alignment (left, center, right) | | class_name | string | "" | Custom CSS class | | color | string | "" | Custom color for the title text | | custom_template_name| string | "" | Use a custom template for the title block | Content Displayed - Title: The main resource name (e.g., itinerary name, listing name) - Subtitle: The resource subtitle, if available - Background Image: The resource’s hero image, if available and enabled Typical Usage - Place at the top of a template page to provide a visually distinct header - Use in combination with other blocks (e.g., Description, Map) for a complete resource layout Related Blocks - Content – Display rich content areas - Description – Show description text - Map – Display interactive maps

Last updated on Sep 16, 2025