Calendar 0.6

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Akrabat

Calendar 0.6

Post by Akrabat »

Download [iurl=http://wiki.cmsmadesimple.org/tiki-down ... p?attId=39]Calendar-0.6.zip[/iurl].  (0.9rc4 or higher)

Changes:
* Fix event display so that if the end date is not set, we don't display "to".
* Filter by category when displaying an upcominglist.
* Fix End date setting that was off by one.
* Fix odd behaviour of year when transitioning from Jan to Dec or Dec to Jan in the calendar view.
* Support mutli-day events in the calendar view.

As always, post any comments/suggestions/bugs here!
Last edited by Guest on Fri Mar 25, 2005 10:37 pm, edited 1 time in total.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Calendar 0.6

Post by Greg »

Single day events with the time entered show up in every day of the month on the calendar. If no time is entered and the start and end date are the same it works, the event shows on the one day as it should.

An event with a start date and end date (with or without time defined) shows up from the begining of the month to the event end date.
Greg
Akrabat

Re: Calendar 0.6

Post by Akrabat »

Greg wrote: Single day events with the time entered show up in every day of the month on the calendar. If no time is entered and the start and end date are the same it works, the event shows on the one day as it should.

An event with a start date and end date (with or without time defined) shows up from the begining of the month to the event end date.
aargh!  I'm going to have to get better testing procedures! *grin*
Akrabat

Re: Calendar 0.6

Post by Akrabat »

Greg wrote: Single day events with the time entered show up in every day of the month on the calendar. If no time is entered and the start and end date are the same it works, the event shows on the one day as it should.
I can't reproduce this one. Can you tell me the exact start and end date/times of an event that shows this bug?
Greg wrote: An event with a start date and end date (with or without time defined) shows up from the begining of the month to the event end date.
Fixed in SVN I think. Hopefully I haven't broken something else at the same time...
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Calendar 0.6

Post by Greg »

If I insert an event with the following dates I get the event in the calendar from the 29th (start date) to the end of the month, If I select 2 categories it shows up twice in each day from the 29th (start date) to the end of the month.

     Start -- 29 Mar 2005 17 00
     End  -- 29 Mar 2005  19 00
Greg
Akrabat

Re: Calendar 0.6

Post by Akrabat »

Greg wrote: If I insert an event with the following dates I get the event in the calendar from the 29th (start date) to the end of the month, If I select 2 categories it shows up twice in each day from the 29th (start date) to the end of the month.

    Start -- 29 Mar 2005 17 00
    End  -- 29 Mar 2005  19 00
Fixed in SVN I think.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Calendar 0.6

Post by Greg »

Looks like you squished them all Akrabat .... Thanks.
Greg
Mordran

Re: Calendar 0.6

Post by Mordran »

Yes thanks :)

I have found two small things, which are wrong.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Calendar 0.6

Post by Greg »

Now we just need a 'Today' button on the calendar display to take the calendar back to the current day ....
Greg
Akrabat

Re: Calendar 0.6

Post by Akrabat »

Mordran wrote:
  • In the german translation "to" should not be "zu". instead "bis" would be right --> $calendar_language_strings['to'] = 'bis';
Fixed in SVN
Mordran wrote:
Are you using the latest SVN version? All "to"s have been changed.
Akrabat

Re: Calendar 0.6

Post by Akrabat »

Greg wrote: Now we just need a 'Today' button on the calendar display to take the calendar back to the current day ....
*grin*  Not sure I'm going to do this before we get smarty templating for modules. Will think about it though.
Mordran

Re: Calendar 0.6

Post by Mordran »

Akrabat wrote:
Are you using the latest SVN version? All "to"s have been changed.
oops sorry my fault :-[
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm
Location: behind my desk

Re: Calendar 0.6

Post by petert »

Akrabat wrote: *grin*  Not sure I'm going to do this before we get smarty templating for modules. Will think about it though.
What you mean by that?
Templating already works for me:
module Wrakken:

Code: Select all

      $db = $this->cms->db;
      $rs = $db->Execute($query);
      if ($rs)	  {
        while (!$rs->EOF)		{
          if (strlen($rs->fields['naam']) > 0)		  {
            $name = str_replace("'","''",$rs->fields['naam']);
            $listOut[] = array('name'=>stripslashes($name),'id'=>$rs->fields['id'],'description'=>stripslashes($rs->fields['bijzonderheden']));
          }
          $rs->MoveNext();
          }//while
        }
        $gCms->smarty->assign('list', $listOut);
and then in the contentmanager I have:

Code: Select all

{cms_module module="Wrakken"}
<table>
{section name=mysec loop=$list}
  {strip}
    <tr bgcolor="{cycle values="#eeeeee,#dddddd"}">
      <td valign="top"><a href="/wrak/{$list[mysec].id}/{$list[mysec].name}" sticky="false" caption="$list[mysec].name" text="{$list[mysec].name}">{$list[mysec].name}</a></td>
      <td>{$list[mysec].description}<p /></td>
    </tr>
  {/strip}
{/section}
</table>
I even use templating for the backend:

Code: Select all

        echo '<div class="adminform">';

        echo $this->CreateFormStart($id, 'action');
        echo $this->CreateInputSubmit($id, 'action', _NEW_TRIP_PRE);
        echo $this->CreateInputSubmit($id, 'action', _NEW_WRAK_PRE);
        /*		echo $this->CreateLink($id, "viewoldlinks", (isset($this->cms->variables["page"]))?$this->cms->variables["page"]:'',
        "View popular", array('sort_order'=>'popular'));
        */
        $this->smarty->assign('trips', $currentTrip);
        $this->smarty->display($this->templateDir.'trips.tpl');


        echo $this->CreateFormEnd();
        echo '</div>';
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Akrabat

Re: Calendar 0.6

Post by Akrabat »

I'm pretty sure that your code only works with one instance of the module on a given page. You should use the module id to prefix the smarty variable. The problem is that you don't know which module id the system has given your particular instance when you are in the content editor.

As I understand it, the idea is that only {cms_module module=xxx} is in the content and separate template editing would be used to edit the module's smarty code. At a guess, initially, it would be via files. Then the next issue is assigning different smarty templates to different instances of the module in the same content page...

I know that wishy has started addressing these issues for 0.10, so will wait til it's fleshed out properly before doing templates in Calendar.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Calendar 0.6

Post by Ted »

Well, templates in the module API have a name as well as a link to what module they belong to.  In theory, you COULD set which template to use in the cms_module tag like: {cms_module module='calendar' template='blah1'}, but that would sure make for a very complicated admin to add/edit/delete templates.

Maybe something more global for editing templates would be better?  Thoughts?
Locked

Return to “Modules/Add-Ons”