Hi guys,
I have a project where I need to implement multiple websites, each with its own design customization.
So far, the best choice for keeping the design separated is to duplicate Swift v2 design folder.
One of the issues is the hardcoded path to various resources, and I was wondering if I could replace the hardcoded path with a dynamic "Design folder" path.
Thank you,
Adrian
Developer forum
E-mail notifications
Replace harcoded path with dynamic path
Adrian Ursu
Posted on 24/08/2026 05:06:25
Replies
Adrian Ursu
Posted on 25/08/2026 10:11:00
Bump!
Nicolai Pedersen
Posted on 25/08/2026 13:49:37
PageView.Current().Layout.Design.Name should contain the name of the websites chosen design folder.
Adrian Ursu
Posted on 25/08/2026 14:02:34
Hi Nicolai,
Thank you!
Any performance concerns?
Thank you,
Adrian
Nicolai Pedersen
Posted on 25/08/2026 14:03:37
Always!
But this one is just reading a property. Overhead is there, but probably not even measurable.
Adrian Ursu
Posted on 25/08/2026 14:05:29
Thank you!
You must be logged in to post in the forum