Changing the Homepage
 
 

The file homepage.aspx contains the definition for all the portlets. This file originally resides in the c:\program files\officeclip\7\officeclip\officeportal\HomePage directory. This file is modified in the current walkthrough as shown below:

        File: c:\program files\officeclip\7\officeclip\officeportal\HomePage\homepage.aspx
    --------------------------------------------------------------------------------------------------

    <%@ Page MasterPageFile="~/general/site.master" Language="c#" Debug="true" Codebehind="homepage.aspx.cs"
     AutoEventWireup="false" Inherits="OfficeClip.OfficePortal.HomePage.HomePage" %>
    <%@ Register Src="~/officeportal/homepage/whatsnew.ascx" TagName="WhatsNew" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/OfficeClipPicks.ascx" TagName="OfficeClipPicks" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/businesscenter.ascx" TagName="BusinessCenter" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/search.ascx" TagName="Search" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/news.ascx" TagName="News" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/noteportlet.ascx" TagName="NotePortlet" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/groupBookmarks.ascx" TagName="GroupBookmarks" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/polls.ascx" TagName="Polls" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/announce.ascx" TagName="Announcement" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/taskportlet.ascx" TagName="TaskPortlet" TagPrefix="OcTag" %>
    <%@ Register Src="~/officeportal/homepage/upcomingevents.ascx" TagName="UpcomingEvents" TagPrefix="OcTag" %>
    <%@ Register Src="~/custom/API/Walkthru2/events.ascx" TagName="Calendar" TagPrefix="OcTag" %>

    <%@ Register Namespace="OfficeClip.CustomControl.Framework.UI" TagPrefix="OcTagCs"
     Assembly="OfficeClip.CustomControl" %>
    <%@ Register TagPrefix="OcTag" TagName="Menus" Src="~/officeportal/homepage/menus.ascx" %>
    <asp:Content ID="cont" runat="server" contentplaceholderid="a">
    ................
    ................
    ................
     <asp:WebPartZone ID="leftZone" runat="server"
            HeaderText="Portlets Zone - Left" 
            CloseVerb-Description="Close this Portlet"
            MinimizeVerb-Description="Minimize this Portlet" 
            RestoreVerb-Description="Restore this Portlet"
            HelpVerb-Description="Get help on this portlet" 
            DeleteVerb-Description="Remove this portlet"
            EmptyZoneText="Add a portlet to this zone by dragging the title and dropping it here">
            <ZoneTemplate>
                     <OcTag:WhatsNew id="PortletWhatsNew" Title="What's New" 
                            Description="Shows what is new in OfficeClip" runat="server" />
                     <OcTag:BusinessCenter id="BusinessCenter" Title="Business Center" 
                     Description="Provides a few web links useful for daily business" runat="server" />
                     <OcTag:News id="News" Title="News" runat="server" />
                     <OcTag:GroupBookmarks id="GroupBookmarks" Title="Group Bookmarks" 
                     Description="Shows the bookmarks selected by the group" runat="server" />
                     <OcTag:Announcement id="Announcement" Title="Announcement" 
                     Description="Shows Announcements for the current organization" runat="server" />
                     <OcTag:UpcomingEvents id="UpcomingEvents" Title="Upcoming Events (next 7 days)" 
                     Description="Shows a list of upcoming events" runat="server" />
                     <OcTag:Calendar id="Calendar" Title="OfficeClip Calendar" 
              Description="Shows the monthly view calendar" runat="server" />
     </ZoneTemplate>
    ................
    ................
    ................

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

The modified file is copied to c:\program files\officeclip\officeclip\custom\API\Walkthru2\homepage.aspx.



 Send us your feedback  Copyright© OfficeClip LLC 2000-2006, All Rights Reserved 

 OfficeClip provides a suite of web-based enterprise software such as Web Contact Manager, Issue and Bug Tracker, Time and Expense Reporting, Free Group Calendar, Free Document Sharing and other applications.