jahia-dev-query-content

Write and execute Jahia JCR-SQL2 queries to list and filter content.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/Jahia/formidable --skill jahia-dev-query-content
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jahia-dev-query-content
Source: https://github.com/Jahia/formidable/tree/main/.agents/skills/jahia-dev-query-content
Command: npx skills add https://github.com/Jahia/formidable --skill jahia-dev-query-content

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers quickly query Jahia content by composing and executing JCR-SQL2 queries to list items, filter by date, and assemble content listings across folders.

Core Features & Use Cases

  • Built-in no-code queries via Jahia Page Builder to list content items.
  • Server-side querying with useJCRQuery to fetch items from the current site context.
  • Client-side querying with useJCRQuery in islands for dynamic listings.
  • GraphQL-based querying with useGQLQuery for complex projections across nodes.
  • Deep content traversal with ISDESCENDANTNODE to handle nested folders and subfolders.

Quick Start

Create a listing of content items by writing a JCR-SQL2 query and render it with the built-in Jahia Queries component.

Frequently Asked Questions about jahia-dev-query-content

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list and filter content in Jahia using JCR-SQL2?

You can list and filter Jahia content by executing JCR-SQL2 queries through built-in Page Builder components, server-side or client-side useJCRQuery hooks, or GraphQL-based useGQLQuery for complex data projections.

What is the best way to query content across nested folders in Jahia?

The best way to query content across nested Jahia folders is using the ISDESCENDANTNODE function in your JCR-SQL2 query, which enables deep content traversal to fetch items from subfolders effectively.

How does GraphQL querying compare to JCR-SQL2 for Jahia content?

GraphQL querying via useGQLQuery is used for complex projections across Jahia nodes, whereas JCR-SQL2 via useJCRQuery handles standard content listing and filtering from the current site context.

Can I use client-side queries for dynamic content listings in Jahia?

Yes, you can use the client-side useJCRQuery hook within Jahia islands to execute JCR-SQL2 queries and render dynamic content listings without requiring a full page reload.

When do I need server-side useJCRQuery for Jahia content retrieval?

You need server-side useJCRQuery when fetching Jahia content items from the current site context during server-side rendering, ensuring data is available before the page loads.

Does Jahia support no-code content listings without writing JCR-SQL2?

Yes, Jahia supports no-code content listings through its built-in Queries component in Page Builder, allowing you to list and filter items without manually writing JCR-SQL2 syntax.