| View previous topic :: View next topic |
| Author |
Message |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Wed Aug 29, 2007 1:01 am Post subject: Javascript Events: More options |
|
|
I'm really having fun with the java elist.
I wish that the category or calendar was also listed in the output. For me, all my public calendars are views. And so a typical js elist will display events from 4 different calendars. To key the user into what event (calendar) it's from, it would be great to have something like the list below where the calendar is in parentheses. Is this simple to include? Thanks.
Labor Day (Vacation Calendar)
Mon, Sep 3 All Day
Staff orientation and development (School Calendar)
Tue, Sep 4 All Day
Classes begin (District Calendar)
Wed, Sep 5 All Day
First Full Day of Kindergarten (District Calendar)
Fri, Sep 7 All Day |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Thu Aug 30, 2007 12:59 pm Post subject: |
|
|
You could add this in pretty easily. Edit modules/js_eventlist/elist.php and change line 194 from:
| Code: |
| echo(_mk_link($link,$e->title,'thyme_item') ."<br />"); |
to ..
| Code: |
| echo(_mk_link($link,$e->title,'thyme_item') ." ( {$e->cal_obj->title} )<br />"); |
|
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Thu Aug 30, 2007 2:27 pm Post subject: |
|
|
Very nice! Thanks Ian.
Maybe make this an option for the js elist module.... |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Wed Oct 31, 2007 2:46 pm Post subject: elist.php |
|
|
I still think the option to include the calendar like "(Holidays)" in the jscript list is required.
While I have edited the code to enable this, it would be nice to simply have the option when configuring it within the Thyme GUI. |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Tue Nov 06, 2007 4:46 pm Post subject: |
|
|
| Yes? No? Future version option? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Tue Nov 06, 2007 5:06 pm Post subject: |
|
|
Hi,
I will add it and update this post when I get a chance. |
|
| Back to top |
|
 |
CavySpirit
Joined: 17 Sep 2007 Posts: 18
|
Posted: Wed Nov 07, 2007 5:21 pm Post subject: |
|
|
| What would be the code to list the category instead of the calendar? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Nov 07, 2007 6:45 pm Post subject: |
|
|
Hi,
| Code: |
| echo(_mk_link($link,$e->title,'thyme_item') ." ( {$e->category} )>br /<"); |
|
|
| Back to top |
|
 |
CavySpirit
Joined: 17 Sep 2007 Posts: 18
|
Posted: Wed Nov 07, 2007 7:28 pm Post subject: |
|
|
| Cool. Thanks so much. |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Fri Nov 30, 2007 6:40 pm Post subject: |
|
|
| esoft_ian wrote: |
Hi,
I will add it and update this post when I get a chance. |
OK, thanks...and take some time off for the holidays: You deserve it.  |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Thu Dec 20, 2007 1:35 pm Post subject: |
|
|
Thank-you for updating this module.  |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Thu Feb 07, 2008 8:56 pm Post subject: |
|
|
A very minor and simple change request: When the categories are listed in the javascript elist, there are spaces on each side of the parentheses:
( club social )
It would look better to just have...
(club social)
Don't ya think?
Thanks! |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Fri Feb 29, 2008 7:20 pm Post subject: |
|
|
bump
I think this is a simple format fix...
( {$e->cal_obj->title} ) to ({$e->cal_obj->title})
I can do it, but an update would be appreciated. |
|
| Back to top |
|
 |
niskypto
Joined: 17 Mar 2007 Posts: 127 Location: New York
|
Posted: Sat May 17, 2008 9:19 pm Post subject: |
|
|
Sorry for the bump....
But this is a real simple update for the installer...remove the spaces (category) rather than ( category ).
| Code: |
| ({$e->category})>br /<"); |
I have done this manually, but it would be nice to share. |
|
| Back to top |
|
 |
|