Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Warning
titleWork in Progress

Updating the course for FarCry 6.x. If you can help let us know! Put your notes in the comments for the page.

Section should include:

  • creating a simple cell view for the grid
  • creating a custom webtop overview for our custom content types; just enough to bring it up to par with something like dmNews

Objectives

Excerpt

By the end of this unit you will be able to modify the webtop tabs, sub-sections and menus.

...

Code Block
titleSample Webtop XML Config File
<?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&amp;plugin=daeBase" />
        <menuitem sequence="2" id="codebranch" label="Code Branch" link="/admin/customadmin.cfm?module=customlists/coreCodeBranch.cfm&amp;plugin=daeBase" />
        <menuitem sequence="3" id="release" label="Code Release" link="/admin/customadmin.cfm?module=customlists/coreRelease.cfm&amp;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).

...

  1. Open the all the *.xml files under projectName/myproject/customadmin for editing
  2. Merge all the XML files into a single file called customadmin.xml
  3. Tidy up the XML by removing all the extraneous webtop, section and subsection elements
  4. 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.

  1. Discuss creating a simple cell view for the grid
  2. Discuss creating a custom webtop overview for our custom content types; just enough to bring it up to par with something like dmNews