Warning | ||
---|---|---|
| ||
Updating the course for FarCry 6.x. If you can help let us know! Put your notes in the comments for the page. |
Objectives
Excerpt |
---|
By the end of this unit you will be able to modify the webtop tabs, sub-sections and menus. |
...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="utf-8"?> <webtop> <section mergeType="merge" id="content"> <subsection mergeType="merge" id="farcrycmsSubSection"> <menu id="farcrycorecontent" label="Code Base Management"> <menuitem sequence="1" id="codebase" label="Code Base" link="/admin/customadmin.cfm?module=customlists/coreCodeBase.cfm&plugin=daeBase" /> <menuitem sequence="2" id="codebranch" label="Code Branch" link="/admin/customadmin.cfm?module=customlists/coreCodeBranch.cfm&plugin=daeBase" /> <menuitem sequence="3" id="release" label="Code Release" link="/admin/customadmin.cfm?module=customlists/coreRelease.cfm&plugin=daeBase" /> </menu> </subsection> </section> </webtop> |
...
Attribute | Purpose |
---|---|
link | Path the link carries the user to (in the content pane); the path is relative to the FarCry admin section root (e.g. link="content/dmimage.cfm"; link="admin/customadmin.cfm?module=....") |
sequence | The order in which the menu items should be displayed. |
Custom Admin
Creating custom admin sections is very easy. The customadmin.xml file in projectName/customadmin has the same format as the core's webtop.xml file (nodes and attributes described above).
...
- Open the all the *.xml files under projectName/myproject/customadmin for editing
- Merge all the XML files into a single file called customadmin.xml
- Tidy up the XML by removing all the extraneous webtop, section and subsection elements
- Place all menus under a single section called "Super"
Code Block <webtop> <section id="super" label="Super"> <subsection id="SuperSubSection" label="Super Section"> <!-- your menus go here! --> </subsection> </section> </webtop>
Bonus Lab: Webtop Customisations
In addition to the tabs and menus, its also possible to build custom views for the webtop overview tabs and custom cell renderers and actions for the content grids.
- Discuss creating a simple cell view for the grid
- Discuss creating a custom webtop overview for our custom content types; just enough to bring it up to par with something like dmNews