Search…

X3 Photo Gallery Support Forums

Search…
 
RIIID
Topic Author
Posts: 11
Joined: 08 Jun 2023, 12:23

Best practice of customizations

27 Aug 2023, 12:40

Hello,
it is great that most settings allow for customizations right there in small code windows.
What would be the best practice for customizations that go beyond that?
My main concern is to stay as future-proof as possible - so the site does not brake on future updates AND the customizations do not get overwritten. So, kind of an override, added to the general code structure, rather than directly editing cached files, as recommended in the topic "X3 self-hosted Google fonts".

Regards
Richard
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Best practice of customizations

27 Aug 2023, 22:46

RIIID wrote:as recommended in the topic "X3 self-hosted Google fonts".
This was a temporary fix that will be resolved in next release (in a few weeks) by using fonts.bunny.net.
RIIID wrote:What would be the best practice for customizations that go beyond that?
My main concern is to stay as future-proof as possible - so the site does not brake on future updates AND the customizations do not get overwritten.
It depends on what you intend to do, because there is CSS, Javascript and PHP. PHP is no, unless you want to edit templates, but this is not recommended. For both CSS and Javascript, you can already include your own from panel Settings > Custom > Custom Javascript and Custom CSS, which will always remain after updating.
 
RIIID
Topic Author
Posts: 11
Joined: 08 Jun 2023, 12:23

Re: Best practice of customizations

09 Sep 2023, 01:52

Thank you.
Great to hear about the use of fonts.bunny.net.Just trying to get an idea, how X3 is engineered.