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.

Showing calendar events only when clicked on the same page?

May 14, 2009 1:36pm

Subscribe [2]
  • #1 / May 14, 2009 1:36pm

    Louis L.

    13 posts

    Hello I have been trying to figure this out but I’m stumped. I would like to have an event/s in the calendar displayed (on the same page now) only after it has been clicked on the mini calendar. Is this possible?

    Right now I have it going to a separte page (template) with the events just for that day.

    {if entries}
    <td class='{switch}' align='center'>
    <a href="http://{day_path=">{day_number}</a>
    </td>
    {/if}
    When I click on the day it goes to the firmnews template and displays the events “just for that day.”
    {exp:weblog:entries weblog="calendar" show_future_entries="yes" sort="asc"orderby="title"}
    <div class="eventtitle">{title}</div>
    {event}
    {/exp:weblog:entries}

    I tried the “embed template tag” but it displays ALL entries and if I just add the code above it does the same. I dont want it to display anything until the date has been clicked on. I’m just trying to avoid going to another page now and have the event popup right under the calendar when an employee clicks on the date.

  • #2 / Jun 04, 2009 1:11pm

    bjyama

    38 posts

    I am looking to do something similar.  I would like to have a mini calendar and display the entries (once clicked).

  • #3 / Jun 04, 2009 1:45pm

    Louis L.

    13 posts

    Sorry but no.  😕

    I haven’t found away to get this done. However, I did notice that the entry list displays the entries by the date they were created but not the date of the event. So when I say sort “desc” it takes the last entry added into my calendar weblog and displays that one. In my case they are adding “future events” and this is what I want to display. Other than having them add the vents daily (which is not an option) I think I may have to pass on trying this setup.

  • #4 / Jun 04, 2009 2:26pm

    ender

    1644 posts

    I think what you’re asking for is similar to what I did on the http://www.keytosavannah.com events calendar… you’ll need to use javascript and probably ajax of some sort.

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

ExpressionEngine News!

#eecms, #events, #releases