I'm currently using a template that displays an entry that could come from one of two channels like so;
{exp:channel:entries
channel="channel1|channel2"
status="open"
limit="1"
require_entry="yes"
}
{exp:stash:set parse_tags="yes" parse_depth="3" save="yes" scope="site"}
{stash:place_shortdesc}{cf_channel1_shortdescription}{cf_channel2_shortdescription}{/stash:place_shortdesc}
{stash:place_desc}{cf_channel1_description}{cf_channel2_description}{/stash:place_desc}
{/exp:stash:set}
{/exp:channel:entries}
I'm using Stash to create the variables, for example {stash:place_shortdesc}
where the short description could come from 1 of 2 fields, depending on which channel the current entry is from.
I was wondering if this is the best way to approach this, particularly for performance? or whether it needs something like conditional loading of fields based on channel?
Thanks.