List of services and content types


The list of services and types of content available depends on the plugins (extensions) used, and also on the type of site (see Site types).

This list is defined in two directory parameter files WEB-INF/param application CMS:

  • content-types-[siteType].xml for the list of content types
  • services-[siteType].xml for the list of services

[siteType] is the name of the type of site (default or blog)

List of available content types

The list of content types allowed in a site type is defined in the WEB-INF/param/content-types-[siteType].xml (e.g: content-types-default.xml).

There are 2 ways to define this list:

  • include: to accept only the content types listed in the file. This is the default mode:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <content-types mode="include">
    <content-type id="org.ametys.web.default.Content.article"/>
    <content-type id="org.ametys.plugins.news.Content.news"/>
    <content-type id="org.ametys.plugins.multimedia.Content.photosGallery"/>
    <content-type id="org.ametys.plugins.multimedia.Content.multimediaGallery"/>
    </content-types>
  • exclude: to accept all content types except those listed in the file:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <content-types mode="exclude">
    <content-type id="org.ametys.plugins.newsletter.Content.newsletter"/>
    </content-types>

To include or exclude content types, you need to know their identifier.

The most common types of content are described in the User Manual.

List of available services

The list of services authorized in a site type is defined in the file WEB-INF/param/services-[siteType].xml (e.g: services-default.xml)

As with content types, there are 2 ways of defining this list:

  • include: to accept only the services listed in the file. This is the default mode:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <services mode="include">
    <service id="org.ametys.web.service.SitemapService"/>
    <service id="org.ametys.web.service.FrontSearchService"/>
    <service id="org.ametys.web.service.IframeService"/>
    <service id="org.ametys.service.Revamping"/>
    <service id="org.ametys.web.service.FilteredContentsService"/>
    <service id="org.ametys.web.service.InsertContentService"/>
    <service id="org.ametys.web.service.AttachmentsService"/>
    </services>
  • exclude: to accept all services except those listed in the file:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <services mode="exclude">
    <service id="org.ametys.web.service.IframeService"/>
    <service id="org.ametys.service.Revamping"/>
    </services>

To include or exclude services, you need to know their ID.

The most commonly used services are described in the User Manual.

This global definition can be completely ignored if the graphic charter provides its own configuration. See this page for more information

Back to top