Custom Theme Xibo docker 2.3.4

I have tried all to make a custom theme. But I cant get it to work as the new created theme is not shown in the backend. Is there someone that made a custom theme in DOCKER version? And is it possible to share it woth us? I tried all and want it to work.
Folders used: /opt/xibo/xibo-docker/shared/cms/web/theme/custom/mytheme
and
/opt/xibo/xibo-docker/shared/cms/web/theme/custom/mytheme/img containing the new logo woth name: xibologo.png

in the mytheme folder we created a config.php containing:

<?php
$config = array(
 'theme_name' => 'Custom CMS Theme',
 'theme_title' => 'My custom CMS Theme',
'app_name' => 'Xibo',
  'theme_url' => 'http://xibo.org.com',
 'cms_source_url' => 'https://github.com/xibosignage/xibo/',
 'cms_install_url' => 'http://xibo.org.uk/manual/en/install_windows_client.html',
 'cms_release_notes_url' => 'http://xibo.org.uk/manual/en/release_notes.html',
 );

Maybe we do somethink wrong?
Any help is welcome. Thanks in advance

Documentation for creating a theme is here:
https://xibo.org.uk/docs/developer/custom-theme-development

Once you’ve made your theme, you need to select it in the CMS settings to enable it.

The theme is exactly the same whether you use Docker or not.

Hello Alex,

Yes we followed that link but we can’t select the theme in the backend. Is there a way you can help? Logins are available.

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421 ES Nieuwkoop

M: +31647694123

Make sure your theme files are readable by the user the container runs as. You can down/up the container if you wish and it will apply permissions for you, or you can copy the numeric user ID and group ID from a file in the library instead.

Sorry Alex,

I did down and up the containers but still no luck. How can I find the user ID of the containers? What is the location?

This drives me mad

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421ES Nieuwkoop

+31647694123

Look at the user ID of any file in the library shared/cms/library and make the files owned by the same user and group.

Sorry Alex,

I did down and up the containers but still no luck. How can I find the user ID of the containers? What is the location?

This drives me mad

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421ES Nieuwkoop

+31647694123

Per my previous reply, look at the user ID of any file in the library shared/cms/library and make the files owned by the same user and group.

Hi Alex,

See screenshots:

all is same ID: 100:101

Still no luck in dropdown.

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421ES Nieuwkoop

+31647694123

Those aren’t your theme files though? That’s just a directory several levels above.

I put exactly the code you have in your earlier post in shared/cms/web/theme/custom/mytheme/config.php and I get this:
image

I’d suggest that either you don’t have shared/cms/web/theme/custom properly mapped as a volume in your cms_custom-ports.yml file (it’s there by default so you would have had to have removed it) or your PHP file doesn’t contain exactly what you have put above.

Hi Alex,

Thanks so much you take time for this. It drives me nuts.

Yes I made it like you said and here is my custom ports:

And here the files in custom (see PWD).

Maybe I am foolish but I dont seen to see what is wrong. If you want you can have SSH logins and look. I can pay if you want.

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421ES Nieuwkoop

+31647694123

By the way as I log in container I can see the thems and the config files config.php just fine:

And files in container is there:

This is accessed by the command:

docker exec -ti xibo-docker_cms-web_1 bash

So strange thing is I can see the files but nothing shows up in the backend in the dropdown.

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421ES Nieuwkoop

+31647694123

Found it! Some stupid error in config with the reversed proxy. Cache!! Thanks for the help I will try and finish up now

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421ES Nieuwkoop

+31647694123

Your file is called config.conf not config.php.

It must be called config.php

Hi Alex,

Yes I saw. So dumb. Thanks

Met vriendelijke groeten,

Ron Cooper

Stortenbekerstraat 21

2421 ES Nieuwkoop

M: +31647694123

Hi Alex,

What do we need to add where in order to style the login screen? We just want to center the loginbox and make a background image.

Thnx!

You’d put your styling in an override.css file as set out in the documentation.

https://xibo.org.uk/docs/developer/custom-theme-development#basic_changes

Hello Alex,

That is not for the login screen. So we must change in the container?

You don’t change anything inside the container.

All your changes can me made either with CSS overrides, or by overriding specific twig template files - all of which go in to your theme directory in the appropriate location.

Okay I will try. As I can see no override.css is loaded in the twig file of the login screen. How can we then add new CSS to a twigfile that does not load the stylesheet you are referring to? Do we need to make extra fields in a custom login.twig?

And how to set that up? On the link you gave me is no example of how to extend a twig file. Sorry for the hassle.