Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matdave/modx-noembed
noembed Snippet / Output Modifier for MODX
https://github.com/matdave/modx-noembed
modx-extra modx-revolution
Last synced: 21 days ago
JSON representation
noembed Snippet / Output Modifier for MODX
- Host: GitHub
- URL: https://github.com/matdave/modx-noembed
- Owner: matdave
- Created: 2018-05-29T15:26:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T23:21:44.000Z (about 1 year ago)
- Last Synced: 2024-12-03T22:09:21.302Z (2 months ago)
- Topics: modx-extra, modx-revolution
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# noembed Snippet / Output Modifier
The noembed Snippet / Output Modifier can be used as an output modifier for placeholders or as a stand alone snippet with provided &link=``
```
[[noembed?link=`http://www.youtube.com/watch?v=bDOYN-6gdRE`]]
```
Or
```
[[+video:noembed]]
```By default noembed just outputs an iframe of your video, but you can customize it further by passing either ```&tpl=`yourtpl` ``` or by passing a tpl name to the output modifier's options
```
[[+video:noembed=`yourtpl`]]
```
The tpl will give you the following placeholders:| Placeholder | Description |
| --- | --- |
| [[+width]] | (int) Width of the returned resource |
| [[+author_name]] | The name of the author/owner of the resource. |
| [[+author_url]] | A URL for the author/owner of the resource. |
| [[+version]] | The noembed version number. |
| [[+provider_url]] | The url of the resource provider. |
| [[+provider_name]] | The name of the resource provider. |
| [[+thumbnail_width]] | (int) Thumbnail width |
| [[+thumbnail_url]] | URL to default thumbnail |
| [[+height]] | (int) Height of the returned resource |
| [[+thumbnail_height]] | (int) Thumbnail height |
| [[+html]] | Resource iframe embed _(default output)_ |
| [[+url]] | URL to the resource _(default output if no html)_ |
| [[+type]] | The resource type (photo, video, link, rich) |
| [[+title]] | A text title, describing the resource. |To learn more about noembed visit [https://noembed.com/](https://noembed.com/)