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.

tumblr functionality (ee2.0)

June 06, 2010 11:46am

Subscribe [2]
  • #1 / Jun 06, 2010 11:46am

    robcio

    5 posts

    I would love to make my blog had a tumblr functionality (video, chat, quotes, etc.).
    I wonder whether to create a channel for each kind of entry, or maybe display them using statuses?
    I would like that these channels were shown on one page and each of post had an icon (as is the case in Tumblr) depends of channel (video, chat, quotes etc.).
    I know that using

    {exp:channel:channel entries="text|quotes|video"}

    I can display all entries from those channels on one page, but how to distinguish each type?
    How to display various custom_fields in this case, for example quote is {quote_body}, video os {video_embed}?

    EE can do that?

    Cheers from Poland.

  • #2 / Jun 06, 2010 3:51pm

    Wouter Vervloet

    758 posts

    Hi Robcio,

    If you put them in different channels, you can use a conditional to see from which channel the current entry is:

    {exp:channel:entries channel='text|quotes|video|audio'}
    
      {if channel_short_name == 'text'}
        // Lorem ipsum dolor sit amet consectetur.
      {if:elseif channel_short_name == 'quotes'}
        // To be or not to be… what was the question again?
      {if:elseif channel_short_name == 'video'}
        // Show me the money!
      {if:elseif channel_short_name == 'audio'}
        // Shout it out!
      {/if}
    
    {/exp:channel:entries}

    Using channels has the advantage over using categories that you can show different channel fields.

    Greetz,
    Wouter

  • #3 / Jul 03, 2010 1:16pm

    robcio

    5 posts

    It works!
    Thank you a lot!

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

ExpressionEngine News!

#eecms, #events, #releases