{"id":29008281,"url":"https://github.com/jmix-framework/jmix-webcontent","last_synced_at":"2025-06-25T14:04:27.040Z","repository":{"id":231496592,"uuid":"781895270","full_name":"jmix-framework/jmix-webcontent","owner":"jmix-framework","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-29T10:25:09.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-29T23:38:04.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmix-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-04T08:46:30.000Z","updated_at":"2024-05-29T10:25:12.000Z","dependencies_parsed_at":"2024-04-04T10:26:47.792Z","dependency_job_id":"4095546a-3028-49a7-8476-116f5d8bea5a","html_url":"https://github.com/jmix-framework/jmix-webcontent","commit_stats":null,"previous_names":["jmix-framework/jmix-webcontent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmix-framework/jmix-webcontent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmix-framework%2Fjmix-webcontent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmix-framework%2Fjmix-webcontent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmix-framework%2Fjmix-webcontent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmix-framework%2Fjmix-webcontent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmix-framework","download_url":"https://codeload.github.com/jmix-framework/jmix-webcontent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmix-framework%2Fjmix-webcontent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261888098,"owners_count":23225136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-25T14:04:23.397Z","updated_at":"2025-06-25T14:04:26.918Z","avatar_url":"https://github.com/jmix-framework.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jmix WebContent Addon\n\nAllows to use content stored in database and editable from the admin area\n\n# Installation\n\n1. Checkout this repo\n2. build and publish artifacts to your Maven\n\n```\n./gradlew publishToMavenLocal\n```\n3. Select Install Manually from Jmix Addon Manager and insert addon's artifactId \n\n```\nio.jmix.webcontent:webcontent-starter:0.0.1\n```\n\n# Usage \n\n## Code\n\nBy default web content is taken by user selected locale fallbacking to 'en'.\nConsider you have div on view with id \"instructions\" and web content with\nthe same slug field value:\n\n```\nWebContent instructionWebContent = webContentService.findBySlug(\"instructions\");\ninstructions.getElement().setProperty(\"innerHTML\", instructionWebContent.getContents());\n```\n\n## Migrations\n\nTo have contents installed automatically, use liquibase changesets as follows:\n\n1. Create new migration changeset\n2. Add changeset contents\n\n```xml\n\u003cchangeSet id=\"1\" author=\"xxx\" context=\"!cuba\"\u003e\n\n    \u003cinsert tableName=\"WEB_CONTENT\" dbms=\"postgresql, mssql, hsqldb\"\u003e\n        \u003ccolumn name=\"ID\" value=\"6c9e420a-2b7a-4c42-8654-a9027ee14083\"/\u003e\n        \u003ccolumn name=\"VERSION\" value=\"1\"/\u003e\n        \u003ccolumn name=\"TITLE\" value=\"Инструкция\"/\u003e\n        \u003ccolumn name=\"SLUG\" value=\"instructions\"/\u003e\n        \u003ccolumn name=\"LANG\" value=\"ru\"/\u003e\n        \u003ccolumn name=\"CONTENTS\" valueClobFile=\"instructions-ru.html\"/\u003e\n    \u003c/insert\u003e\n\n    \u003cinsert tableName=\"WEB_CONTENT\" dbms=\"oracle, mysql, mariadb\"\u003e\n        \u003ccolumn name=\"ID\" value=\"6c9e420a2b7a4c428654a9027ee14083\"/\u003e\n        \u003ccolumn name=\"VERSION\" value=\"1\"/\u003e\n        \u003ccolumn name=\"TITLE\" value=\"Инструкция\"/\u003e\n        \u003ccolumn name=\"SLUG\" value=\"instructions\"/\u003e\n        \u003ccolumn name=\"LANG\" value=\"ru\"/\u003e\n        \u003ccolumn name=\"CONTENTS\" valueClobFile=\"instructions-ru.html\"/\u003e\n    \u003c/insert\u003e\n\u003c/changeSet\u003e\n```\n\n3. Place your htmls with contents aside the changeset","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmix-framework%2Fjmix-webcontent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmix-framework%2Fjmix-webcontent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmix-framework%2Fjmix-webcontent/lists"}