moosh icon indicating copy to clipboard operation
moosh copied to clipboard

setting up logo and logocompact

Open marcoblancas opened this issue 7 years ago • 1 comments

  • moosh version: 0.26
  • moodle version: MOODLE_35_STABLE
  • database: mysql
  • php version: PHP 7.0.30-0ubuntu0.16.04.1
  • operating system: Ubuntu 16.05

Any way to setup the logo or logocompact in the appearance settings (admin/settings.php?section=logos) ?

I have been able to upload these files with moosh file-upload and the files are shown in this settings form but they are not shown in the theme. When I save this form the logos are displayed in the theme.

moosh file-upload -c 1 -m core_admin -f logo -p / theme/udimaboost/pix/logo-udima-horizontal-COLOR.png
moosh file-upload -c 1 -m core_admin -f logocompact -p / theme/udimaboost/pix/compact-logo.png

I tried to clear cache with moosh cache-clear but now results. I've inspected differences before and after with moosh config-get but no differences found.

Best regards.

marcoblancas avatar Aug 31 '18 19:08 marcoblancas

Hi @marcoblancas

After uploading the images, you need to set the configs. See the example below.

moosh file-upload -c 1 -m core_admin -f logo -p / mylogo.png moosh file-upload -c 1 -m core_admin -f logocompact -p / mylogocompact.png

moosh config-set logo /mylogo.png core_admin moosh config-set logocompact /mylogocompact.png core_admin

Thanks for opening this bug. My mistake was the other way around: I was setting the config right but wasn't uploading it correctly.

samueldmq avatar Apr 22 '20 23:04 samueldmq