Redirections for IPWeb


Presentation

From version 4.8 onwards, Ametys provides aURL model that can be used in the IPWeb tool. Thus, from a base ofURL always identical and the code ELP Apogée, it is possible to display the page corresponding to aELP bearing this code.

Prerequisites

For this feature to be active and usable, several conditions must be met:

  • Activate the functionality in the general configuration (Administration context > Configuration > Training offer).
  • Configure correctly :
    • Catalog: This must be valid; if it is empty, the default catalog is used.
    • Language: If left blank, the default language isODF .
  • Match attribute: must exist and be filled in
  • The training offer root must be defined on the queried site for the configured catalog and language.

Use

From the public site address, callURL URL _SITE/_odf-web/courseFromIPWeb?CodElp=COURSE_CODE where :

  • URL_SITE : L'URL of the site of publication of the offer of formation
  • COURSE_CODE: Code (according to attribute configured in general configuration) on which theELP

If ELP is shared, the first page found is returned.

A 404 error is returned in the following cases:

  • Correspondence attribute not in model
  • The catalog doesn't exist
  • The site has noODF root in the selected language with the selected catalog.
  • Several ELP have the same code, catalog and language
  • ELP was never validated (and therefore never published).
  • ELP does not belong to a published formation
  • No ELP found with this code, catalog and language
Back to top