Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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*
Hello Mike,
I think I found a way to do it in the end by doing so :
The only problem with this solution is that you have to disable the record header, or else you can't hide the "unused" summary view in the tabs. So you have to recreate your record header directly in the interface, which can be a bit annoying.