Dynamically changing an interface depending on the website

Certified Senior Developer

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

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    I've checked, but unfortunately it seems that url parameters are only available for site page or portal. Here my use case is a bit different, as I need to pass a parameter trough a record link.

    With the recordLink or urlForRecord functions, there is a targetLocation parameter to specify on which site the link should be opened. Basically, what I would need is to get this information to my interface as an input.