Shortcodes
Shortcodes adds a small set of reusable shortcodes that help authors insert common site links into content without hard-coding URLs.
Overview
This module is useful when authors need reliable links in content, emails, or reusable templates. Instead of typing full URLs manually, they can use shortcodes that stay aligned with the current site.
Key Features
- Adds a shortcode for the site URL.
- Adds a shortcode for the login URL.
- Supports optional path arguments for link generation.
Configuration
Enable Common Shortcodes when authors or administrators need these reusable link helpers in content.
Usage
Available shortcodes
| Shortcode | Purpose |
|---|---|
[site_url] | Returns the full site URL. |
[login_url] | Returns the full login URL. |
These shortcodes are useful in templates, reusable content blocks, and guided communications where links should stay centrally managed.
Developer Notes
- The module registers
site_urlandlogin_urlshortcode providers. - Both shortcodes support a
pathargument for appending a route segment.