On a relationship field that allows user to select entries from multiple channels, is it possible on the front end template to use the entry’s channel name in a conditional? Like I want to use different html and display different fields depending on whether the entry is from channel A or B.

1 Answer 1


I think you can use the single channel variables to do something like this...

{home_slideshow status="open|featured"}
    {if "{home_slideshow:channel_short_name}" == "channel_events"}


  • That worked, thanks! Commented Sep 27, 2023 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.