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.

Iron Underpants at the ready...

May 27, 2009 6:58pm

Subscribe [1]
  • #1 / May 27, 2009 6:58pm

    smidoid

    36 posts

    First off, thanks to everyone for all the help so far: and from that, you can tell I’m about to ask a really dumb question…

    Here goes.

    I’ve just started using EE for content management - I’m hitting it hard in other areas and it’s great - but there is something that I need my partner (who has no idea about computers - let along the Internet) edit.

    With me so far? This has to be bullet-proof.

    So I’m building the template which is going to display a list of “slides” rather like a powerpoint presentation and it strikes me that this is a great use for a weblog.

    [D’oh mode]

    When I use

    {exp:weblog:entries weblog="my_content"}

    and

    {/exp:weblog:entries}

    EE is iterating through ALL the entries… What I need to do is wrap each one in a DIV or similar container for styling and the like, but this is where my knowledge fails me.

    [/D’oh mode]

    I know this will be completely obvious to most of you, so be kind. I’m a bit fragile right now since the man at the filling station shouted at me because he thought I was about to blow us all away (with a mobile phone!) I do soooo hate bad science when it leads to such compounded ignorance. Next time I’m going to light a blowtorch - then watch him run. LOL.

  • #2 / May 27, 2009 7:09pm

    Lisa Wess

    20502 posts

    The weblog entries tag loops through all entries; this means the formatting inside of it is there for each entry.

    So say you wanted a div around each individual entry:

    {exp:weblog:entries limit="10"}
    <div class="entry_wrap">
    {title}
    {body}
    </div>
    {/exp:weblog:entries}

    Will give you a rendered source of:

    <div class="entry_wrap">
    I'm entry 1's title
    I'm entry 1's body
    </div>
    
    <div class="entry_wrap">
    I'm entry 2's title
    I'm entry 2's body
    </div>
    
    <div class="entry_wrap">
    I'm entry 3's title
    I'm entry 3's body
    </div>

    On down through 10 entries.

    Is that what you wanted?

  • #3 / May 27, 2009 7:13pm

    smidoid

    36 posts

    ... I’ll get me coat.

     


    (Sorry, that’s Brit humor.)

    Thanks Lisa, that will do the trick. You can close this now and I can put my iron undies back in a drawer for the next time I’m feeling dumb.

  • #4 / May 27, 2009 7:17pm

    Greg Aker

    6022 posts

    smidoid:

    I’m glad Lisa got you squared away.  Don’t hesitate to start a new thread if anything else comes up!

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases