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.

Weblog entries within tables

July 12, 2008 8:19pm

Subscribe [3]
  • #1 / Jul 12, 2008 8:19pm

    bonusballking

    17 posts

    Hi

    Im trying to have my weblog entries display in tables, i’ve looked in the Photo Gallery docs, but it doesnt work the same way (the way i place the table tags).

    Can some one please direct me to the right direction to make this possible.

    Thank you.

    Here is an example of what i have right now. Click Here


    [Mod edit: removed all-caps from title]

  • #2 / Jul 12, 2008 8:34pm

    PXLated

    1800 posts

    First, please no CAPS…they annoy and don’t really get you faster attention.
    ————————-

    Looked at your link and it appears your entries are in table cells…what is it that’s wrong (it’s not obvious)?...
    What do you want to do differently?
    ——-
    Possibly show some code to explain.

  • #3 / Jul 12, 2008 8:45pm

    bonusballking

    17 posts

    For some reason i cannot get to change the layout of the table.

    Here is the code i have in my template.

    <div id="schedule_frame">
    <table cellpadding="0" cellspacing="0" width="100%">
    <th>Events</th>
    <th>Country</th>
    <th>City</th>
    <th>Date</th>
    <th>Division</th>
    <th>Result</th>
    {exp:weblog:entries weblog="schedule"}
    
    <tr class="schedule_row_1">
    <td>{events}</td>
    <td>{country}</td>
    <td>{city}</td>
    <td>{date_event}</td>
    <td>{division}</td>
    <td>{result}</td>
    </tr>
    
    {/exp:weblog:entries}
    </table>
    </div>


    This is the code for the CSS

    #schedule_frame table tr {
    border-bottom:1px solid #414448;
    }
    
    .schedule_row_1 {
    border-bottom:1px solid #414448;
    }
  • #4 / Jul 12, 2008 8:52pm

    PXLated

    1800 posts

    And what is it you want to change? Need some specifics.
    I haven’t used tables for a long time so I’m not sure I’ll know the answer but it will help others to jump in.

  • #5 / Jul 12, 2008 8:57pm

    bonusballking

    17 posts

    Well i want to know if the placements of all the table and entry tags are good.
    And why the css is not changing the table.

    Thats about it.

    Thank you.

  • #6 / Jul 13, 2008 1:23pm

    Derek Jones

    7561 posts

    Placement looks good, I think your CSS issue is a matter of not being able to apply borders to tr elements, IIRC.  Instead try:

    #schedule_frame table td {
    border-bottom:1px solid #414448;
    }
    
    .schedule_row_1 td {
    border-bottom:1px solid #414448;
    }
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases