Loading...
 
Skip to main content

Calendar patches to provide more logical menu/feature access

Status
Closed
Subject
Calendar patches to provide more logical menu/feature access
Version
2.x
Category
  • Patch
  • Consistency
Feature
Calendar
Submitted by
Geoff Brickell
Lastmod by
Geoff Brickell
Rating
(0)
Description

Sorry - these patches were committed quite a while ago - just forgot to close the item

-----------------------

I have recently started to use the Calendar function in a new v2.2 site and I found a number of illogical/inconsistent functions that I changed by simply editing the .tpl files. I think some of these are sufficiently useful that I'm submitting them as patches - I'm not really set up to do the whole SVN/developer thing at present.

Here is a summary of the changes/adaptations

tiki-calendar.tpl - original source {* $Id: tiki-calendar.tpl 13045 2008-05-29 07:07:56Z chibaguy $ *}

  1. logic changed so that Config/Options button is ONLY shown if the user is the admin
  2. logic changed so that Add Event button is only shown if $displayedcals|@count >0



tiki-calendar_calmode.tpl - original source ?not shown?

  1. explicit %d/%m used for day/month on each day 'cell' to show European style of date. This is just an interim patch to change the existing 'hard coded' version which shows %m/%d. It should be possible to change the logic to extract the right format from the General Admin time/date settings - am still looking at this
  2. logic changed for additional check to NOT show 'add event' in day cell icon if no calendar 'visible'



tiki-calendar_nav.tpl - original source ?not shown?

  1. swap %B %e to %e %B in several lines in the "calnavigation" div - again to adopt a European style. Still looking to see how this can automatically extract the right info from the general Admin time/date settings

Files
  1. Tiki Calendar
  2. Tiki Calendar Calmode
  3. Tiki Calendar Nav
Solution
Revised .tpl files attached
Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2314
Created
Monday 16 February, 2009 17:44:47 UTC
by Unknown
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages