Function __global->seo_get_fields
Definitions
sources/content2.php
- Get template fields to insert into a form page, for manipulation of seo fields.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | The type of resource (e.g. download) |
| $id | ?ID_TEXT | No | No | Null | N/A | N/A | The ID of the resource (null: adding) |
| $show_header | boolean | No | No | True | N/A | N/A | Whether to show a header |
Returns
- Form page Tempcode fragment
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get template fields to insert into a form page, for manipulation of seo fields.
*
* @param ID_TEXT $type The type of resource (e.g. download)
* @param ?ID_TEXT $id The ID of the resource (null: adding)
* @param boolean $show_header Whether to show a header
* @return Tempcode Form page Tempcode fragment
*/
function seo_get_fields(string $type, ?string $id = null, bool $show_header = true) : object
* Get template fields to insert into a form page, for manipulation of seo fields.
*
* @param ID_TEXT $type The type of resource (e.g. download)
* @param ?ID_TEXT $id The ID of the resource (null: adding)
* @param boolean $show_header Whether to show a header
* @return Tempcode Form page Tempcode fragment
*/
function seo_get_fields(string $type, ?string $id = null, bool $show_header = true) : object
