Menu

#30 Yearly View

open
nobody
5
2006-04-03
2006-04-03
Anonymous
No

There are currently daily/weekly/monthly views
available. Would it be possible to get a yearly view?
A way of selecting a month from the yearly view with
all the days of the months displayed and simply
coloured if there are 1 or more events on the day.
Hope this makes sense

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have had several users ask for yearly view, if it's
    possible to add it quickly, we'd appreciate it. Thank you.

     
  • epiphany

    epiphany - 2006-07-18

    Logged In: YES
    user_id=1153699

    I am interested in this too...especially a printable yearly
    view.

     
  • Peter Schöne

    Peter Schöne - 2006-08-25

    Logged In: YES
    user_id=878899

    Hello @ all, :)

    I had a good idea:

    If you want a yearly view, you only have to use the module
    latest
    events in combination with mambot MosModule

    Here you can get these both, but the module I had a little bit
    modified, because, when you want to have two of them there is a
    complication in the Query.

    Oki, get both:
    http://www.joomlaos.de/option,com_remository/Itemid,41/func,fileinfo/id,1384.html
    <-- MosModule Mambot
    http://www.peterschoene.de/All_events.zip <-- modified
    Latest Events
    Module

    Now after installing both you can change the parameters just
    like you
    want.
    For example the number of upcoming events = 500. In my case
    it is
    enough.

    Of course I wanted a comfortable link into the ExtCalendar.
    To get this, you have to do the follwing things:
    Make a "static content" with the Headline you want and with
    just one
    line in the content:
    {mosmodule module=All events}
    Then make a menu-link to this static content and copy the
    link to
    clipboard.
    After that, you have to open your theme.php in the
    ExtCalendar-Template.
    On line 58 (or where you want in this section) you have to
    insert the
    following modified lines:
    <!-- BEGIN print_view -->
    <td><img name="spacer" src="{URL}images/spacer.gif" width="10"
    height="25" border="0" id="spacer" alt="" /></td>
    <td class="buttontext" align="center" valign="middle" nowrap>
    <a href="LINK GETTING FROM MENU" title="Yearly View"
    class="buttontext">
    <img src="{URL}themes/default/images/icon-print.gif" border="0"
    alt="Drucken" vspace="3px"/><br />
    Yearly View</a>
    </td>
    <!-- END print_view -->

    Of course you have to copy your Menu-Link into the code, to
    get it
    really work.
    And yes, now you have Yearly view with some good effects,
    such like a
    print- and pdf-icon and the layout from your Webpage and so on.
    For me it works really fine! Ask me, if you have a problem! :)

    PS: If you want to have the year in the "monthly seperator"
    simply add a %Y in all_events.php - line 309 after %B

    Example:
    $thiseventmonth = strftime("%B
    %Y",strtotime($thisEvent->start_date));

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.