List of tools open by default


For each type of site, you can define a certain number of tools that will be opened when you log on to the application (Site map, Dashboard, etc.).


It is also possible to define a list of tools that should refresh automatically when out of date. In fact, in CMS Ametys there are 2 refresh modes when a tool is out of date:

  • manual refresh requiring user action. This is the default mode: if a tab tool is no longer consistent following a modification to it, a message appears indicating that the information is not up to date.
  • automatic refresh requiring no user action

It seems necessary, for example, that the "Site map" tool be automatically refreshed when a new page is added, or that a page be automatically refreshed when a new content or service is added. On the other hand, it's not useful for the search tool to update itself every time content is added/modified/deleted. It's preferable simply to warn contributors that their search results may no longer be up to date, and invite them to launch a new search if they wish.

 

The list of default open tools and auto-refresh tools is defined in the WEB-INF/param/cms-uitools-[siteType].xml (e.g: cms-uitools-default.xml).

Example of a cms-uitools-* file.xml

<?xml version="1.0" encoding="UTF-8"?>
<uitool-factories  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 
    <default>
        <uitool-factory id="uitool-sitemap"/>
        <uitool-factory id="uitool-help"/>
        <uitool-factory id="uitool-dashboard"/>
    </default>
     
    <refresh>
        <uitool-factory id="uitool-sitemap"/>
        <uitool-factory id="uitool-dashboard"/>
        <uitool-factory id="uitool-page"/>
        <uitool-factory id="uitool-content"/>
    </refresh>
     
</uitool-factories>
Back to top