Use this plugin if you want to paste own predetermined simple content (snippets) or HTML blocks to the CMS or plugins.
- It works with build-in CMS (Pages, Partials and Layout).
- It works with any plugins (News & Newsletter, Content Plus, etc.).
- Support multilanguage content Works with Rainlab Translate plugin.
- Easy to paste snippets with the build-in WYSIWYG editor.
- Add a new content on the Paste Content page.
- Use the paste Twig function.
- Add the type and code of content.
Predetermined content
Code: ads
Text: ADVERTISEMENT HERE
HTML code
<p>Lorem ipsum dolor sit amet, nibh aute et sodales at arcu, urna libero, euismod pharetra vestibulum tristique praesent. Ligula integer natoque ut praesent sapien, ligula placerat nisl neque id commodi, quis dictum sit erat ante mollis nascetur.</p>
{{ paste('text', 'ads') }}
The result
Lorem ipsum dolor sit amet, nibh aute et sodales at arcu, urna libero, euismod pharetra vestibulum tristique praesent. Ligula integer natoque ut praesent sapien, ligula placerat nisl neque id commodi, quis dictum sit erat ante mollis nascetur.
ADVERTISEMENT HERE
Name | Description |
---|---|
First parameter | The type of content: text or code |
Second parameter | The code of content or the ID of content |
- Add a new content on the Paste Content page.
- Paste the code of content to the blog post or other text.
- Use the paste Twig filter on the front-end pages.
Predetermined content
Code: ads
Text: ADVERTISEMENT HERE
Blog post
Lorem ipsum dolor sit amet, nibh aute et sodales at arcu, urna libero, euismod pharetra vestibulum tristique praesent. Ligula integer natoque ut praesent sapien, ligula placerat nisl neque id commodi, quis dictum sit erat ante mollis nascetur.
{{ ads }}
HTML code
{{ post.content_html|paste }}
The result
Lorem ipsum dolor sit amet, nibh aute et sodales at arcu, urna libero, euismod pharetra vestibulum tristique praesent. Ligula integer natoque ut praesent sapien, ligula placerat nisl neque id commodi, quis dictum sit erat ante mollis nascetur.
ADVERTISEMENT HERE
- en - English
- hu - Magyar
- Go to the Settings > Updates & Plugins page in the Backend.
- Click on the Install plugins button.
- Type the Paste Content text in the search field.