Issue Bug Closed

#77209Adapt default RECORDS tables

Tizian Schmidlin 07/22/16, 10:45 updated 10/02/18, 11:09

Description

Hello there,

fluid_styled_content comes shipped with some tables for shortcut records but it’s nowhere checked that any of these tables are actually present. This is a huge problem because of the way the content is rendered in the RecodContentObject, since it uses enableFields and then may pass a table name that belongs to no loaded extension and then throws an exception that isn’t caugt.

I suggest that the default value is adapted as follows:

styles.content {

      // FROM
     # cat=content/cShortcut/t0; type=string; label=List of accepted tables
     shortcut.tables = tt_content,tt_address,tt_news,tx_news_domain_model_news

     // TO
     # cat=content/cShortcut/t0; type=string; label=List of accepted tables
     shortcut.tables = tt_content
}

tt_content is the only table that is sure to be there all the time.

Extensions that want to have shortcuts should register normally by using:

styles.content.shortcut.tables := addToList(tablename)

Best Regards
Tizian

Reviews 1