Hello,
I am currently working with a record which is being used in 2 different websites on the same environment. These 2 websites have a different look and feel, and some record informations should only be displayed on one of the website, but not on the other one.
Is there a way to keep using the same record on these 2 websites, but have the summary interface dynamically change depending on the website it is accessed from ? For instance, if we access the record from website A, some cards are hidden, whereas if we access the same record from website B, the same cards are showing.
So far I haven't been able to find a way to "detect" the active website from my interface, and I am not sure this is possible.
Thanks
Discussion posts and replies are publicly visible
Will the 2 different sites both be accessed by the same base of users? If they're targeted at separate (or even mostly-separate) user subsets, you would simply need to use group-checking functionality in the SAIL code to determine which elements to show.
If both sites are expected to be used by the same users or a largely-overlapping base, then I'm less sure what you can do. I can't think of anything off the top of my head that allows you to detect (from interface code) what your current "parent site" is, apart from doing something hacky (and, notably, un-supported) like generating a URL and then seeing which site string it contains, if it's even still possible. Not that I'd ever do that. *looks around innocently*