• alienvenom

    (@alienvenom)


    The default calendar script built into WordPress uses tables. Has anyone come up with a tableless version? If not, I want this to be my first “hack”. Hopefully no one else has done anything close to this already — I need something to do. I did some Google research and found this website. What do y’all think?

Viewing 15 replies - 16 through 30 (of 48 total)
  • Thread Starter alienvenom

    (@alienvenom)

    davidchait, do you think you could send me your version of the get_calendar(); function?
    My contat information is on my website: https://www.dogtoe.com/contact.php

    awh

    (@awh)

    Using span class as a replacement for tables? That’s no better than the font tag.
    Tables are bad for non-tabular content, like page layout. Tables are good for tabular content, like calendars.

    Thread Starter alienvenom

    (@alienvenom)

    When the rest of the page doesn’t use tables at all, and there’s a badge that says CSS tableless on it, it’s kind of pointless to use a table for a calendar, even if it’s “tabular” content.
    I want a tableless calendar!

    willm

    (@willm)

    Anyway, I’m not 100% convinced that a calendar is ‘tabular data’ in any sense other than layout. It’s really just a list of dates, isn’t it? It’s not giving you any information that you couldn’t get from an ul-formatted daily archive.

    Anonymous

    I am with WillM here. It is nearer a list I reckon. The root of this issue, is that we want to lay out a list in tabular form. That does not make the list tabular data. In my book anyway!

    Sushubh

    (@sushubh)

    calendar has rows for weeks and columns for days. now what does that imply?

    Anonymous

    Just because text is traditionally laid out in tabular form does not mean that the text is in fact tabular data !!! ??

    If a calendar is just a list of dates (and not tabular data), then the columns won’t matter. So you might as well get rid of the headers for ‘Sun’, ‘Mon’, ‘Tues’, etc. And it won’t matter if there aren’t exactly 7 days per row in your output.
    Right?
    I’m not trying tell anyone that they shouldn’t do a tableless calendar. I’m just saying that there’s nothing inherently wrong with using a table for a calendar. It is tabular data.
    Also, using a table for a calendar doesn’t invalidate the idea of a tableless site. It’s using tables for the overall page layout that’s a bad idea.

    Sushubh

    (@sushubh)

    yeap. innovation is ok. but calling a calendar a non tabular data… whew!

    tcervo

    (@tcervo)

    What dougal said…and others before him, and probably more down the road…
    To further illustrate his first point, here’s March 2004 as a list:
    Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,…31
    Sure, you *could* represent it as a *complete* list, but the extra redundancy is nuts:
    Monday March 1: 2004, Tuesday March 2: 2004, Wednesday March 3: 2004, Thursday March 4: 2004…etc.
    Since this is, in fact, tabular data, we could instead put the year and month in the caption, have a single header row for the days of the week,…you know, just like a calendar. Doing a calendar as an exercise in CSS is great, but insisting it should be used for WP to be “tableless” just doesn’t hold water.
    As for the “CSS Tableless” thing, as long as tables are used for data and not presentation, the badge of honor still stands.

    Anonymous

    I like to think and I hope I am right that this is slightly tongue in cheek. There is no answer. And I would not want to get into a wrestling match. Certainly not with tcervo. But a calendar is surely two lists. Days and dates. If I display text in Excel, one word to a cell does that alter the text into tabular data? Or is it text displayed in a tabular form.? Incidentally calendars frequently need empty “cells” that contain no data at all.:-)

    tcervo

    (@tcervo)

    True to an extent (no wrestling match intended), but it’s really more than just two lists…as those two are cross referenced, making it a bunch of lists. There’s a list of every date for a month that falls on a Monday, every date that falls on a Tuesday, etc. There’s, then, also every date that occurs in the first week, second week, third week…There’s also a list that tells you what day of the week any particular date occurs on…What’s date does the 2nd Saturday fall on? How about the fourth Sunday, if even one exists? etc…It’s a tabular way of displaying a whole bunch of information…many different views all in one neat package. It’s not practical to do that if it were just lists. Simply putting text into Excel cells doesn’t make it tabular data…there has to be a relationship…right?

    Anonymous

    I give up!

    Anonymous

    tabulated data should be in a table or ppl without the ability to use CSS will find it makes no sense at all…
    but as an experiment, anything goes!

    Thread Starter alienvenom

    (@alienvenom)

    We stopped using <font> tags long ago because we have CSS to replace them and they are “depreciated.”
    <tables> should be depreciated as well. Who cares about the n00bs who don’t want to upgrade their browser to a CSS-supportive one.

Viewing 15 replies - 16 through 30 (of 48 total)
  • The topic ‘Tableless Calendar’ is closed to new replies.