-
Notifications
You must be signed in to change notification settings - Fork 1
AttachmentsBlock
Ahmed Abbas edited this page Apr 4, 2025
·
2 revisions
| Template ID | Required |
|---|---|
oggeh-files |
No |
A template for displaying the content of a single attachments block.
<template id="oggeh-files">
<div class="grid-item col-lg-{{ size_x }}">
<div class="content">
<h3>{{ title }}</h3>
<ul class="brochures-list">
<li data-oggeh-repeat>
<a href="{{ url }}" target="_blank" rel="noopener noreferrer">
<span class="flaticon-{{ ext }}"></span>{{ caption.title }}
<i class="fa fa-caret-right pull-right" aria-hidden="true"></i>
</a>
</li>
</ul>
</div>
</div>
</template>Notes: You can only use the data attribute
data-oggeh-repeatwith this media/attachments blocks and/or receive a list of content from OGGEH API (see Handling Search Results).
Example API Response Object
{
"type": "files",
"col": 7,
"row": 3,
"size_x": 6,
"size_y": 1,
"title": "Test Files Block",
"files": [
{
"id": 1,
"code": "xxx",
"ext": "pdf",
"type": "file",
"url": "https://storage.googleapis.com/cdn.oggeh.com/files/xxx/files/xxx.pdf",
"tags": [],
"caption": {
"title": "Test File 1",
"description": ""
}
},
{
"id": 2,
"code": "xxx",
"ext": "pdf",
"type": "file",
"url": "https://storage.googleapis.com/cdn.oggeh.com/files/xxx/files/xxx.pdf",
"tags": [],
"caption": {
"title": "Test File 2.",
"description": ""
}
}
]
}Copyrights © 2012-2025 All Rights Reserved by OGGEH, Inc.