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.

{exp} tags break my design

October 14, 2007 3:12pm

Subscribe [3]
  • #1 / Oct 14, 2007 3:12pm

    Chad

    11 posts

    When I add the opening exp tag:

    {exp:weblog:entries weblog="{my_weblog}” orderby=“date” sort=“desc” limit=“5” disable=“member_data|trackbacks”}

    my design breaks.  You can see the before and after pages here:

    before:
    http://www.texaspikes.com/index.php/phiphi/original

    after:
    http://www.texaspikes.com/index.php/phiphi/index/

    Please Help!!!

  • #2 / Oct 14, 2007 3:42pm

    Cocoaholic

    445 posts

    It looks like you put the {exp:weblog} tag around your “content” and “main” div, while it should only wrap the “post” div.

    <div id="content">
            <div id="main">
                <div class="post">

    You sould only warap the part you actually want to repeat, something like this should probably work:

    {exp:weblog:entries ....}
    <div class="post">
        <span class="month">sept</span> <span class="day">15</span>
        <h1><a href="/">{title}</h1>_    _    posted in <a href="/">Category</a>    
    tags: <a href="/">Tag1</a>, <a href="/">Tag2</a>, <a href="/">Tag3</a>
        
        <div class="body">
        {summary}
        
        {body}
        
        {extended}
        </div>
        <div class="meta">
        posted in <a href="/">University Meets</a> on <strong>September 15, 2007 at 5:14 pm</strong>
        </div>
    </div>
    {/exp:weblog:entries}
  • #3 / Oct 14, 2007 3:59pm

    Chad

    11 posts

    Thank You!!!

  • #4 / Oct 14, 2007 4:14pm

    Cocoaholic

    445 posts

    You’re welcome.

    Great looking website 😊

    Althought you might also want to take care of some of these errors…

  • #5 / Nov 12, 2007 7:18pm

    nessnzoe

    62 posts

    hi all,

    hoping someone will read this and chime in. i’m having somewhat the same problem. only it has to do with shoving content down in a table. because of the way i’m calling to the entries i have to wrap each <td> in it’s own {exp}. here’s the code and a url to the page that breaks and to the page w/o the {exp} code…any ideas on how to fix?

    the broken page

    the layout as i want it to be

    and the offending code:

    <div id=“content”>

    <!—Home Page Headline #1—>

    {exp:weblog:entries weblog="home" url_title="home_page_headline_article_1"}

    <h1>{headline_title}</h1>
    {site_url}images/uploads/{headline_image}
    {headline_summary}

    [Read More]
    {/exp:weblog:entries}

    <!—Home Page Headline #2 - 4—>
    <table>
    <tr>
    {exp:weblog:entries weblog="home" url_title="home_page_sub_headline_article_2"}
    <td>{site_url}images/uploads/{headline_image}

    {headline_title}

    In pulvinar, lorem dictum laoreet dapibus, tellus justo porttitor enim, et ultrices elit libero sed tortor. Proin egestas lacus ut arcu. Proin sapien mauris, mollis vel, egestas et, sodales et, erat. Morbi fringilla lorem posuere est. Morbi eros. Duis tempus lectus eu lacus. Quisque aliquam erat eleifend pede tristique rutrum. In ac sapien at diam bibendum rhoncus. Nam magna.
    [Read More]
    </td>
    {/exp:weblog:entries}
    {exp:weblog:entries weblog="home" url_title="home_page_sub_headline_article_3"}
    <td>{site_url}images/uploads/{headline_image}

    {headline_title}

    Suspendisse viverra fermentum purus. Ut gravida ligula vel nulla lacinia bibendum. Maecenas vel turpis a felis vestibulum eleifend. Integer ipsum arcu, consectetuer eget, viverra et, condimentum eget, libero.
    [Read More]
    </td>
    {/exp:weblog:entries}
    {exp:weblog:entries weblog="home" url_title="home_page_sub_headline_article_4"}
    <td>{site_url}images/uploads/{headline_image}

    {headline_title}

    Morbi fringilla lorem posuere est. Morbi eros. Duis tempus lectus eu lacus. Quisque aliquam erat eleifend pede tristique rutrum. In ac sapien at diam bibendum rhoncus. Nam magna.
    [Read More]
    </td>
    {/exp:weblog:entries}

    </tr>
    </table>
    </div>

    any help would be greatly, greatly appreciated!
    thanks,
    nessnzoe

  • #6 / Nov 12, 2007 7:26pm

    nessnzoe

    62 posts

    ok. see that i can clean up the code using entry id from and entry id to, but i’m still getting the content pushed down - that’s why i did a table!! any thoughts would be great!

  • #7 / Nov 12, 2007 9:23pm

    helbnt

    143 posts

    It might be easier to help if we saw the CSS… but you might check your h2 tags first - when I used Firebug to inspect it, it seems as if you had paragraph tags inside your h2 tags. Try removing those and see if that helps. Also, if you’re not floating anything (which I didn’t see), I don’t *think* you need the clear:left in your table data cells. I could be wrong on that though…

  • #8 / Nov 13, 2007 11:29am

    nessnzoe

    62 posts

    hi punt…thanks so much for responding. link to the css below. and i viewed the source code (forget that this is how i can see how ee is effecting the page) and see the offending tags. i just now changed the field from text input with a default formatting of xhtml to none and that removed the tags, but still the columns are pushed down…i’m going to create a <td> class with zero’d out margins and padding - see if that helps. any other ideas are much appreciated. (you’ll find the table style defined under “content cover page css” below).

    here’s the full css

    thanks!
    nessnzoe

  • #9 / Nov 13, 2007 11:33am

    nessnzoe

    62 posts

    btw, i think you’re right that i shouldn’t have to clear anything since there are no floats - i did a table - ok…i’m a loser! - because i didn’t want to have to hassle with ie float bugs, but perhaps i was mistaken in my assumption that the table would make it easier!!  😉

  • #10 / Nov 13, 2007 11:43am

    nessnzoe

    62 posts

    hi punt, figured it out. created a <td> style with vertical-align:top;

    ah, it’s the little things! thanks for all the help!
    nessnzoe

  • #11 / Nov 13, 2007 4:17pm

    helbnt

    143 posts

    Sorry, just got back here - but I’m glad to see you got it all figured out OK!

    😊

  • #12 / Nov 13, 2007 8:34pm

    nessnzoe

    62 posts

    yup! still have bunches of other stuff to figure out, but this one little piece of the puzzle has been solved!!  :cheese:

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

ExpressionEngine News!

#eecms, #events, #releases