简体   繁体   中英

Add button on TYPO3 backend list view

I need to add button on TYPO3 backend list view (here for example): 错字3后端列表视图

Purpose of this button is similar to hidden button, I want to change flag Top News from 1 to 0 and from 0 to 1.

I have no idea where to start, I found how hidden button working but I have no clue how to add own button and work with it. If possible, please add any links to extension, which have solution for that problem, or code which solved that or anything else will be great.

Thanks!

You could use the $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] hook.

This way I added a custom toggle button and controlled the display of other buttons via TypoScript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM