2019-09-13 17:13:55 +02:00
|
|
|
---
|
|
|
|
title: pageBlockRelatedArticles
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Related articles
|
2019-09-13 17:13:55 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: pageBlockRelatedArticles
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Related articles
|
2019-09-13 17:13:55 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|title|[RichText](../types/RichText.md) | Yes|Title|
|
|
|
|
|articles|Array of [PageRelatedArticle](../types/PageRelatedArticle.md) | Yes|Articles|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PageBlock](../types/PageBlock.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$pageBlockRelatedArticles = ['_' => 'pageBlockRelatedArticles', 'title' => RichText, 'articles' => [PageRelatedArticle, PageRelatedArticle]];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
pageBlockRelatedArticles={_='pageBlockRelatedArticles', title=RichText, articles={PageRelatedArticle}}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|