Ibexa json-LD bundle

Ibexa DXP Symfony Bundle
Integration of structured data with the development of the "json-LD" bundle for Ibexa DXP 4.X.
Published on, 10 Jun 2024

With the rise of AI-generated content, the challenge for companies is to make their content more visible on search engines and attract clicks to their pages. Understanding this need, we have developed a bespoke bundle for Ibexa DXP, called "json-LD". This module, available from version Ibexa DXP 4.X, improves the structuring of content data and makes it easier for search engines to understand.

Objectives of the "json-LD" bundle

The "json-LD" bundle has been designed entirely by our Ibexa DXP development teams. Its aim is to incorporate best practice in data structuring, in line with official schema.org documentation.

How the bundle works

Using a file named schema.json, we can structure any type of content, with the aim of generating a JSON-LD schema. Here is an example of a structure created for articles and news.

{
  "article" : {
    "@context": "https://schema.org/",
    "@type": "NewsArticle",
    "headline": "#title",
    "image": [
      "image#image"
    ],
    "datePublished": "@creationDate",
    "dateModified": "@modificationDate",
    "author": [{
      "@type": "Person",
      "name": "related_author#name"
    }]
  },
  "news_post" : {
    "@context": "https://schema.org/",
    "@type": "NewsArticle",
    "headline": "#title",
    "image": [
      "image#image"
    ],
    "datePublished": "@creationDate",
    "dateModified": "@modificationDate",
    "author": [{
      "@type": "Person",
      "name": "related_author#name"
    }]
  }
}

This file generates a script tag in the DOM using instructions to fetch the desired information from the Ibexa back office.

script-file-json.png

Structured data on articles and news items

Structured data appears at the beginning of the HTML code of each news article or blog post. The following information must be transmitted

  • The type of content (type)
  • The title of the article (headline)
  • The URL of an image representative of the article (image)
  • The date and time the article was first published (datePublished)
  • The date and time the article was last modified (dateModified)
  • The author of the article (article author)
article-blog-data.webp

The structured data for a blog post

JobPosting" structured data present on job offers

The structured data in job postings is dynamic and changes with each posting. The following information must be transmitted:

  • The unique identifier assigned to the job offer by the recruiting company (identifier)
  • The initial date on which the employer published the job offer (datePosted)
  • Type of job (employmentType)
  • The full description of the job (description)
  • The company offering the job (hiringOrganization)
  • The company site where the employee will work (jobLocation) and its full postal address
  • Remote work (jobLocationType)
  • Job title

We have chosen not to transmit the following optional data:

  • The actual basic salary for the position (baseSalary)
  • The expiry date of the job offer (validThrough)
job-data.webp

The structured data for a job advert on inforca.mc

The benefits of the bundle

Improve page indexing and visibility

Integrating the "json-LD" bundle gives search engines a better understanding of your content. By using this bundle, search engine crawlers can easily identify and classify your pages according to their content type. This makes it easier to index your pages, which means they will appear more often in search results. As a result, your content will be more visible, its ranking will improve, and it will be viewed and clicked on more frequently by users.

Make it easier for users to understand pages

The search engine uses the structured data provided to modify the appearance of search results. It can add elements known as"rich snippets", such as star ratings, images, and details specific to job offers or news items. This additional information makes the search results more attractive and informative, which can increase the click-through rate for users.

Do you have a web development project? Get a free quote

Request a quote now for the development of customised features and get a detailed estimate.

Discover our other Ibexa bundles

Ibexa Icon Captcha bundle

Integration of a captcha solution with the development of the "Icon Captcha" bundle for Ibexa DXP 4.X.
See more

Ibexa PHP scan antivirus bundle

The PHP antivirus scan bundle developed in-house on Ibexa DXP uses an open-source script to secure forms.
See more