WebSite X5Help Center

 
Raoul R.
Raoul R.
User

Object-specific custom code field  en

Autor: Raoul R.
Visited 43, Followers 0, Udostępniony 0  

In addition to the existing custom CSS field, allow advanced users to add object-specific HTML, JavaScript or JSON-LD. The code should only be included on pages containing that object. This would make it possible to keep structured data directly associated with visible content, such as a review, product, event or FAQ object, instead of maintaining separate code under Page Properties. Ideally, users should be able to choose whether the code is inserted in the <head>, before </body>, or directly alongside the object.

When only the object-specific code is changed, Website X5 should regenerate and upload only the affected page or pages.

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Review",
"name": "Good",
"author": {
"@type": "Person",
"name": "Swami"
},
"datePublished": "2026-09-15",
"reviewBody": "It was comfortable ride",
"reviewRating": {
"@type": "Rating",
"ratingValue": 10,
"bestRating": 10,
"worstRating": 1
},
"itemReviewed": {
"@type": "Service",
"name": "Taxi from Gouda to Amsterdam Airport Schiphol",
"serviceType": "Private taxi transfer",
"provider": {
"@type": "Organization",
"name": "ClubTaxi",
"url": "https://www.clubtaxi.nl/"
}
}
}
</script>

Codes like this causes rendering of the full project, a pain with large projects.

Posted on the

Brak odpowiedzi