Greetings.
I’ve searched for this and noticed that there seems to have been a few related entries issues in the last couple builds. I’m running v2.2.2 - Build: date 20110801 and the {if no_related_entries} conditional doesn’t seem to work.
I’ve set up basic related entries and it works fine if an entry is selected, but when nothing is selected (regardless of whether it is selected and then removed, or whether it has never been selected) I get {REL[0][linked_articles]cafbxuHyREL}.
I assumed at first that this was perhaps the default behaviour if no related entry was selected, and attempted to use:
{if no_related_entries}
Content here
{/if}But it seems to have no effect. I’ve checked the Api_channel_entries.php as suggested here https://support.ellislab.com/bugs/detail/14477/#9839 but my file already has the ‘fix’.
My code is:
{related_entries id="linked_articles"}
{if no_related_entries}
No related article
{/if}
<h2>{title}</h2>
<p> {summary}<br />
<a href="http://{page_url}">Find out more</a><br />
{/related_entries}Am I doing something wrong, or is this a bug?
Cheers.