Loading...
 
Skip to main content

History: Profile_Tracker_as_Calendar_page_12

Source of version: 13 (current)

Copy to clipboard
            {TABS(name="Tracker-as-Calendar-Tabs" tabs="Display with Fullcalendar & Filter items (Tiki 9+)|Filter with Plugin TrackerList|Filter with Plugin List|Add items" toggle="y" inside_pretty="n")}
!! Display tracker items in a calendar or resource view
Using TrackerCalendar:  http://doc.tiki.org/PluginTrackerCalendar

{trackercalendar trackerId="$profileobject:trac_as_cal$" begin="trac_as_cal_start_date" end="trac_as_cal_end_date" resource="trac_as_cal_location" coloring="trac_as_cal_priority"  aweek="n" aday="n" rweek="y" rmonth="n" rday="n" fDayofWeek="1" dView="resourceWeek"}

!! Filter upcoming events
{SPLIT(colsize="20%|2%|78%")}
{TRACKERLIST(trackerId="$profileobject:trac_as_cal$", ignoreRequestItemId="y", fields="$profileobject:trac_as_cal_summary$:$profileobject:trac_as_cal_location$:$profileobject:trac_as_cal_priority$:$profileobject:trac_as_cal_description$:$profileobject:trac_as_cal_start_date$:$profileobject:trac_as_cal_end_date$", status="op", showlinks="y", filterfield="$profileobject:trac_as_cal_start_date$", exactvalue="greaterequal(now)", calendarfielddate="$profileobject:trac_as_cal_start_date$", calendarviewmode="month", calendarstickypopup="y", calendarviewnavbar="n", calendarviewnavbar="partial")} {TRACKERLIST} 
{TRACKERLIST(trackerId="$profileobject:trac_as_cal$", ignoreRequestItemId="y", fields="$profileobject:trac_as_cal_summary$:$profileobject:trac_as_cal_location$:$profileobject:trac_as_cal_priority$:$profileobject:trac_as_cal_description$:$profileobject:trac_as_cal_start_date$:$profileobject:trac_as_cal_end_date$", status="op", showlinks="y", filterfield="$profileobject:trac_as_cal_start_date$", exactvalue="greaterequal(now)", calendarfielddate="$profileobject:trac_as_cal_start_date$", calendarviewmode="month", calendarstickypopup="y", calendarviewnavbar="n", calendardelta=month, calendarviewnavbar="partial")} {TRACKERLIST}

---
~hs~
---
{TRACKERFILTER(trackerId="$profileobject:trac_as_cal$", filters=$profileobject:trac_as_cal_summary$/d:$profileobject:trac_as_cal_location$/d:$profileobject:trac_as_cal_priority$/d:$profileobject:trac_as_cal_description$/t:($profileobject:trac_as_cal_summary$:$profileobject:trac_as_cal_description$)/sqlsearch, fields="$profileobject:trac_as_cal_summary$:$profileobject:trac_as_cal_location$:$profileobject:trac_as_cal_priority$:$profileobject:trac_as_cal_description$:$profileobject:trac_as_cal_start_date$:$profileobject:trac_as_cal_end_date$", showtitle=n, showlinks=y, showdesc=n, showinitials=n, showstatus=y, status=op, sort_mode=f_$profileobject:trac_as_cal_start_date$_asc, displayList="y", filterfield="$profileobject:trac_as_cal_start_date$", exactvalue="greaterequal(now)", line="n")}{TRACKERFILTER}
{img src="img/icons/add.png" link="tiki-view_tracker.php?trackerId=$profileobject:trac_as_cal$&cookietab=2"} [tiki-view_tracker.php?trackerId=$profileobject:trac_as_cal$&cookietab=2|Add event|box]







[tiki-view_tracker.php?trackerId=$profileobject:trac_as_cal$&sort_mode=lastModif_asc&status=opc|Show all events] (including closed)
{SPLIT}
/////
{TRACKERLIST(trackerId="$profileobject:trac_as_cal$", fields="$profileobject:trac_as_cal_summary$:$profileobject:trac_as_cal_location$:$profileobject:trac_as_cal_priority$:$profileobject:trac_as_cal_description$:$profileobject:trac_as_cal_start_date$:$profileobject:trac_as_cal_end_date$", showtitle=n, showlinks=y, showdesc=n, showinitials=n, showstatus=y, status=op, sort_mode="f_$profileobject:trac_as_cal_start_date$_asc", sortable="y", editable="$profileobject:trac_as_cal_location$:$profileobject:trac_as_cal_priority$", server="y" tsfilters="type:text|type:text;placeholder:Type to filter...|type:dropdown|type:range;from:0;to:5;style:popup|type:text;placeholder:Type to filter...|type:nofilter|type:date|type:nofilter" tscolselect="critical|critical|2|5|6|1|1|6")}{TRACKERLIST}

/////
{LIST()}
	{pagination max=25}
	{filter field="tracker_id" content="$profileobject:trac_as_cal$"}
{OUTPUT(template="table")}
    {column field="tracker_field_trac_as_cal_summary" label="Title" mode="raw"}
    {column field="tracker_field_trac_as_cal_location" label="Location" mode="raw"}
    {column field="tracker_field_trac_as_cal_priority" label="Priority" mode="raw"}
    {column field="tracker_field_trac_as_cal_start_date" label="Start Date" mode="raw"}
    {tablesorter server="n" }
{OUTPUT}
   {FORMAT(name="tracker_field_trac_as_cal_summary")}{display name="tracker_field_trac_as_cal_summary" format="objectlink"}{FORMAT}
   {FORMAT(name="tracker_field_trac_as_cal_location")}{display name="tracker_field_trac_as_cal_location" format=trackerrender editable=inline default="n.a."}{FORMAT}
   {FORMAT(name="tracker_field_trac_as_cal_priority")}{display name="tracker_field_trac_as_cal_priority" format=trackerrender editable=inline default="n.a."}{FORMAT}
   {FORMAT(name="tracker_field_trac_as_cal_start_date")}{display name="tracker_field_trac_as_cal_start_date" format=trackerrender editable=inline default="n.a."}{FORMAT}
{LIST}

/////
!!Add items to be displayed as calendar events
{tracker trackerId="$profileobject:trac_as_cal$" fields="$profileobject:trac_as_cal_summary$:$profileobject:trac_as_cal_location$:$profileobject:trac_as_cal_priority$:$profileobject:trac_as_cal_description$:$profileobject:trac_as_cal_start_date$:$profileobject:trac_as_cal_end_date$" url="tiki-index.php?page={{page}}"}

{TABS}