Code Monkey home page Code Monkey logo

Comments (3)

benjaminkott avatar benjaminkott commented on August 26, 2024

@chequille please see: https://github.com/TYPO3GmbH/blog/blob/master/Classes/Controller/PostController.php#L140

We added {data} a while ago so you should be able to access these information and adapt the templates to your needs.

from blog.

chequille avatar chequille commented on August 26, 2024

Hi Benjamin,
might be, that this is working already, but I still do not know how to define layouts which can be than selected as in the screenshot
grafik
For tt_content elements i can do this in TCEFORM.tsconfig but I do not know how to do this for the Blog elements.
Do you have a sample how to do this?
BR
Chequille

from blog.

h-e-l-l-o-w-o-r-l-d avatar h-e-l-l-o-w-o-r-l-d commented on August 26, 2024

As far as I know adding items to tt_content.layout is only possible for CTypes. The blog elements have CType "list" with a specific list_type like "blog_demandedposts". So it's not possible.

Workaround: You can add a new layout in TCEFORM for list, but then you'll see it in all list elements. Make wording specific, so integrators know where it applies.

Better solutions: Best would be to extend typo3 core with the possibility to change layouts for specific list_types. Another solution is to have an own layout field (flexform) like in the news-extension.

Please re-open. ;-)

from blog.

Related Issues (20)

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.