Naviga Web
Docs Home
  • Introduction
  • Release notes
  • Starter kit
    • Introduction
    • Environment Variables
    • Makefile
    • Changelog
    • API
  • Feature: Advanced Search
    • User guide
    • Search Help
    • How to Setup
    • Technical Details
  • Developer documentation
    • Developer prerequisites
      • Developer hardware suggestions
      • Setup on Windows
      • Setup on Linux/Ubuntu
    • Getting started with development
      • Composer package management
      • Gulp and asset building (optional)
      • Git
      • Hosts file
      • Certificate
      • Initiate Naviga Web
      • Start Naviga Web
      • Bin scripts
      • Create theme
      • Environments
      • Deployment
      • Onboarding tasks
        • #0 - New site
        • #1 - Configuration
        • #2 - Front page
        • #3 - Content presentation
        • #4 - OC List
        • #5 - Content containers
        • #6 - Teaser template
        • #7 - Single article
        • #8 - Widget
        • #9 - Custom task
        • #10 - Feedback
    • Architecture
    • Paywall and authentication
      • CloudFront Paywall
      • Engage paywall
      • Lua Paywall (deprecated)
    • Project management: A typical project
    • Database dump
    • Debugging
    • Keep your project up-to-date
    • Gulp and Sass
    • Domain mapping
    • Widgets overview
  • Starter kit packages
    • Base package
      • Changelog
    • Boards plugin (EveryBoard)
      • Installation
      • Setup
      • Board Widgets
        • Linked board
        • Template board
        • Embed widget
        • OC List item
        • Content container
      • Teaser templates
      • Actions and filters
      • Export - import
      • Changelog
    • ContentSync plugin
      • Usage
      • Changelog
    • Drop In Plugins package
      • Changelog
    • Everyware plugin
      • Installation
      • Setup
      • Actions and filters
      • Fetching lists and their content
      • Sorting
      • Widgets
      • Changelog
    • Imengine package
      • Helper class: Imengine
      • Changelog
    • NewsML package
      • Idf Parser
      • Changelog
      • Usage
    • NGINX conf package
      • API
      • Changelog
      • Usage
    • Presentation Preview plugin
      • API
      • Changelog
      • Usage
    • Support package
      • Changelog
    • Theme EU resources package*
      • Changelog
    • Theme US resources package
      • Changelog
    • Twig package
      • Development
        • Filters
          • class_string
          • spacey
          • trim_array
        • Functions
          • php_function
          • php_method
          • render_classes
          • render_partial
        • Operators
          • contains
      • Helper classes
        • View
        • ViewSetup
      • Changelog
  • Widgets and component packages
    • Article List widget
      • Installation
      • Using Article List
      • Changelog
    • Menu handler
      • Usage
      • Changelog
    • Section Header widget
      • Changelog
    • Social media icons widget
      • Installation
      • Changelog
    • Google Analytics plugin
      • Set up Google Analytics
      • Most read widget
      • Changelog
    • Redirect Original URLs plugin
      • Installation
      • Changelog
    • Settings Parameters plugin
      • Installation
      • Usage
      • Changelog
  • Design and theme packages
    • Base theme 1
      • Changelog
    • Base theme 2
      • Colors
      • Fonts
      • Header
      • Menus
      • Pages with Board
      • Sidebars
      • Teaser layouts
      • Article page (text)
      • Article page (embeds)
      • Changelog
    • Example theme
      • Changelog
  • MU Plugins
    • Project Plugin
      • Installation
      • Changelog
    • Starter Package Catalyst
    • Concepts
      • Admin Pages
        • All Concepts
        • Add New Concept
        • Types
        • Errors
        • Concept duplicates
      • API
      • Console
      • Changelog
    • Network
      • Changelog
    • Cache Invalidator
      • Getting Started & WP admin
      • Implementation of Lua endpoint
      • Filters
      • Changelog
    • RSS Feeds
      • Setup
      • Administration pages
      • Changelog
  • Services
    • Imengine
    • Imengine documentation
    • Open Content
    • Writer Bookmarklet
