makzumi / laravel-calendar

Flexible Calendar for Laravel 4
58 stars 31 forks source link

Not sure what can be done with this package #12

Closed prateem closed 10 years ago

prateem commented 10 years ago

I'm looking for a calendar package that will allow me to render a full-page calendar with clickable links that lead to a resource's show page. From your post at laravel.io it doesn't look like your calendar can do that. But the optional stuff seems to indicate that maybe it could.

There's no real demo available for me to look at either, so could you perhaps provide one? How does it show you events? I could maybe even just use the tiny calendar thing from that laravel.io post (but I'd really rather have a full-page calendar view), but I really don't know what all your package can do.

makzumi commented 10 years ago

Hi, well, the calendar can be rendered however you want. There is no demo because installation is pretty straight forward, just install it following the simple steps to demo it yourself, also uninstall is simple, it is the same thing, just reverse the steps... The calendar package returns HTML code, so with css you can do what ever you want with it. You can pass text or html to the calendar in the events array.

prateem commented 10 years ago

Aye I decided to bite the bullet and just try it out. I was worried I might end up taking a lot of time to figure things out only to be dissatisfied except it seems to be working rather easily. Great package. Just a few questions:

  1. How do you propose I go about making event titles clickable?
  2. Is there a way to take the navigation elements and place them elsewhere so they won't get stretched by the days? See here:

image

makzumi commented 10 years ago

Something like this:

$events = array(
        "2014-04-09 10:30:00" => array(
            "Event 1 -  TEXT",
            "<a href='http://google.com'>Event 2 - LINKED</a>",
        ),
        "2014-04-12 14:12:23" => array(
            "Event 3 - <strong>HTML</strong>",
        ),
    );
makzumi commented 10 years ago

Great, thanks for trying it out :+1: edit: 2 - The problem there is your css, do this:

   table {
        table-layout:fixed;
   }