Jahia GraphQL Extension Websites icon
Module Id
graphql-extension-websites
Group Id
org.jahia.community
Updated
Requires Jahia
8.1.3.0
Author
Florent BOURASSE
Category
Tools and Utilities
Status
COMMUNITY info

Jahia GraphQL Extension Websites group_work

GraphQL extension to manipulate websites

Dependencies & Dependants

Dependants
  • NONE

Changelog 1.0.1

Add a new GraphQL API entry point under admin/jahia to export all websites towards an AWS S3 bucket

FAQ

In the tools

Go to the page "Jahia GraphQL Core Provider : graphql-playground" (JAHIA_URL/modules/graphql-dxm-provider/tools/graphql-playground.jsp)

Creation

    mutation {
      admin {
        jahia {
          createSiteByKey(
            siteKey: "SITE_KEY"
            serverName: "SERVER_NAME"
            title: "SITE_TITLE"
            templateSet: "TEMPLATE_SET"
            locale: "LOCALE"
          )
        }
      }
    }

Deletion

    mutation {
      admin {
        jahia {
          deleteSiteByKey(siteKey: "SITE_KEY")
        }
      }
    }

Import

    mutation {
      admin {
        jahia {
          importWebsite(
            importPath: "RELATIVE_IMPORT_PATH",
            siteKey: "SITE_KEY"
          )
        }
      }
    }

Export

    mutation {
      admin {
        jahia {
          exportWebsite(
            siteKey: "SITE_KEY",
            exportPath: "RELATIVE_EXPORT_PATH",
            onlyStaging: true
          )
        }
      }
    }

How To Install

  • In Jahia, go to "Administration --> Server settings --> System components --> Modules"
  • Upload the JAR graphql-extension-websites-X.X.X.jar
  • Check that the module is started

License

MIT License

Copyright (c) 2022 - present Florent BOURASSÉ

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.