Front Office multisite management

Front Office multisite management

  • | Facebook
  • Twitter
  • Delicious
  • print

The WMS_FO_MultiSite plugin

Section(s): front office, plugin, standard plugin

Brief Description

The WMS_FO_MultiSite plugin is responsible for :

  • Resolving in FO the current site (known as activeMedia)
  • Retrieving the sitemodel of this site (activeModel - layout)
  • Initializing query bases for filtering contents on current media

It provides tools for resolving internallinks

Requirements

Datamodel must be compliant with WMS multisite model :

  • Existence of objects : media, mediagroup and sitemodel

Entry points

  • /front/common/init/init_before.jsp
  • /front/common/init/initBaseWhere/initBaseWhere_content_before.jsp
  • /front/common/tools/internallink/resolve-internallink_before.jsp

Parameters

  • errorOnMediaEmpty : Does the plugin have to force an HTTP Error if site cannot be resolved : boolean
  • errorCodeOnMediaEmpty : What error code should be sent (default 404)

Description

  • /front/common/init/init_before.jsp
    • Initialize if empty the config_parameter_name_servername request attribute to servername. This request attribute gives us the parameter name in the querystring for resolving the server name.
    • Include /front/common/init/init_activemedia.jsp (try to resolve the requested media (or site))
      • Skip if activeMedia request attribute is not null.
      • Retrieves from querystring the server name parameter (using the config_parameter_name_servername request attribute value as parameter name). If empty, uses the server name (request.getServerName())
      • Searches for a media having this server name as one of its domain names. (Structure mdia?)
      • If not found, will look in the domainlang? structure.
      • If actual request server name is not equal to the servername used for resolving the media, complete the contextParams request attribute.
    • If no media found and set to return an HTTP Error in that case, returns the HTTP Error code
    • Include /front/common/init/init_activemedia.jsp (retrieving the model activeModel and layout)
      • Skip if activeMedia request attribute is null
      • Skip if activeModel and layout request attributes are not null
      • Retrives the activeModel request attribute as the activeMedia model object property
      • Retrieves the layout request attribute as the activeModel layout property
  • /front/common/init/initBaseWhere/initBaseWhere_before.jsp
    • Initialize base_media request attribute as a SQL query base giving a constraint on media property equals to 0 (associated to all medias) or id of activeMedia (associated to activeMedia)
    • Initialize base_media_child_notempty request attribute as a SQL query base giving a constraint on media property equals to id of activeMedia
    • Initialize base_media_childmultilngdb_notempty request attribute as a SQL query base giving a constraint on media propertycontaining id of activeMedia
  • /front/common/tools/internallink/resolve-internallink_before.jsp