Grow your CSS skills. Land your dream job.

Calendar Page Updates

  • # May 11, 2013 at 6:17 am

    Hey,

    I am creating a website for a client where on his home page he has the top five calendar dates and on his actual calendar page he has all of his dates.

    Is there anyway to update the top five calendar dates on the homepage when the dates on the calendar page change?

    Thanks

    Ben

    # May 11, 2013 at 7:53 am

    Sure there are thousand ways to do that, which CMS do you use for it?

    # May 11, 2013 at 9:42 am

    Well thats the problem I am having I am not using a cms

    # May 11, 2013 at 10:03 am

    Do you use a database, or are you manually editing the files?

    # May 11, 2013 at 10:05 am

    manually editing files

    # May 11, 2013 at 10:08 am

    Well, why not edit the homepage at the same time?

    # May 11, 2013 at 10:30 am

    I was just trying to find a way of not having to update it manually

    # May 11, 2013 at 10:54 am

    I understand that. If you provided some information about the actual code you currently use, I could be more helpful, but it sounds as though you’ve made tasks like these harder for yourself than they should be.

    A database allows you to pull information easily in. Eg, your calendar page could use a query such as:

    SELECT * FROM calendar;

    While your homepage could use:

    SELECT * FROM calendar LIMIT 5;

    If you are using PHP, it would be fairly trivial to do this without a database, and my advice would be to have a calendar script with the data that is then imported into both the home page and the calendar page.

    In summary: I’m happy to help, but you might need to give a little more detail.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".