Thursday, August 10, 2006

Creating Themes for Adenium Systems Document Fulfillment System©

Why?

One would create themes for DFS for a couple of reasons.

1.A customer is requesting special Graphics, logos, text, anything out of the ordinary.

2.For testing purposes. Every theme in DFS is separate from the other themes. This will allow you to keep an untouched copy, typically “dfstheme”. We do not run any portals out of “dfstheme”, instead we run most of them out of “DFS”, with a few customer that have their own theme, and I have my development theme, with its own fake company for development and testing.

How

First you copy all of the files from /dfstheme to a new folder named whatever you want the new theme to be called. Then you go into “Internet Services Manager”, expand the Default Web site if that is where the theme is stored. Right click on the folder and go to “Properties”. In the “Application Name” area of that window click the “Create” button to create an application. Then click on the “ASP.NET” tab. Make sure that the “ASP.NET version” is set to a least 2.0.50727.

Next copy and paste this script into Microsoft SQL Query Analyzer

::Code::

-- Dumping data for table 'Portal_Themes'—

INSERT INTO Portal_Themes (Id, Status, Display_Name, Description, URL, App_Name, APP_Startup_Page, Internal_IP)

VALUES('NEWDFSTHEME', 1, 'Plans Direct Theme', 'Description', 'http://localhost/', 'NEWDFSTHEME', 'Default.aspx', 'localhost')

GO

-- Dumping data for table 'Portal_Theme_Elements'--

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_CONTENT_AREA', 'NEWDFSTHEME', 'Content', 'Content Area', 'ContentArea', 3, 8)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_DESCRIPTION', 'NEWDFSTHEME', 'Description', 'Description Text', 'DescriptionTxt', 1, 9)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_ERROR_TEXT', 'NEWDFSTHEME', 'Error Text', 'Error Text', 'ErrorTxt', 1, 1)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_PAGEHEADER_AREA', 'NEWDFSTHEME', 'Page Header', 'Page Header Area', 'PageheaderArea', 3, 4)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_PRIMARY_AREA', 'NEWDFSTHEME', 'Primary Area', 'Primary Area', 'PrimaryArea', 3, 5)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_PRODUCT_TITLE', 'NEWDFSTHEME', 'Product Title', 'Product Title', 'ProductTitleTxt', 1, 10)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_SECONDARY_AREA', 'NEWDFSTHEME', 'Secondary Area', 'Secondary Area', 'SecondaryArea', 3, 6)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_TABLE_COL_HDR_TEXT', 'NEWDFSTHEME', 'Column Header Text', 'Table Column Header Text', 'TableColumnHeadTxt', 3, 7)

GO

INSERT INTO Portal_Theme_Elements (Id, Portal_Theme_Id, Display_Name, Description, Element_Name, Element_Type, Sequence)

VALUES('NEWDFSTHEME_SEARCH_AREA', 'NEWDFSTHEME', 'Search Area', 'Search Area Background Color', 'SearchArea', 3, 8)

GO

::End Code::

Now when you go into DFS Library Manager you should see your new theme as an option for any existing Portals or any New portals.

Download SQL Script

No comments: