ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

listing channels

April 24, 2012 11:19am

Subscribe [2]
  • #1 / Apr 24, 2012 11:19am

    David S

    110 posts

    Hi!
    Is there a tag for listing channels?
    Something like this:

    {exp:channel:info}
            Channel Name: {channel_title}
    
    {/exp:channel:info}

    /regards David S, Sweden

  • #2 / Apr 25, 2012 12:15pm

    Dan Decker

    7338 posts

    Hi David,

    Thanks for your question!

    The Channel Info tag won’t get you what you are after. You have to supply it with a channel that you want information about, rather than it listing out all channels.

    I found Blog Info, which is similar, but supports multiple channel short names.

    I couldn’t find anything that would just output a list of all available channels. Which I think is odd 😕

    Cheers,

  • #3 / Apr 25, 2012 12:28pm

    Shane Eckert

    7174 posts

    Hi David,

    Here is a pretty awesome Add-On called Get Channels.

    I tried it and it’s pretty nice.

    One thing to note, the Developer says that site_id is optional, but it’s not. If you do not set site_id then you will get an error calling out that line number.

    With the Add-On installed I use the code below and I get a very cool listing of my channels.

    <pre><code>
    {exp:getchannels site_id="1"}
    Channel: {channel_name}<br>
    {/exp:getchannels}

    Enjoy!

    Cheers,

  • #4 / Apr 25, 2012 2:04pm

    Shane Eckert

    7174 posts

    Hi David,

    The Developer updated the Add-On and will post the updated version to Devot:ee tonight.

    Once it’s there, the site_id will no longer need to be specified. It defaults to “1”.

    Just letting you know.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases