Page 1 of 1

self-service logo

Published: November 18, 2020 - 09:34
by Paulo
Hello,
how can a personalized logo for the self-service area be applied to all customers?
By customizing the customer profile?
And how, please?
Thank you.

Re: Self-service logo

Published: November 18, 2020 - 09:51
by sfonteneau

Re: Self-service logo

Published: November 18, 2020 - 10:20 AM
by Paulo
Thank you.
Yes, it works if I copy the logo to the directory on a workstation.
Can this be automated so that all workstations receive the correct logo?
For example, with the agent deployment?

Re: Self-service logo

Published: November 18, 2020 - 10:43 AM
by sfonteneau
A package like this will do the job:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    wapt_path = WAPT.wapt_base_dir
    print('Install custom logo')
    filecopyto('waptexit-logo.png',makepath(wapt_path,'templates'))
    filecopyto('waptself-logo.png',makepath(wapt_path,'templates'))


def uninstall():
    wapt_path = WAPT.wapt_base_dir
    remove_file(makepath(wapt_path,'templates','waptexit-logo.png'))
    remove_file(makepath(wapt_path,'templates','waptself-logo.png'))

Re: Self-service logo

Published: November 18, 2020 - 10:45 AM
by Paulo
I'll try it.
Thank you very much.

Re: Self-service logo

Published: November 19, 2020 - 08:21
by Paulo
Hello,
I put the script in the setuphelpers folder of the WAPT agent package, for example?
At what point do I point the image file I want to copy to the templates directory?

Re: Self-service logo

Published: November 19, 2020 - 09:36
by sfonteneau

Code: Select all

waptexit-logo.png
waptself-logo.png
The two files simply need to be in the root directory of the package

Re: Self-service logo

Published: November 19, 2020 - 10:46 AM
by Paulo
Thank you,
I inserted the script into the agent package and copied the files.
It's not working, I must be missing something.