Documentation · ViewHelper reference

Be / Link / Content / NewViewHelper

Content / NewViewHelper

  • Tag usage example

    < after="123" row="{foo: 'bar'}" area="NULL">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    { 123, row: {foo: 'bar'}, area: 'NULL')}


Argument Description Type
after integer

If placed inside Fluid FCE, use this to indicate which area to insert into


Record row

Required attribute

Revision history

commit 816bf53d05097419f6475a2f29d0f39fda944458
Author: Claus Due <*****>
Date:   Fri Jan 27 23:37:29 2012 +0100

    [TASK] Assimilate nested content feature from FED
    This makes Flux the carrier of the nested content feature. After
    installing this you must must from extension config update DB,
    then manually run this query to migrate existing content:
    UPDATE tt_content SET tx_flux_column = tx_fed_fcecontentarea
    If you have custom FCEs all calls to any fed:fce, fed:page or
    fed:flexform ViewHelper (any of then, including "content" and
    "rendercontent" which have now been ported to Flux) these must
    be change to the Flux counterparts for your FCEs to work after
    this change.
    Note: a change is coming to the FED git master very soon, disabling
    these same features and removing the ViewHelpers in order to
    accomodate the hard and fast deprecation which will be done in
    FED 1.4.11. Until then your content elements may continue to fill
    data in the tt_content.tx_fed_fcecontentarea field in the DB.
    Change-Id: I42cc288499f8dc372bcfc9c7c0bdbf005c637674
    Fixes: #33349
    Fixes: #33350

commit bca97c280ff9bf35bf998af6722ff3123b59a1ee
Author: Wouter Wolters <*****>
Date:   Fri Mar 23 18:49:40 2012 +0100

    [TASK] Remove FED related stuff
    Remove all FED related stuff from Flux.
    This will make Flux work without FED installed.
    Change-Id: I765b325a3547e685926f490def753551400189fe
    Resolves: #34766

commit 64f9685401601d7ae6a00f025398a9ab141f7dd7
Author: Claus Due <*****>
Date:   Wed Jul 25 20:23:48 2012 +0200

    [TASK] Migration to FieldProvider pattern
    Changes the internal logic that is rendering FlexForm structures
    from the previous XML-to-TCA to a direct TCA approach.
    Briefly described this change...
    * Completely removes the intermediate XML step and all XML templates
    * Removes all partial templates previously used to render field XML
    * Introduces FieldProviders which function similarly to ConfigurationProviders
    * Improves performance slightly by skipping two expensive rendering steps
    * Streamlined a classes and viewhelpers
    Also contained are a few additional ViewHelpers and some basic bugfixes.
    Apologies for the combined commit; after working on this for three months
    it was too complicated to split this into smaller pieces.
    Note: fixes #37190 but cannot guarantee other extensions will not
    re-specify tt_content.colPos as something other than signed smallint(6).
    Change-Id: Ic9812b2af83a6a142b48a886617c3458c45d4dad
    Fixes: #39269
    Fixes: #37190
    Fixes: #36907
    Fixes: #34543
    Fixes: #35530
    Fixes: #38647
    Fixes: #34717
    Fixes: #34926
    Fixes: #38434

