Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8808363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:36:12+00:00 2026-06-14T02:36:12+00:00

I’ve built a new content element type, and when you look in the backend,

  • 0

I’ve built a new content element type, and when you look in the backend, inside the box you can see the name of the module only. I’d like to change what information is show inside.

I could use the “header” field, but is there any way to use another field(s)?

Example module

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:36:13+00:00Added an answer on June 14, 2026 at 2:36 am

    Two answers

    First answer

    The field that’s displayed there is the same field that’s displayed in the list module. It is set in the table’s TCA using [‘ctrl’][‘label’] in the extension’s ext_tables.php

    $TCA['tx_myext_mytable'] = array(   
            'ctrl' => array(
            'title' => 'My Table'
            'label' => 'name_of_the_field_to_display_as_header' 
    // end snip
    

    Second answer

    If that is not enough for you, you can use a hook to display arbitrary HTML in the preview. The hook is called $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'].

    The hook will be called with a function with this signature:

    public function preProcess(
        tx_cms_layout &$parentObject,  // parent object
        &$drawItem,   // i have no idea what this is
        &$headerContent,  /* the content of the header
                             (the grey bar in the screenshot i think) */
        &$itemContent,  /* the content of the preview
                           (the white area in your screenshot */
        array &$row // the content element's record
    )
    

    So all you have to do in that function is set the itemContent and, if you want, headerContent to whatever you want displayed.

    Gotchas:

    1. The output is inside of a span, so no block elements allowed in the
      html. Any styling has to be done inline in the style attribute.
    2. The function will be called on every content element, so you have to
      check the row’s CType and (if applicable) list_type fields so
      that you only manipulate your own content elements.

    An example can be found in the “fed” extension. I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to select an H1 element which is the second-child in its group
Does anyone know how can I replace this 2 symbol below from the string
I am currently running into a problem where an element is coming back from
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.