Wagtail Link Block
A link block to use as part of other StructBlocks which lets the user choose a link either to a Page, Document, external URL, Email, telephone or anchor within the current page and whether or not they want the link to open in a new window.
It hides the unused fields, making the admin clearer and less cluttered.
Installation
Using pip:
$ pip install wagtail-link-block
Edit your Django project's settings module, and add the application to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
"wagtail_link_block",
# ...
]
Usage
To use in a block
from wagtail_link_block.blocks import LinkBlock
class MyButton(StructBlock):
text = CharBlock()
link = LinkBlock()
class Meta:
template = "blocks/my_button_block.html"
And create the template blocks/my_button_block.html:
<a href="{{ self.link.get_url }}" {% if self.link.new_window %}target="_blank" rel="noopener noreferrer"{% endif %}>
{{ self.text }}
</a>
Metadata
Release files for wagtail-link-block 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail_link_block-1.2.tar.gz | 8.2 kB | With provenance | Details for wagtail_link_block-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_link_block-1.2-py3-none-any.whl | Python 3 | none | any | Details for wagtail_link_block-1.2-py3-none-any.whl |
Total release size: 17.0 kB
Release files / wagtail_link_block-1.2.tar.gz
| Download URL | wagtail_link_block-1.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0ae53801f46cd90cb9f176ea3af4ae96e0dbb029b6942e1af8561e432219ecd
|
|
BLAKE2b-256 checksum How to use checksums |
2224ee086c313b36cc10b088331ba0eb64d838d349d5fba50235dc08d4a1f35d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logRelease files / wagtail_link_block-1.2-py3-none-any.whl
| Download URL | wagtail_link_block-1.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1079c0d9839d50be8ae34936c43f024b3f02390623f70dd60cd2a2f74680ab11
|
|
BLAKE2b-256 checksum How to use checksums |
8df612922f4e2d4ea33431e4e328f18257a17d913aa067868fb21c8b7fbf4d49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logSecurity for wagtail-link-block 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wagtail_link_block-1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.