commit 17a620d364d2042b9e5198cef649fe4320003c5b
Author: Claus Due <*****>
Date:   Sun Aug 19 19:43:16 2012 +0200

    [TASK] Refactor TceMain handling into ConfigurationProvider
    Developer hint: ConfigurationProviders are now complete handlers
    for records and record fields. You can use a ConfigurationProvider
    to transform record data saved in any table, even ones belonging
    to core extensions. For example, one Provider can be triggered
    whenever a tt_news record is being saved, moved, deleted or sorted,
    another could trigger when the same is done to a tt_news category.
    This refactor adds additional methods on the ConfigurationProvider
    base class and interface, allowing methods to be executed by the
    TceMain hook based on which table is being saved to / operated on.
    Also changed is that tx_flux_column and tx_flux_parent are now
    editable fields; the select box containing content areas only
    contain areas that are actually defined in the content element.
    Also added is a ContentConfigurationProvider which contains the
    refactored methods from the TceMain hooks class. The new Provider
    is similar to the ContentConfigurationProvider in FED but where
    the FED Provider defines how (template-wise) to render a acontent
    element, this Provider defines what happens when saving or when
    re-arranging ccontent elements.
    Using the methods on the ConfigurationProvider corresponds to using
    a full TceMain hook class. Each method is executed when a particular
    action is taken, allowing the implementer to change record values
    and perform additional processing.
    It is possible to register multiple ConfigurationProviders for one
    table and even one fieldname (and even with the same priority).
    Fixes: #39974
    Fixes: #39973
    Fixes: #39633
    Change-Id: I8910085f7aeb8133d1ed30587b8358f0a04b66ff

commit 3c692a1747fce1929c8af3d04dc27f7d8fa16f35
Author: Claus Due <*****>
Date:   Thu Oct 18 18:20:33 2012 +0200

    [CGL] Concatenation styles and semicolon spacing

commit c02411473b837c126276e0de3154417fbcfd2b62
Author: Claus Due <*****>
Date:   Sun May 5 20:50:37 2013 +0200

    [BUGFIX] Inserting element after another in content area sorts wrong

commit 03fe74ad92d0d04bf4f854bad689a73a869a4189
Author: Claus Due <*****>
Date:   Sun Jun 23 01:54:53 2013 +0200

    [BUGFIX] Use of an incorrect field name in two parameters

commit 4dcb1dc52565aed8cbca816850400c548b0c7452
Author: Claus Due <*****>
Date:   Mon Aug 5 04:15:40 2013 +0200

    [TASK] Simplify ViewHelper inheritance and base class placement

commit 1d4f81cbb9ee2c30ac5c3e9185b62ef6d371d5fd
Author: Danilo Bürger <*****>
Date:   Tue Dec 3 01:08:47 2013 +0100

    [BUGFIX] Chrome render bug, validation

commit 75fcd37db43bef950b9378644d2b961635185c2a
Author: Thomas Allmer <*****>
Date:   Mon Nov 18 14:46:36 2013 +0100

    [TASK] Replace all calls to CMS functions with namespace equivalent
    A simple shell script was used for all the replacements

commit 5511d72d220d89627255e270d3ca178362f6c2b2
Author: Claus Due <*****>
Date:   Sun Nov 24 19:31:01 2013 +0100

    [TASK] Switch to namespaces

commit 356403b5ad65106d182285ce0fcce76e54a0ca00
Author: Claus Due <*****>
Date:   Mon Dec 2 22:34:28 2013 +0100

    [TASK] Rename Utility classes to suffix Utility to class name

commit 3878c943a6eb0924bb6db2e5ed8461580896431f
Author: Claus Due <*****>
Date:   Tue Dec 10 01:59:34 2013 +0100

    [TASK] Update copyright and author tags
    Assumes "Claus Due" as author whenever no author is specified.

commit fd7fc955d7adee2523638263de7944d69eb43e8c
Author: Danilo Bürger <*****>
Date:   Mon Dec 16 22:59:57 2013 +0100

    [FEATURE] Replaced -42 colPos with constant

commit 8bf2b5beb89c7d72a41230f152d9a5a3d308ba84
Author: Claus Due <*****>
Date:   Tue Dec 31 23:11:00 2013 +0100

    [TASK] Happy new year!

commit 444af1313622e2f38becbd2dcf07663669c72dc3
Author: Danilo Bürger <*****>
Date:   Mon Apr 21 15:02:26 2014 +0200

    [BUGFIX] Fix buttons

commit cc92cfe9a9bbb095402dc06bbcc02d6a9c4c851f
Author: Danilo Bürger <*****>
Date:   Tue Apr 22 02:41:14 2014 +0200

    [BUGFIX] New and localization working