Add button on TYPO3 backend list view - typo3

I need to add button on TYPO3 backend list view (here for example):
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.

Related

How to add button in laravel backpack

Hello anyone can help add button like this in backpack?
thank!
add button by Inspect element.
You should be able to easily add a new button next to the Add button using $this->crud->addButtonFromView(). Check out a full example here: https://backpackforlaravel.com/docs/3.5/crud-buttons#adding-a-custom-button-with-a-blade-file
Please note that buttons are inserted in one of the 3 stacks (top, bottom, line). As far as I can tell, you're trying to add to the top stack.
Hope it helps.

Any links or HTML form items like button inside the Bootstrap 4 modal is unusable

I have cart icon, which when clicked loads the cart of the user in a Modal. However, any link or HTML form items like input or buttons that are within this modal are unusable. It can never be brought to focus nor clicked. I tried playing with CSS property z-index with no success.
Check site here.
Add any product to cart and then click bag/cart icon on the top right to see the issue.
Changing the pointer-events value in CSS solved the issue. wrapping the content part in an element with class modal-content is also fixing the issue as suggested in comments.

ionic framework hide ion-tabs on certain tab state

I've been trying to find a solution but I can't find any.
I'll use basic examples so anyone who knows ionic can understand my problem well.
ionic start myApp tabs will create a new project with tabs ready to go.
Those tabs are Dashboard, Chat and Settings.
When you go to the Chat Tab you will then select a person to view its chat content (which directs you to the Chat-Detail Page in actuallity)
I wanted to hide the ion-tabs directive when I go to the chat-detail page so I can force the user to use the Back button instead of clicking anything on the ion-tabs.
Simply put : you will have a hard time doing that. At best it will not look good, IF you succeed to hide using css (I did it, and really, it's not pretty). Basically you would need to define a variable on the parent scope, that changes when entering the chat-detail state, and bind it to ng-class directives on multiple elements (the ion-tabs to hide it, the ion-content to translate it up to cover the area where the tabs were, and add some transition to make it not too brutal).
The logical thing to do would be to have the chat-detail state not being a child of the state containing the tabs. The problem you will have, though, is that there is a huge bug going to / from tabbed state. See details here : https://github.com/driftyco/ionic/issues/2997
At the end of this discussion you can find some posts by Jason and Jerrybels (that would be me), that could lead you on the right way to do it. Basically, you will have to get rid of the ion-tabs directive, and use Ionic's CSS for tabs instead, doing all the states manipulations yourself.
Good luck !
You can use "hidden" attribute of ion-tab like this -
<ion-tab hidden={{condition}}" />
Using this we can show/hide tab.

Facebook like button pops up behind some elements

On my website the comment box that pops up when I press the Like button is placed behind some elements of the page and I really don't figure out how to fix it.
For 2 days I'm struggling with z-index property but no result and now I've found a solution by changing the overflow property of the parent div from hidden to visible/auto and it works! BUT I can't use this fix because that div has overflow set to hidden because I'm using the slimScroll plugin to customize the scrollbar...
This is the website, just click on any image and press the Like button to see what happens.
The right and left side of the popup are integrated in a table... I was thinking, if i remove the table and use just divs instead, the fix would be easier?
Thanks!

radio button parent in code

In B4A, it is possible to add radio buttons to a parent (or group them) - such as a panel, instead of using designer? I have used addview to add 3 radio buttons to a panel but no luck.
I was using designer and then decided to try 100% code but I am having no luck getting them to select properly
There should be no problem adding radio buttons with code. Can you post the code that you tried?