Giter Club home page Giter Club logo

headless-container-support's Introduction

Headless Container Support (For TYPO3 v11)

Install

Install as any other extension:

  • Composer: composer require fanor51/headless-container-support

Use

Take a look into Example/TypoScript/Container/50_wrapper.typoscript there is an example on how to configure the container. The special thing here is that we add a "new" data processor to the config. the processor is mainly the one from the container extension. Something was added only at the end

After this you need to overwrite the standard lib.content object with a where clause to exclude the "special" colPos´s from the container extension.

# PRELOAD EXTENSIONS SETTINGS
@import 'EXT:headless/Configuration/TypoScript/'

# Overwrite the default lib.content from the headless extension with added colPos where in YOUR Config Extension
# Add the colPos IDS from your Container Configuration to the where
lib.content = CONTENT_JSON
lib.content {
  table = tt_content
  select {
    orderBy = sorting
    where = colPos NOT IN (201,202,203)
  }
}

In this example we use the colPoses 201,202 and 203 for container contents which where setted in the container config under Configuration/TCA/Overrides/tt_content.php. An example for this you can find here: Example/TCA/Overrides/tt_content.php

In the end it should look like this:

image description

A complete json example is under: Docs/Json/Example.json

Customize

You can customize the names from the equivalent of the colPos in the TYPOSCRIPT like you need or want it.

image description

Credits

The development of the extension was supported by the TYPO3 agency brandung GmbH.

headless-container-support's People

Contributors

fanor51 avatar brandung-gs avatar krohnmi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.