[size="4"]Monthly List page[/size]
- Add a new field to calcalendar table. Lets assume this field name is URL and it contains the URL associated with event. Modify SQL query of calmonthly view adding this new field there.
- Make sure this field appears on calmonthly List page. This can be done on 'Choose fields' screen.
- Then you need to modify Calmonthly, 'List page: before display' event.
See changes in bold:
$strRow.="</b>";
if($_REQUEST["a"]<>"year")
$strRow.="</a>";
if($datatmp2["URL"])
$strRow.="<div align=center><a href='".$datatmp2["URL"]."'>Link</a></div>";
$strRow.="</td></tr></table></td></tr>"."\r\n";
if ($_SESSION[$kolstr]<=5)
$strRow.="<tr><td colspan=3 height=1></td></tr>"."\r\n";
$strRow.="</table>"."\r\n";
[size="4"]Weekly List page[/size]
- Add a new field to calcalendar table. Lets assume this field name is URL and it contains the URL associated with event. Modify SQL query of calmonthly view adding this new field there.
- Make sure this field appears on calmonthly List page. This can be done on 'Choose fields' screen.
- Modify BeforeDisplay event of calweekly List page for this purpose.
Find the following line:
$strtmp=$datatmp2["Description"];
and replace it with this one:
$strtmp="<a href='".$datatmp2["URL"]."'>Link</a> ".$datatmp2["Description"];
This example assumes that your new field name is "URL". Replace it with your field name.