Skip to content

PLAY-29 multisite capability

Raphael Mäder requested to merge PLAY-29-Multisite-capability into master

Created by: ssokolenko

  • PLAY-29 Multisite capability, first part

    Note that as of this feature, new config settings are required. Minimal default site:

    cms.sites = [ { name: default key:"" hosts: ["*"] } ]

    Also, some DB changes are required - for now:

    CREATE UNIQUE INDEX cms_blocks_KEY_SITE_uindex ON play-cms-demo.cms_blocks (KEY, SITE);

    UPDATE cms_blocks SET SITE='' WHERE KEY='_root' UPDATE cms_blocks SET SITE='' WHERE KEY='_backend'

  • PLAY-29 Multisite - added more features

    New site configs trigger a notification in /admin/navigation if no site root node is present: User can initiate a site setup which adds the per-site nodes.

    FIXME: Still got a nasty JPA exception when setting up the 2nd site.

  • PLAY-73 fix a bug with constraint violation

  • PLAY-73 encapsulates some part of an init method

  • PLAY-73 change(rollback) relations in AbstractBlock from m:n + 1:n -> 1:n

  • PLAY-73 edit template add initialization link

    • edit checking condition if the site block has subBlocks
  • PLAY-29 PLAY-73 Fix the Sites#forRequest so that it only strip port "80" from the host header

    The host.replace(":80", "") may lead to wrong host values, e.g. after applying it to "site1.ch:8080" the resutl will be "site1.ch80".

  • PLAY-73, PLAY-29 Fix NPE in navigationOverview.scala.html

    GroupingBlock.find.site may return NULL which wasn't checked in the template.

  • PLAY-29 PLAY-73 Fix NPE when calling Setup#initializeData 2nd time

    When calling "/reset" route for the 2nd time it appears that ch.insign.cms.models.Setup#areSitesGrouped is already set, but ch.insign.cms.models.Setup#initializeData deletes all data as first step, so "areSitesGrouped" becomes invalid. Also within the context of initializeData it is useless as the data is always deleted.

    In this commit areSitesGrouped is removed and the logic is rewritten so that existing GroupingBlock's are updated, otherwise new GroupingBlock are created.

  • PLAY-29 PLAY-73 Fix NPE in NavigatioItem#getUrl when NavigatioItem#page is null

    The issue rearely happens after "/reset" in play-cms-demo

  • PLAY-29 PLAY-73 Fix possible QueryException at MappedKeyMapContainerPolicy#addInto

    The exception is thrown when the condition element instanceof Map.Entry is false at at org.eclipse.persistence.internal.queries.MappedKeyMapContainerPolicy#addInto

    Not sure how it's related to the fix, but it appears that the fix works.

  • PLAY-29 Update font-awesome to 4.4.0

  • PLAY-29 PLAY-77 Add site column in the Virtual paths search results list

  • PLAY-29 PLAY-77 Add site filter to the Virtual paths search

  • PLAY-29 PLAY-77 Fix an issue with missing parameter for NavigationItemFinder method

  • PLAY-29 PLAY-77 Add includeAllSites checkbox filter element to the Vpath search form

  • PLAY-29 PLAY-77 Change default value to true for includeAllSites param of Vpath search controller

  • PLAY-29 PLAY-77 Don't check for a current site when includeAllSites=false in NavigationController#search

  • PLAY-29 PLAY-77 Fix includeAllSites checkbox defaul setting in view

Merge request reports