1

I have an additional title called {long_titles}, but do not use it for every entry. However, when I do use it, I want to suppress the {title}. I have tried several approaches but can't get it. Needs some help!

{if "{long_titles:count}" != ""}    
      <h3>{title}</h3>{/if}         
      {if:else}
<h3>{long_titles}</h3>{/if}
1
  • <h3>{if long_titles <> ""}{long_titles}{if:else}{title}{/if}</h3>
    – Ingmar
    Commented May 27, 2016 at 4:49

1 Answer 1

4

Try this:

<h3>
{if long_titles}
    {long_titles}
{if:else}
    {title}
{/if}
</h3>

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.