This repository contains an application designed to facilitate the integration of Enonic XP-based sites with the Imageshop platform. The application includes features for efficiently importing, editing, and synchronizing images between the site and the Imageshop media library.
- Installation check: Automatically detects if the Imageshop app is installed on configured sites.
- Image import: Enables importing images directly from Imageshop into the site environment.
- Information synchronization: Displays a synchronization button to update information for already imported images.
- Informative error messages: Provides visual feedback in case of installation issues, misconfiguration, or detection of multiple installations.
- Thymeleaf template integration: Renders the user interface using Thymeleaf templates for consistent presentation.
The application handles HTTP requests and performs the following checks and actions:
- Checks whether Imageshop is installed on the current site.
- Retrieves content based on the
contentIdprovided in the request. - Validates the app configuration and returns appropriate error messages if any issues are found.
- Constructs a model with service URLs, translation strings, and control variables for the user interface.
- Renders the interface using the
iimage.htmltemplate, which includes import and sync buttons.
This application is ideal for development teams looking to integrate Imageshop seamlessly and effectively into their Enonic XP-based projects.
git clone https://github.com/99x/imageshop-xp.git
cd imageshop-xp
./gradlew build-
Install the application: Deploy the
Imageshopin your Enonic XP environment via Enonic market in the applications tool or build it yourself. -
Configure the application on your site:
-
Ensure that the application is set up in your site structure.
-
In the site configuration, you will need to fill in the following inputs:
- Imported resources folder
- Host
- Token
- Private Key
- Interface Name (optional, used when searching images)
- Document Prefix (optional, used as a prefix for uploaded images)
- Sizes (optional, format example:
Normal 320x240;320x240) - Language (optional, default language for image searches)
These inputs ensure the proper configuration and functionality of the Imageshop integration in your site.
-
-
Alternative Token and Private Key Configuration:
The Token and Private Key required for HTTP requests to the Imageshop endpoint can also be provided through the configuration fileio.99x.imageshop.cfg. Use the following variables in the file:imageshopToken: Specify the Imageshop token.imageshopPrivateKey: Specify the Imageshop private key.
This approach offers a centralized and secure way to manage these credentials.
| Version | XP version |
|---|---|
| 1.0.x | 7.9.0 |
| 2.0.x | 7.11.0 |
The application is licensed under the Enonic License
Made by 99x