2017 © Pedro Peláez
 

neos-plugin neos-simple-table

Simple Html-Table NodeType for Neos CMS

image

vivomedia/neos-simple-table

Simple Html-Table NodeType for Neos CMS

  • Thursday, April 26, 2018
  • by dlubitz
  • Repository
  • 2 Watchers
  • 1 Stars
  • 314 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

Latest Stable Version Total Downloads License Maintainability, (*1)

VIVOMEDIA Neos-Simple-Table

Simple Html-Table NodeType for Neos CMS., (*2)

What it provides

Easily adding a Table-NodeType in Neos CMS., (*3)

At the moment you can provide the data as CSV string. This will be parsed and rendered as HTML-Table., (*4)

Choose if a header row and/or a highlight column needs to be rendered., (*5)

Install

Install via composer, (*6)

composer require vivomedia/neos-simple-table

Usage

Just add well formated Csv with semicolon (;) as delimiter into the data-field of the inspector. Choose if your data contains any header data and if you need the first column highlighted. Also you may add a caption for your table., (*7)

Extend

Add attributes to result table

Add classes to table

prototype(VIVOMEDIA.SimpleTable:HtmlTable) {
  attributes.class {
    table = 'table'
    striped = 'table-striped'
  }
}

Add classes to head

prototype(VIVOMEDIA.SimpleTable:HtmlTableHead) {
  attributes.class {
    something = 'something-special'
  }
}

Render icons or something other special into the cell

You can add some self-defined placeholders and replace them in your custom Fusion. For example replace all {true} or {false} keywords with an icon:, (*8)

prototype(VIVOMEDIA.SimpleTable:HtmlTableColumn) {

  content {

    isTrue {
      condition = ${item == '{true}'}
      renderer = Neos.Fusion:Tag) {
        tagName = 'img'
        attributes.src = Neos.Fusion:ResourceUri {
          path = 'resource://VIVOMEDIA.SitePackage/Public/icons/checked.svg'
        }
      }
    }

    isFalse {
      condition = ${item == '{false}'}
      renderer = Neos.Fusion:Tag) {
        tagName = 'img'
        attributes.src = Neos.Fusion:ResourceUri {
          path = 'resource://VIVOMEDIA.SitePackage/Public/icons/unchecked.svg'
        }
      }
    }
  }

Screenshots

Inspector Resulting table, (*9)

The Versions

26/04 2018

dev-master

9999999-dev

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

26/04 2018

2.1.1

2.1.1.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

27/11 2017

2.1.0

2.1.0.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

29/06 2017

1.0.x-dev

1.0.9999999.9999999-dev

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

29/06 2017

1.0.0

1.0.0.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

29/06 2017

2.0.0

2.0.0.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

21/09 2016

0.3

0.3.0.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

21/09 2016

0.2

0.2.0.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires

 

21/09 2016

0.1

0.1.0.0

Simple Html-Table NodeType for Neos CMS

  Sources   Download

MIT

The Requires