Powered by GitBook
On this page
  • Article parts
  • Image
  • Table
  • HTML embed
  • Gallery (Image gallery)
  • Content part
  • External link (inline related article)
  • PDF document
  • YouTube video
  • YouPlay video
  • Social Embeds
  • Iframely
  • Create your own article template

Was this helpful?

  1. Design and theme packages
  2. Base theme 2

Article page (embeds)

NewsML article parts described

PreviousArticle page (text)NextChangelog

Last updated 2 years ago

Was this helpful?

Article parts

Body don't only contain , but also richer content can be added. From Naviga tools, or externally hosted content like images, video or links.

These are the types supported by Naviga Web current Base theme 2 version.

Image

Image renders the 16:9 crop, using Imengine. If crop is not set, image will be force cropped to 16:9 by Naviga Web.

Shown data: Image src, caption, photographer(s) name, alt text

Type: x-im/image

Template: views/article/image.twig

Table

Supported settings:

  • Table caption <caption>

  • Header <thead>

  • Footer <tfoot>

  • Merged cells colspan

  • Column index

  • Number format

  • Text format

Type: x-im/table

Template: views/article/table.twig

HTML embed

This could be used for any embed using iframe or javascript. For example videos, social media, podcasts or other 3rd party article content integrations.

Type: x-im/htmlembed

Template: views/article/html-embed.twig

Gallery (Image gallery)

Type: x-im/imagegallery

Template: views/article/gallery.twig

Content part

Used to present for example fact boxes inside the article text.

  • Headline

  • Title

  • Image

  • Paragraphs: Extracts, merges and renders all nested elements and inline styles.

Type: x-im/content-part

Template: views/article/content-part.twig

External link (inline related article)

Renders a clickable inline teaser as a block in the article body.

The link block shows

  • Linked article first Section name (Concept)

  • First headline

Type: x-im/article

Template: views/article/related-article.twig

PDF document

Links to embedded pdf shows as a link block with link text from the pdf title that was set in Writer. Default in Writer is the pdf filename.

Type: x-im/pdf

Template: views/article/pdf.twig

YouTube video

Embeds a YouTube video player. Doesn't autoplay.

Type: x-im/youtube

Template: views/article/youtube.twig

YouPlay video

Embeds a YouPlay video player.

Type: x-im/youplay

Template: views/article/youplay.twig

Social Embeds

Type: x-im/socialembed

These are the subtypes (content) of social embed that are currently supported:

NewsML type

Template views/article/

Instagram photo

x-im/instagram

instagram.twig

Facebook page

x-im/facebook-page

facebook-page.twig

Facebook post

x-im/facebook-post

facebook-post.twig

Facebook video

x-im/facebook-video

facebook-video.twig

Facebook watch

x-im/facebook-watch

facebook-watch.twig

Tweet (Twitter status update)

x-im/tweet

twitter.twig

Vimeo video

x-im/vimeo

vimeo.twig

SoundCloud

x-im/soundcloud

Not supported. Use HTML embed.

Iframely

Type: x-im/iframely

Template: views/article/iframely.twig

Create your own article template

Articles are rendered with single-article.php, override that in your child theme to use own php code or twig.

Extracts the images and renders them as a clickable slider. Caption and creators (photographer) shown. See for more details.

Embeds whatever content supports.

Iframely
text elements
image article part
Image example
Example table
Example HTML embed in Writer, with the pasted embed code
Example HTML embed showing embedded SoundCloud
Example image gallery
Example content part with dummy text
Example with two articles in Writer body
Example "external link" on the web site
Example attached pdf in article
Example Youtube embed
Example Instagram photo in an article
Example Facebook post in an article
Example Tweet in an article
Example Vimeo video in an article