Custom-modifications-to-xibo-cms Controller

I have installed xibo via docker and would like to make some custom modifications.

I would like to make some changes to xibo-cms/lib/Controller/user.php.
How am I able to do that?

Thanks

We have installed xibo on windows machine in our dev environment using xampp. We have made the necessary changes to the User.php file and want the same changes to be deploy on production environment which is on Linux machine(configured using docker).

We are not sure how to deploy the changes, so if you could help ?

Basically you can overwrite container files by mapping them from your server to the container inside the docker-compose.yml file

See, I do something similar here in my container.

E.G: I have a custom lib/controller/Layout.php file

I created a “mods” folder in my container folder and mapped the volume to the container

- "./shared/cms/mods/Controller/Layout.php:/var/www/cms/lib/Controller/Layout.php:Z"

The basic functioning of this volume mapping is divided with the sign “:”

Everything that comes before the ‘:’ is the path of the file that will be placed

and everything that comes after the ‘:’ is the path INSIDE the container so that it is replaced by the file you mapped.
It’s quite simple.

1 Like

Thanks for the reply… I will try this and update if I have any further concerns

Thanks for your help @pitoco02 … It was really helpful to understand how Custom changes work.

1 Like

you’re welcome!
You can mark my answer as “Solution” so that other people can also be helped by finding the answer easier

@pitoco02 I tried but cannot find the option to do that. If you have an idea, please help !