html in a custom field
- multicolordev
- Master Bludit
- Posts: 137
- Joined: Thu May 26, 2022 12:33 pm
- Has thanked: 15 times
- Been thanked: 91 times
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
You can modify the example "Get custom field" in the documentation at
https://docs.bludit.com/en/content/custom-fields
Use for example the following
instead of
https://docs.bludit.com/en/content/custom-fields
Use for example the following
Code: Select all
<?php
$custom = $page->custom('myfield');
$custom = htmlspecialchars_decode($custom);
echo nl2br($custom);
?>
Code: Select all
<?php
echo $page->custom('myfield');
?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets