PROBLEM: “Show Flash Inline” by default is unchecked and to view the preview of the video in the frontend is required that this property is checked.
SOLUTION: We added and set the “default” property to 1 inside the “config” array located in the ”tx_ahnewsext_flash_inline” array in the “ext_tables.php” file:
"tx_ahnewsext_flash_inline" => Array ( ## WOP:[fields][1][fields][5][fieldname]
"exclude" => 1, ## WOP:[fields][1][fields][5][excludeField]
"label" => "LLL:EXT:ah_newsext/locallang_db.xml:tt_news.tx_ahnewsext_flash_inline", ## WOP:[fields][1][fields][5][title]
"config" => Array (
"type" => "check",
##"checkbox" => "1",
"default" => 1
)
),
Then, in order to simplify the backend interface, we removed “Show flash Inline” option changing the “ext_tables.php”:
t3lib_extMgm::addToAllTCAtypes("tt_news","tx_ahnewsext_flash_file;;;;1-1-1, tx_ahnewsext_flash_inline, tx_ahnewsext_flash_width, tx_ahnewsext_flash_height"); ##tx_ahnewsext_prev_file, tx_ahnewsext_prev_width, tx_ahnewsext_prev_height, tx_ahnewsext_flash_wo_player, tx_ahnewsext_flash_downloadlink, x_ahnewsext_flash_downloadfile, tx_ahnewsext_flash_access, tx_ahnewsext_flash_about_text
with this line of code:t3lib_extMgm::addToAllTCAtypes("tt_news","tx_ahnewsext_flash_file;;;;1-1-1, tx_ahnewsext_flash_width, tx_ahnewsext_flash_height"); ## tx_ahnewsext_flash_inline , tx_ahnewsext_prev_file, tx_ahnewsext_prev_width, tx_ahnewsext_prev_height, tx_ahnewsext_flash_wo_player, tx_ahnewsext_flash_downloadlink, x_ahnewsext_flash_downloadfile, tx_ahnewsext_flash_access, tx_ahnewsext_flash_about_text
0 comments:
Post a Comment