Skip to content

uc-apx create region static-content

Insert a new static-content region into the target page. The region’s htmlCode is populated from —html, defaulting to an empty placeholder comment. Use single-line HTML for cleanest output; multi-line values are indented to match the surrounding code-block context.

uc-apx create region static-content [flags]
FlagTypeDefaultDescription
--column-spanint12-col grid span for the region’s layout (0 = omit; e.g. 6 for a half-width region)
--dry-runPrint rendered region to stdout without writing
--forceReserved for future use
--htmlstringHTML body content (default ”<!— TODO —>“)
--idstringRegion id (default: kebab-case of —name)
--namestringDisplay name of the region [required]
--pagestringTarget page (numeric ID, alias, or name) [required]
--sequenceintLayout sequence (default: max existing + 10)
--slotstringbodyPage slot to place the region in
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON

Using --dry-run to preview the generated construct (no files are written):

Terminal window
uc-apx --app-dir examples/brookstrut create region static-content --page 46 --name Info Banner --dry-run
Generated APEXlang
region info-banner (
name: Info Banner
type: staticContent
source {
htmlCode:
```html
<!-- TODO -->
```
}
layout {
sequence: 50
slot: body
}
appearance {
template: @/standard
templateOptions: #DEFAULT#
}
)