|
The Next Increment
There are several ways to further develop the Website example. In order of difficultly they are:
- Change a string in one of the Metadata files
- Create a new instance of an existing object
- Update the template files to redefine a feature
- Add a new feature to the Website:
- Perform further analysis and update the UML model
- Create and update the Metadata tables
- Write new template files for the new Website feature
Simple Text Update
A short description of how to change the Banner title for all pages is given here: Quick Start.
New Instance
Creating a new instance of an existing object is more interesting. For example, to add a new web page to the Website just follow these steps:
- First, create a new .mcx file in the \Plasma\Applications\Website\Text directory to hold the content for the new page. Then, add a row to the end of the Body Text Metadata table in \Plasma\Metadata\Website\Domain\WEB\BDT.txt giving the .mcx file name and location.
- Create a new row in both the Page table in PAG.txt and the Sub Page table in SBP.txt. Give the id of the Body Text instance created above.
- Include a suitable picture to advertise the new page on the site's Homepage in the Graphic table in GPC.txt. Alternatively, simply select an existing Graphic when updating the Nav Block Cell table in NVC.txt.
- If you want the new page to be presented on a new row of the Homepage create a new instance in the Nav Block table in NVB.txt.
- To display the link on the Homepage within a Nav Block add a new row to the Nav Block Cell Table in NVC.txt. Specify the id of the Nav Block, the id of the generated sub page, the id of the Graphic to be displayed, the width of the cell, title (with hover text) and subtitle text to display in the cell.
- Add a row to the Option table in OPT.txt to include the new page on the Menu. The id of the new page is required here.
- Finally, double click on Gen.bat and load the new generated page into your Browser.
|