contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
83 stars 33 forks source link

Add badge title support #819

Open zoglo opened 1 week ago

zoglo commented 1 week ago

Implements the badge_title into the Contao Manager.

Description

Also only allows one line of text and get's cut on mobile. I made sure to wrap it down when it get's too long. See the screenshots below

Screenshots

image

Mobile image image

Long badge in new row image

Long badge image

Lifestory badge image

aschempp commented 1 week ago

This does not use the config from Contao, right?

zoglo commented 1 week ago

It doesn't, it uses the manager.json, yeah. Couldn't find a better way to do so without coding a new route and I don't know if it should :/ (I found the already implemented config route for the manager.json tho, unsure if it's what it was for)

aschempp commented 1 week ago

None of the json files are supposed to be edited by users atm, thats kinda why we have the manager in the first place ๐Ÿ˜… But isnโ€˜t there a route or already some ways to dump the container configuration? Something though the ContaoConsole?

zoglo commented 1 week ago

Didn't think of using the php console rn. Been working within the app and there wasn't a route I could use.

You'd want it to match the same badge title as in contao, right?

aschempp commented 1 week ago

You'd want it to match the same badge title as in contao, right?

Absolutely, anything else wouldn't make sense to me.

The API I was referring to is /server/contao. It already contains the config key (if supported by the given Contao version) ๐Ÿ˜Ž. Maybe you can try with that?

zoglo commented 1 week ago

Done - will only work when debug:config --format exists tho - most likely Symfony 6 aka Contao 5 :)