{"id":19288232,"url":"https://github.com/openweb-nl/hippo-structured-data-plugin","last_synced_at":"2025-04-22T04:33:09.020Z","repository":{"id":4130246,"uuid":"52096971","full_name":"openweb-nl/hippo-structured-data-plugin","owner":"openweb-nl","description":"This is an hst (Hippo site toolkit) addon to providing structured data using json-ld.","archived":false,"fork":false,"pushed_at":"2023-03-31T15:01:13.000Z","size":220,"stargazers_count":0,"open_issues_count":2,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-26T16:03:28.364Z","etag":null,"topics":["hippo","structured-data"],"latest_commit_sha":null,"homepage":"","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/openweb-nl.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}},"created_at":"2016-02-19T15:30:58.000Z","updated_at":"2024-03-26T16:03:28.364Z","dependencies_parsed_at":"2023-07-06T19:01:58.333Z","dependency_job_id":null,"html_url":"https://github.com/openweb-nl/hippo-structured-data-plugin","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-structured-data-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-structured-data-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-structured-data-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-structured-data-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openweb-nl","download_url":"https://codeload.github.com/openweb-nl/hippo-structured-data-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223888404,"owners_count":17220083,"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":["hippo","structured-data"],"created_at":"2024-11-09T22:08:26.829Z","updated_at":"2024-11-09T22:08:27.354Z","avatar_url":"https://github.com/openweb-nl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Structured data addon for Hippo\nThis is an hst addon to providing structured data using json-ld.\n\n## Usage\n  * Add Open Web repository, and structured-data dependency to Hippo Site  \n  ```XML\n\u003cdependency\u003e\n    \u003cgroupId\u003enl.openweb.hippo.hst\u003c/groupId\u003e\n    \u003cartifactId\u003estructured-data\u003c/artifactId\u003e\n    \u003cversion\u003e13.0.X\u003c/version\u003e\n\u003c/dependency\u003e\n  ```\n\n  * Create mapper classes implementing the interface: *nl.openweb.structured.data.schema.mapping.StructuredDataMapper*\n\n  * Register them in spring\n  ```XML\n  \u003cbean id=\"breadcrumbList\" class=\"nl.openweb.structured.data.mapper.BreadCrumbListMapper\" /\u003e\n  \u003cbean class=\"nl.openweb.structured.data.mapper.EventMapper\" /\u003e\n  ```\n  * Define the tag in your jsp  \n  ```JSP \n  \u003c%@ taglib prefix=\"sd\" uri=\"http://open-web.nl/hippo/structured-data\"% \u003e \n  ```\n  \n  *or freemarker:*  \n  ```FTL\n  \u003c#assign sd=JspTaglibs [\"http://open-web.nl/hippo/structured-data\"] \u003e\n  ```\n  \n## Tags to use for immediate rendering\nTo map the current contentbean in your jsp\n```JSP\n\u003csd:ldJson /\u003e\n```\nor freemarker:\n```FTL \n\u003c@sd.ldJson /\u003e \n```\n*It's also possible to define the object and use a named mapper in your jsp*\n```JSP\n\u003csd:ldJson bean=\"${breadcrumbList}\" mapper=\"breadcrumbList\"/\u003e\n```\nor freemarker:\n```FTL\n\u003c@sd.ldJson bean=breadcrumbList mapper=breadcrumbList/\u003e\n```\n\n### Tags for Asynchronous rendering\nTo use this plugin in an asynchronous matter, as headContributions of hippo, use these tags.  \n*As with the original tag, the bean and mapper attributes are optional.*  \n\nfor JSP:\n```JSP\n\u003csd:ldJsonContribution bean=\"${bean}\" mapper=\"${myBeanMapper}\"/\u003e \n\u003csd:structuredDataPlaceholder/\u003e\n```\nfor freemarker:\n```FTL\n\u003c@sd.ldJsonContribution bean=bean mapper=myBeanMapper/\u003e \n\u003c@sd.structuredDataPlaceholder/\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenweb-nl%2Fhippo-structured-data-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenweb-nl%2Fhippo-structured-data-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenweb-nl%2Fhippo-structured-data-plugin/lists"}