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.

Entries from entire channel

February 23, 2012 12:09pm

Subscribe [1]
  • #1 / Feb 23, 2012 12:09pm

    Hi.

    I am trying to display 6 entries from the channel named ‘portfolio’ within a ‘view’ page.

    Currently it is only displaying the image from the URL

    My URL structure is: /channel/view/entry/category

    How can I get the code below to display from the entire channel, rather than the current entry?

    {exp:channel:entries channel="portfolio" limit="6"}
       <li class="{switch="latest_1|latest_2"}">
          {portfolio_image}
             {exp:ce_img:pair src="{url}" width="94" height="80" crop="yes"}
                <a href="http://{title_permalink=portfolio/view/}/{segment_4}">{made}</a>
             {/exp:ce_img:pair}
          {/portfolio_image}
       </li>
    {/exp:channel:entries}

    P.S This code is in a sidebar. This may help make sense as to why I have this code within this URL.

    Thanks

  • #2 / Feb 23, 2012 6:28pm

    Cheif

    626 posts

  • #3 / Feb 23, 2012 11:31pm

    Kevin Smith

    4784 posts

    I think you probably nailed it, Cheif. Chris, does that take care of it?

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

ExpressionEngine News!

#eecms, #events, #releases