Widgets, Shortcodes and Presets

Widgets, Shortcodes and Presets

Jyavani distinguishes widget areas, Theme Zone gadgets, content shortcodes, and preset shortcodes. Each is rendered at a different stage.

Sidebar and Theme Zones

The sidebar zone contains items such as search, recent posts, HTML, or presets. Theme Zones place gadgets in the positions declared by the theme, including navigation, image, rich text, pages, social, search, and post metadata. View availability depends on the theme that actually renders the zone.

Theme Zones Editor

Core Shortcodes

  • Belum ada konten.
    for post collection.
  • [private_pdf id="123" mode="card"] for PDF from File Library.
  • [video id="123"] for supported video recording.
  • for registered widgets.

The private file ID comes from the Files menu, not Media Library. Access checks remain in effect when the shortcode is rendered or the stream is requested.

Presets

Preset is a post type sc_preset which stores query/layout configuration in JSON. The demo preset selects four random articles belonging to the initial owner and uses the sidebar. Since random queries are not deterministic at runtime, do not use that preset for editorial sequences that must be stable.

Plugins can register additional shortcodes or gadgets. Validate attributes, escape output, and don't inject untrusted third-party code into widget HTML.