Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 8 Monaten, 1 Woche
Letzter Beitrag:
vor 8 Monaten, 1 Woche
Beteiligte Autoren:
Arie, cardcoder

WB21 - best way to change style at runtime

Startbeitrag von Arie am 16.12.2016 09:55

Hi,

I have a site for employees where they can see their work schedule and some other things. The site is used by different companies, but it is not a public site. It's installed local at each clients site.

I want this site to appear in the company colors, so I have to change the style . Company1 in red and company2 in blue. Also some clients want to see their own logo. Of course I do not want to do this in WB, but at runtime.

I am a bit new to WB, so what are my options for this?

Antworten:

Hi Arie,

I have been playing with this same issue for a customer who wanted 2 sites with appropriate branding e.g. change of logo etc.

I made a table in the database for these parameters e.g.
led_parameter_siteID = ????
led_parameter_logo1 = logo_xxxx.jpg
led_parameter_logo2 = logo_yyyy.jpg

etc

You can do the same for the colours etc

Read the database at the beginning and the populate as required.

Hope it helps,

Mike

von cardcoder - am 16.12.2016 12:11
Thanks Mike,

that's what I had in mind first and because this is a rather small site it can be done quite fast.
It's pretty straight forward, but isn't there a some what smarter way. Like changing a style (CSS?) or template which would affect all buttons at once?

von Arie - am 16.12.2016 12:35
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.