Skip to content

Basic modules

Text Modules

  • wfed/title:

    Modules used for the titles of the articles

    • wfed/title/page_title:

      This modules should be used only once in the article template. This module is used to determine the title of the article (stored in a different column in the DB)

    • wfed/title/title:

      Using this module in boards, will autocomplete with the article's title

    • wfed/title/supra:

      Using this module in boards, will autocomplete with the article's supratitle

  • wfed/body_text:

    Modules to be used in the body of the article

    • wfed/body_text/paragraph:

      Module that has formattings (bold, italic, underlinine, etc.). Available options:

      • formattings can be a combination (array) of the following
        • short: [b, u, i, s, a],
        • extended: [short, lists],
        • full: [extended, align],
        • alignment: [align-left, align-center, align-right],//alignment doesn`t work yet
        • lists: [ol, ul],
        • b: bold,
        • u: underline,
        • i: italic,
        • ol: insertorderedlist,
        • ul: insertunorderedlist,
        • a: createLink,
        • s: strikethrough
      • styles an array (['red', 'blue']) with the CSS classes avaialble as a dropdown on the toolbar of this module
    • wfed/body_text/link:

      Link to another URL

    • wfed/body_text/page_epigraph:

      Used in a board, it populates with the selected page's epigraph (short description)

    • wfed/body_text/page_author:

      Used in a board, it populates with the selected page's author name

    • wfed/body_text/subtitle:

      Used in article templates, for subtitles (between different "chapters of the article")

    • wfed/body_text/published_at:

      Used in article templates to show the article's published at date. To format this date, check CmsBundle\Entity\PageArticle::$publishedAtFormat

Media Modules

  • wfed/image/:

    • wfed/image/simple:

      Simple image, this module displays a toolbar with an edit button allowing the editors to choose an image Available options:

        - `filter`: the avalanche filter (widthxheight) of this image. The value of this option must be configured in `app/config/misc/avalanche.yml`
      
  • wfed/video/:

    • wfed/video/linked:

      Link to a video file, this module displays a toolbar with an edit button allowing the editors to choose a video

Composite Modules

Composite modules allow to combine one or more modules. One advantage of groupping other modules as composites is when sorting, only the topmost modules are dragged, so you can combine the base modules that compose a link to an article in a board (title, epigraph, image) so they can be dragged all together.

  • wfed/composite/:
    • wfed/composite/module:

      The base of the composite module. Use this when no other builtin composite modules fits your needs

    • wfed/composite/captioned_image:

      A composite module containing an image and a caption (paragraph)

    • wfed/composite/page:

      Link to an article, this module displays a toolbar with an edit button allowing the editors to choose an article to link to. By default, it embeds the following modules: wfed/title/title, wfed/body_text/epigraph, wfed/image/simple

Collection modules

Collection modules are used where the same sub-module is repeated multiple times (e.g.: sliders)

  • wfed/collection/:

    • wfed/wfed/collection/collection//simple:

      Base collection module

    • wfed/collection/page:

      Collection of links to other articles

    • wfed/collection/related:

      Same as wfed/collection/page but, when used inside a page composite module, is autopopulated with the links to the selected article's related pages

  • wfed/gallery/:

    • wfed/gallery/simple:

      Simple gallery of images

  • wfed/slider/:

    • wfed/slider/simple:

      Slider of images

    • wfed/slider/captioned:

      Slider of images with captions

Misc modules

  • wfed/dynamic/:

    • wfed/dynamic/board:

      Embed another board inside the current one. For example, if you have a widget (links to today's opinion articles) embedded in the sidebar. This allows reusing the same board (the opinion widget) in different sidebars, positioning it higher in the homepage sidebar and lower in the category sidebar, while editing the selected articles is done in a single place

    • wfed/dynamic/listing:

      Automatic listing module

  • wfed/free/:

    • wfed/free/html:

      Free HTML module

    • wfed/dynamic/js:

      Free JS module - allows you to paste JS code, without the <script> tags

    • wfed/dynamic/ads:

      Ads module - has a setting button allowing to choose one of the positions defined in the Ad Manager

  • wfed/file/:

    • wfed/file/simple:

      Link to a static file (allows uploading of other file types, pdf, doc, etc.)

  • wfed/poll/:

    • wfed/poll/simple:

      A poll module