echo or print the value you want to appear as the replacement for the tag.<?php tag is desirable to enable syntax highlighting.$page, $pages, or any other API variables. directly.
See also the PHP Properties section to the right.[[hello_world first_name=Karena]], your code will have a $first_name variable populated with 'Karena'.$attr array of [key=value]. For example: $attr['first_name'] == 'Karena', in case you find this syntax preferable, or necessary.$page) then the API variable overrides the attribute name. In that case, the attribute value will only be accessible
through $attr (example: $attr['page']).$hanna. This can be used for getting additional properties, or modifying the larger text value if necessary. See details in the PHP Properties section.$page API variable available to your Hanna code represents the page where the Hanna code exists. It is possible for this to be different from wire('page'), which represents the page that originated the request./site/assets/cache/HannaCode/[tag-name].php and directly executed rather than eval'd.$attr | An array of [key=value] attributes passed to your Hanna code. |
$page | The page where the Hanna code exists. |
$hanna->name | The name (string) of the current Hanna code. |
$hanna->field | The Field object representing the text. |
$hanna->value | The larger text where the Hanna code lives. This property may also be set. |
Please note that "name" is a reserved word and may not be used as an attribute name.
<script> tags in your code unless you want to. They will be automatically inserted when not already present.[[hello_world first_name=Karena]], your code will have a first_name variable populated with 'Karena'.attr object of attr.key=value (i.e. attr.first_name == 'Karena'), in case you find this syntax preferable.name is a reserved word and may not be used as an attribute name.