2

Is it possible to deliver the channel info tag for two different channels?

I know the below does not work using a pipe separator.

{exp:channel:info channel="news|contact"} {channel_title} {/exp:channel:info}

Any suggestions?

1 Answer 1

1

No, it's not. There's no mention to multiples channels on docs and Boyink talks about this case too.

I don't know exactly what you're trying to do, but I believe that the query module can help you:

{exp:query sql="SELECT channel_title AS the_name_you_want_for_your_variable
    FROM exp_channels
    WHERE channel_name IN ('news','contact');"
}
    {the_name_you_want_for_your_variable}
{/exp:query}
1
  • Did my answer helped you, @Paul? If so, please, mark it as right.
    – Sobral
    Commented Jun 21, 2014 at 4:12

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.